RocketChat / RocketChat/Rocket.Chat
"Error: ENOENT: no such file or directory, open" on latest build
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:
- Latest Rocket.Chat server
- Operating System: Ubuntu 20.04.2 LTS
- Deployment Method: Download latest build at https://docs.rocket.chat/installing-and-updating/manual-installation/ubuntu
- Number of Running Instances: 8 EC2's
- DB Replicaset Oplog:
- NodeJS Version: v12.18.4
- MongoDB Version:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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