By dwDolphin
I had a rocket chat server running via the 1-click install process. I attempted to update the rocketchat version using:
rocketchatctl update
The update failed, and now I can’t get rocket chat back up and running. Here are the relevant rocketchat logs:
Sep 07 19:05:35 planexship systemd[1]: rocketchat.service: Failed with result 'exit-code'.
Sep 07 19:05:35 planexship systemd[1]: rocketchat.service: Main process exited, code=exited, status=1/FAILURE
Sep 07 19:05:35 planexship rocketchat[9053]: at Module.load (module.js:566:32)
Sep 07 19:05:35 planexship rocketchat[9053]: at Object.Module._extensions..js (module.js:664:10)
Sep 07 19:05:35 planexship rocketchat[9053]: at Module.Mp._compile (/opt/Rocket.Chat/programs/server/runtime.js:50:23)
Sep 07 19:05:35 planexship rocketchat[9053]: at Module._compile (module.js:653:30)
Sep 07 19:05:35 planexship rocketchat[9053]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/boot.js:469:3)
Sep 07 19:05:35 planexship rocketchat[9053]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/boot.js:2:15)
Sep 07 19:05:35 planexship rocketchat[9053]: at require (internal/module.js:11:18)
Sep 07 19:05:35 planexship rocketchat[9053]: at Module.require (module.js:597:17)
Sep 07 19:05:35 planexship rocketchat[9053]: at Function.Module._load (module.js:475:25)
Sep 07 19:05:35 planexship rocketchat[9053]: at Function.Module._resolveFilename (module.js:548:15)
Sep 07 19:05:35 planexship rocketchat[9053]: Error: Cannot find module 'fibers'
Sep 07 19:05:35 planexship rocketchat[9053]: ^
Sep 07 19:05:35 planexship rocketchat[9053]: throw err;
Sep 07 19:05:35 planexship rocketchat[9053]: module.js:550
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
/lib/systemd/system/rocketchat.service
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target mongod.service
[Service]
ExecStart=/usr/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
Environment=DEPLOY_PLATFORM=do-marketplace
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
Environment=ROOT_URL=https://301chat.stuycs.org
Environment=PORT=3000
Environment=BIND_IP=127.0.0.1
[Install]
WantedBy=multi-user.target
journalctl -xe
yields:
Started The Rocket.Chat server.
-- Subject: Unit rocketchat.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit rocketchat.service has finished starting up.
--
-- The start-up result is RESULT.
Sep 08 13:12:50 planexship rocketchat[14281]: module.js:550
Sep 08 13:12:50 planexship rocketchat[14281]: throw err;
Sep 08 13:12:50 planexship rocketchat[14281]: ^
Sep 08 13:12:50 planexship rocketchat[14281]: Error: Cannot find module 'fibers'
Sep 08 13:12:50 planexship rocketchat[14281]: at Function.Module._resolveFilename (module.js:548:15)
Sep 08 13:12:50 planexship rocketchat[14281]: at Function.Module._load (module.js:475:25)
Sep 08 13:12:50 planexship rocketchat[14281]: at Module.require (module.js:597:17)
Sep 08 13:12:50 planexship rocketchat[14281]: at require (internal/module.js:11:18)
Sep 08 13:12:50 planexship rocketchat[14281]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/boot.js:2:15)
Sep 08 13:12:50 planexship rocketchat[14281]: at Object.<anonymous> (/opt/Rocket.Chat/programs/server/boot.js:469:3)
Sep 08 13:12:50 planexship rocketchat[14281]: at Module._compile (module.js:653:30)
Sep 08 13:12:50 planexship rocketchat[14281]: at Module.Mp._compile (/opt/Rocket.Chat/programs/server/runtime.js:50:23)
Sep 08 13:12:50 planexship rocketchat[14281]: at Object.Module._extensions..js (module.js:664:10)
Sep 08 13:12:50 planexship rocketchat[14281]: at Module.load (module.js:566:32)
Sep 08 13:12:50 planexship systemd[1]: rocketchat.service: Main process exited, code=exited, status=1/FAILURE
Sep 08 13:12:50 planexship systemd[1]: rocketchat.service: Failed with result 'exit-code'.
Hi @dwDolphin ,
What do you have in your /lib/systemd/system/rocketchat.service ?
And can you check journalctl -xe ?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.