RocketChat / RocketChat/Rocket.Chat

I need help. My rocketchat service could not active (rocketchat.service: main process exited, code=exited, status=1/FAILURE)

Open
#27,260 0 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

Note: I also tried centos 7.6 version which is also not work
[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

[root@localhost ~]# node
Welcome to Node.js v12.18.4.

[root@localhost ~]# mongod
2022-11-14T23:16:16.070+0600 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] MongoDB starting : pid=11745 port=27017 dbpath=/data/db 64-bit host=localhost.localdomain
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] db version v4.0.28

[root@localhost ~]# sudo systemctl status rocketchat -l
● rocketchat.service - The Rocket.Chat server
Loaded: loaded (/usr/lib/systemd/system/rocketchat.service; enabled; vendor preset: disabled)
Active: fail ed (Result: exit-code) since Mon 2022-11-14 22:42:18 +06; 23min ago
Process: 2965 ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js (code=exited, status=1/FAILURE)
Main PID: 2965 (code=exited, status=1/FAILURE)

Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at Module.load (internal/modules/cjs/loader.js:985:32)
Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:46:33)
Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at Function.Module._load (internal/modules/cjs/loader.js:878:14)
Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at Module.require (internal/modules/cjs/loader.js:1025:19)
Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at require (internal/modules/cjs/helpers.js:72:18)
Nov 14 22:42:18 localhost.localdomain rocketchat[2965]: at Object. (/opt/Rocket.Chat/programs/server/boot.js:2:15)
Nov 14 22:42:18 localhost.localdomain systemd[1]: rocketchat.service: main process exited, code=exited, status=1/FAILURE
Nov 14 22:42:18 localhost.localdomain systemd[1]: Unit rocketchat.service entered failed state.
Nov 14 22:42:18 localhost.localdomain systemd[1]: rocketchat.service failed.

[root@localhost ~]# node
Welcome to Node.js v12.18.4.

[root@localhost ~]# mongod
2022-11-14T23:16:16.070+0600 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] MongoDB starting : pid=11745 port=27017 dbpath=/data/db 64-bit host=localhost.localdomain
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] db version v4.0.28
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] git version: af1a9dc12adcfa83cc19571cb3faba26eeddac92
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] allocator: tcmalloc
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] modules: none
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] build environment:
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] distmod: rhel70
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] distarch: x86_64
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] target_arch: x86_64
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] options: {}
2022-11-14T23:16:16.073+0600 E STORAGE [initandlisten] Failed to set up listener: SocketException: Address already in use
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] Shutdown started
2022-11-14T23:16:16.073+0600 I REPL [initandlisten] Stepping down the ReplicationCoordinator for shutdown, waitTime: 10000ms
2022-11-14T23:16:16.073+0600 I NETWORK [initandlisten] Shutting down the global connection pool
2022-11-14T23:16:16.073+0600 I - [initandlisten] Killing all operations for shutdown
2022-11-14T23:16:16.073+0600 I NETWORK [initandlisten] Shutting down the ReplicaSetMonitor
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] Shutting down free monitoring
2022-11-14T23:16:16.073+0600 I FTDC [initandlisten] Shutting down full-time data capture
2022-11-14T23:16:16.073+0600 I STORAGE [initandlisten] Shutting down the HealthLog
2022-11-14T23:16:16.073+0600 I - [initandlisten] Dropping the scope cache for shutdown
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] now exiting
2022-11-14T23:16:16.073+0600 I CONTROL [initandlisten] shutting down with code:48

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

Start with the service definition at /usr/lib/systemd/system/rocketchat.service and the full journal for rocketchat.service, then inspect startup at /opt/Rocket.Chat/main.js. The reported MongoDB output also shows a port conflict; done means identifying a reproducible startup cause and confirming that the service reaches an active state.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, node.js
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.