# Cannot access URL on new RocketChat container

**URL:** <https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075>\
**Category:** Community Support\
**Tags:** rocketchat-apps, docker\
**Created:** [October 19, 2023, 7:54pm UTC](https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075 "2023-10-19T19:54:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpmurdock](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tpmurdock](https://forums.rocket.chat/u/tpmurdock)\
**Post date:** [October 19, 2023, 7:54pm UTC](https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075/1 "2023-10-19T19:54:41Z")

</div>

### Description

I am having an issue with standing up a new RocketChat instance on a brand new Debian image. I have followed the documentation and installed using docker compose.

The containers create without issue, but when I try to connect to the URL, I am only faced with a loading screen and nothing ever materializes.

I think part of the issue is that the ROOT\_URL is not updating in RocketChat even though I have it set in the .env file. Running ‘docker compose config’ reflects the correct root URL but when I look at the rocketchat container logs, it still shows the “localhost:3000” for ROOT\_URL.

Also, when inspecting the loading page, there is a file “meter\_runtime\_config.js” that is failing to connect to another page because it is trying to connect to localhost:3000 which doesn’t exist on the device I am trying to access from.

I have made numerous changes to the .env file and looked at the build config to confirm the changes are made, but the rocketchat container still is using localhost:3000 as its ROOT\_URL.

### Server Setup Information

- Version of Rocket.Chat Server: 6.4.0
- Operating System: Debian 12
- Deployment Method: docker
- Number of Running Instances:
- DB Replicaset Oplog: Enabled
- NodeJS Version: 14.21.3
- MongoDB Version: 5.0.21
- Proxy: 
- Firewalls involved:

### Any additional Information

This is the snippet from the rocketchat container logs  
±---------------------------------------------+  
| SERVER RUNNING |  
±---------------------------------------------+  
| |  
| Rocket.Chat Version: 6.4.0 |  
| NodeJS Version: 14.21.3 - x64 |  
| MongoDB Version: 5.0.21 |  
| MongoDB Engine: wiredTiger |  
| Platform: linux |  
| Process Port: 3000 |  
| Site URL: localhost:3000 |  
| ReplicaSet OpLog: Enabled |  
| Commit Hash: e2f60199ab |  
| Commit Branch: HEAD  
±---------------------------------------------+

Here is the current docker config created from the docker-compose.yml and .env files:

name: root  
services:  
mongodb:  
environment:  
ALLOW\_EMPTY\_PASSWORD: “yes”  
MONGODB\_ADVERTISED\_HOSTNAME: mongodb  
MONGODB\_ENABLE\_JOURNAL: “true”  
MONGODB\_INITIAL\_PRIMARY\_HOST: mongodb  
MONGODB\_INITIAL\_PRIMARY\_PORT\_NUMBER: “27017”  
MONGODB\_PORT\_NUMBER: “27017”  
MONGODB\_REPLICA\_SET\_MODE: primary  
MONGODB\_REPLICA\_SET\_NAME: rs0  
image: [docker.io/bitnami/mongodb:5.0](http://docker.io/bitnami/mongodb:5.0)  
networks:  
default: null  
restart: always  
volumes:  
- type: volume  
source: mongodb\_data  
target: /bitnami/mongodb  
volume: {}  
rocketchat:  
depends\_on:  
mongodb:  
condition: service\_started  
required: true  
environment:  
DEPLOY\_METHOD: docker  
DEPLOY\_PLATFORM: “”  
MONGO\_OPLOG\_URL: mongodb://mongodb:27017/local?replicaSet=rs0  
MONGO\_URL: mongodb://mongodb:27017/rocketchat?replicaSet=rs0  
PORT: “3000”  
REG\_TOKEN: “”  
ROOT\_URL: [http://10.0.0.194:3000](http://10.0.0.194:3000)  
expose:  
- “3000”  
image: registry.rocket.chat/rocketchat/rocket.chat:6.4.0  
labels:  
traefik.enable: “true”  
traefik.http.routers.rocketchat.entrypoints: https  
traefik.http.routers.rocketchat.rule: Host(``)  
traefik.http.routers.rocketchat.tls: “true”  
traefik.http.routers.rocketchat.tls.certresolver: le  
networks:  
default: null  
ports:  
- mode: ingress  
host\_ip: 0.0.0.0  
target: 3000  
published: “3000”  
protocol: tcp  
restart: always  
networks:  
default:  
name: root\_default  
volumes:  
mongodb\_data:  
name: root\_mongodb\_data  
driver: local

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![tpmurdock](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tpmurdock](https://forums.rocket.chat/u/tpmurdock)\
**Post date:** [October 20, 2023, 6:56pm UTC](https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075/2 "2023-10-20T18:56:02Z")

</div>

I found the cause of the issue (or atleast mine). Apparently even when you run docker compose down, it does not totally wipe the mongodb data. I originally had run the docker compose without changing the ROOT\_URL.

After hours and hours of searching, I finally stumbled upon the answer. Run the command “docker compose down --volumes” while the containers are running and this will wipe the mongodb.

Make sure your .env file is correct and run “docker compose up -d” again and it should change the site URL to what you have listed in the .env file.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![kartik.gupta2](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kartik.gupta2](https://forums.rocket.chat/u/kartik.gupta2)\
**Post date:** [October 21, 2023, 10:19pm UTC](https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075/3 "2023-10-21T22:19:26Z")

</div>

Not working for me, did you change something else as well ?

---

<div class="post-metadata">

**Author:** ![tpmurdock](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tpmurdock](https://forums.rocket.chat/u/tpmurdock)\
**Post date:** [October 23, 2023, 6:06pm UTC](https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075/4 "2023-10-23T18:06:50Z")

</div>

I had edited my compose.yml and .env files a million times but other than running the command that wipes out the volumes for the mongodb, I don’t think so.

Are you able to access the loading page on the root URL? I knew I was close since it was serving the page, but was failing because it was trying to fetch the rest from localhost instead of the URL I had specified.

Have you looked at your container logs?

---

<div class="post-metadata">

**Author:** ![kartik.gupta2](https://avatars.discourse-cdn.com/v4/letter/k/dfb087/32.png) [@kartik.gupta2](https://forums.rocket.chat/u/kartik.gupta2)\
**Post date:** [November 11, 2023, 10:50am UTC](https://forums.rocket.chat/t/cannot-access-url-on-new-rocketchat-container/18075/5 "2023-11-11T10:50:26Z")

</div>

worked, i just added “” to the server url
