Rocket.Chat's Community Open Call 🎤 Jan 19th, 2022 Join us!

Connection and modules error when starting Rocket.Chat

Hello. I use Ubuntu 18.04.

When I install Rocket.Chat with Docker and a manual installation I get the following error (only Docker with snaps works):

Does anyone know why?

Note: The installation is successful because the database fills with 56 collections. The process doesn’t stop, it keeps running.

cat << EOF |sudo tee -a /lib/systemd/system/rocketchat.service
[Unit]
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.service mongod.service
[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://localhost:3000/ PORT=3000
[Install]
WantedBy=multi-user.target
EOF

In Environment it had localhost instead of 0.0.0.0 and it did not recognize the folders.

I hope that it would be useful to someone.

1 Like

Thanks for sharing the solution :slight_smile:

1 Like