# Connection and modules error when starting Rocket.Chat

**URL:** <https://forums.rocket.chat/t/connection-and-modules-error-when-starting-rocket-chat/12751>\
**Category:** Community Support\
**Created:** [December 5, 2021, 1:11am UTC](https://forums.rocket.chat/t/connection-and-modules-error-when-starting-rocket-chat/12751 "2021-12-05T01:11:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![principemestizo](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@principemestizo](https://forums.rocket.chat/u/principemestizo)\
**Post date:** [December 5, 2021, 1:11am UTC](https://forums.rocket.chat/t/connection-and-modules-error-when-starting-rocket-chat/12751/1 "2021-12-05T01:11:26Z")

</div>

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):

 ![Screen Shot 2021-12-04 at 9.08.19 PM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/f/f203c33050788549ca3a1d66cf857c5919ca5d51.png)

Does anyone know why?

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

---

<div class="post-metadata">

**Author:** ![principemestizo](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@principemestizo](https://forums.rocket.chat/u/principemestizo)\
**Post date:** [December 5, 2021, 4:22am UTC](https://forums.rocket.chat/t/connection-and-modules-error-when-starting-rocket-chat/12751/2 "2021-12-05T04:22:03Z")

</div>

```auto
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.

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [December 6, 2021, 10:40am UTC](https://forums.rocket.chat/t/connection-and-modules-error-when-starting-rocket-chat/12751/3 "2021-12-06T10:40:28Z")

</div>

Thanks for sharing the solution 🙂
