RocketChat / RocketChat/Rocket.Chat

"Error: ENOENT: no such file or directory, open" on latest build

Open
#22,694 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Two different engineers have independently tried the latest Ubuntu install steps at https://docs.rocket.chat/installing-and-updating/manual-installation/ubuntu and though it properly builds tailing syslog will reveal these constant errors:

Error: ENOENT: no such file or directory, open 'chat/latest/bundle/programs/web.browser/dynamic/node_modules/tslib/tslib.js'
Error: ENOENT: no such file or directory, open 'chat/latest/bundle/programs/web.browser/dynamic/node_modules/autolinker/dist/commonjs/htmlParser/parse-html.js'
Error: ENOENT: no such file or directory, open 'chat/latest/bundle/programs/web.browser/dynamic/node_modules/autolinker/dist/commonjs/regex-lib.js'
Error: ENOENT: no such file or directory, open 'chat/latest/bundle/programs/web.browser/dynamic/node_modules/autolinker/dist/commonjs/matcher/index.js'

And so on...

The issue seems to be in the web.browser and legacy.web.browser directories. For example when the error that this file is missing: web.browser/dynamic/node_modules/tslib/tslib.js we see that there is tslib.es6.js in that folder only.

We have also tried the Docker version and experienced the same issue.

Steps to reproduce:

Follow install steps at https://docs.rocket.chat/installing-and-updating/manual-installation/ubuntu

Expected behavior:

No errors in Syslog

Actual behavior:

Error in Syslog

Server Setup Information:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Follow the Ubuntu manual-installation steps and check syslog for the missing files under web.browser/dynamic/node_modules and legacy.web.browser. Compare the referenced tslib and autolinker paths with the generated bundle, including the Docker build result. The work is done when the latest build contains the required files and produces no corresponding syslog errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, node.js, typescript, ubuntu
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.