I followed the instructions: Rocket.Chat in CentOS - Rocket.Chat Docs
But after executing this command: sudo systemctl enable rocketchat && sudo systemctl start rocketchat
about 20 secs later the service fails: service rocketchat status
Message:
Redirecting to /bin/systemctl status rocketchat.service
● rocketchat.service - The Rocket.Chat server
Loaded: loaded (/usr/lib/systemd/system/rocketchat.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Tue 2021-10-12 11:25:00 +0330; 1s ago
Process: 27267 ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js (code=killed, signal=SEGV)
Main PID: 27267 (code=killed, signal=SEGV)
Oct 12 11:24:51 server.shetabit.ir systemd[1]: Started The Rocket.Chat server.
Oct 12 11:25:00 server.shetabit.ir systemd[1]: rocketchat.service: main process exited, code=killed, status=11/SEGV
Oct 12 11:25:00 server.shetabit.ir systemd[1]: Unit rocketchat.service entered failed state.
Oct 12 11:25:00 server.shetabit.ir systemd[1]: rocketchat.service failed.
I see some relevant logs but they are old. I’m not sure if it’s the reason.
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: ## There is an issue with `node-fibers` ##
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: `/opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-72-glibc
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: Try running this to fix the issue: /usr/local/bin/node /opt/Rocket.Chat/prog
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: Error: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1187:18)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Module.load (internal/modules/cjs/loader.js:985:32)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Module.Mp.load (/opt/Rocket.Chat/programs/server/runtime.js:15:31)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Function.Module._load (internal/modules/cjs/loader.js:878:14)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Module.require (internal/modules/cjs/loader.js:1025:19)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at require (internal/modules/cjs/helpers.js:72:18)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/node_modules/fibers/
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Module._compile (internal/modules/cjs/loader.js:1137:30)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Module.Mp._compile (/opt/Rocket.Chat/programs/server/runtime.js:50:23)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: /opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:23
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: throw new Error('Missing binary. See message above.');
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: ^
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: Error: Missing binary. See message above.
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/node_modules/fibers/
Oct 12 10:05:27 server.shetabit.ir rocketchat[26276]: at Module._compile (internal/modules/cjs/loader.js:1137:30)
I am facing similar problem too on my CentOS7:
● rocketchat.service - The Rocket.Chat server
Loaded: loaded (/usr/lib/systemd/system/rocketchat.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-10-13 17:15:51 +08; 2min 17s ago
Process: 12618 ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js (code=exited, status=1/FAILURE)
Main PID: 12618 (code=exited, status=1/FAILURE)
If this is the same problem, I hope someone can help us.
So you can either change the docker-compose yourself, changing the mongo version to 4.2, removing the --smallfiles flag, and changing the storage engine to wiredtiger, or use it as it is, knowing that you will have to do this migration sometime in the future and will receive some deprecation warnings along the way.
I managed to run a Docker. I am using Mongo 4.0 for now, it is fine with me:
mongo:
image: mongo:4.0
restart: unless-stopped
volumes:
- ./data/db:/data/db #- ./data/dump:/dump
command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
My next question is, how am I configure the Mobile Reactnative code to connect to this Docket server? Appreciate your help.