Open alithechemist opened 10 months ago
The same thing happened to me. Have you solved it?
No, not yet.
Ok, so i tried a lot of different things, but what worked for me was running the docker container manually instead of docker compose up and it worked. But not according to the readme, i had in fact made some changes to avoid errors. I also did not specify a version and i've got 6.3.5.
The problem was that the docker container does not take into account ROOT_URL, I noticed at the start of the container, in logs i could see:
+--------------------------------------------------------+
| SERVER RUNNING |
+--------------------------------------------------------+
| |
| Rocket.Chat Version: 6.3.5 |
| NodeJS Version: 14.21.3 - x64 |
| MongoDB Version: 5.0.21 |
| MongoDB Engine: wiredTiger |
| Platform: linux |
| Process Port: 3000 |
| Site URL: http://loclhost:3000 |
| ReplicaSet OpLog: Enabled |
| Commit Hash: 5c9c3f7864 |
| Commit Branch: HEAD |
| |
+--------------------------------------------------------+
Kept saying "Site URL: http://loclhost:3000" that was a pretty clear indication.
A few more problem popped up during the fix, for instance:
When trying to run the docker run command for mongo from the instruction in the readme.MD i have
docker logs 3089bfefa7ba
Error parsing command line: unrecognised option '--smallfiles', so i adjusted the command into:
docker run --name db -d mongo:5.0 mongod
In the instructions also suggests:
docker run --name db -d mongo:4.0 mongod --smallfiles
While it should be version 5 if it has to work with "latest" which the devs advise not to use, but it's default.
Maybe it needs a stable branch?
Replacing localhost in the compose file or in the env file did not work,
I instead ran the command:
docker run --name rocketchat -p 3000:3000 --env ROOT_URL=https://rocketchat.myactualdomain.com --link db:db -d rocket.chat
This worked. And finally at start it logs the correct external URL.
If you ask me, both the readme and the deploy guide here https://docs.rocket.chat/deploy/deploy-rocket.chat/deploy-with-docker-and-docker-compose just don't work for a number of reasons, they are partially outdated (mixing specific version of mongo with 'latest' ) but mainly because no one recently tested the instructions IMHO, that is evident.
I don't feel like closing this because these problem must be solved elsewhere. What i did was not a fix, it was desperation to see how much it takes to make it work. Answer: several hours of struggle for an environmental variable that is not picked up :) I actually do not know why the ROOT_URL in .env and the ROOT_URL in compose.yml don't work. It would be great to have chance to fix this and have compose do the job.
Thanks in advance. Chip
Honestly I am now in the process of removing it (and advise the same to others) because of what I read in the terms of service:
Customer hereby grants Rocket.Chat a worldwide license to use, host, store, reproduce, modify, create derivative works (e.g. as translations, adaptations or other changes we make so that the content in question works better with the Services), communicate, publish, perform, display and distribute User Data.
That's not cool. We need User respecting software not abusive software. Thank you, Chip.
Honestly I am now in the process of removing it (and advise the same to others) because of what I read in the terms of service:
Customer hereby grants Rocket.Chat a worldwide license to use, host, store, reproduce, modify, create derivative works (e.g. as translations, adaptations or other changes we make so that the content in question works better with the Services), communicate, publish, perform, display and distribute User Data.
That's not cool. We need User respecting software not abusive software. Thank you, Chip.
Well, I'm going to get rid of it, too
Set BIND_IP
and DOMAIN
work for me. Error occur when i set ROOT_URL
.
So, it's been a long time, when can this error be fixed?😑
Hi all, I'm running Haproxy (ssl offload) ->rocketchat(docker). The container starts ok but in the browser i can only see the three dots animation and in my browser dev-tools/network i see a failed POST request to localhost:3000.
The request is:
I would expect that the configuration of the url is picked up from .env ROOT_URL It seems to me that something keeps using localhost:3000 for URL building. Do you guys know what this can be?
Here is my env, the compose.yaml is untouched:
Do I need to disable traefik in compose.yaml?
Many thanks in advance.