-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest develop docker image ignores MONGO_URL variable #26231
Comments
Any ideas or workarounds for this? |
For those who find this issue, I resolved it by changing the host name of the primary member in mongo. Original implementations of the compose file for rocketchat initialized the replica with hostname In my stack, my mongo container is named The solution was to log in to the mongo container, and get into the mongo shell with Once in the shell, this sequence of commands solved my issue:
After this, rocketchat was able to connect properly to the mongo instance. |
Thanks that did the trick for me @bkraul 👍
|
This solved my issue too when I upgrade from 4.8.0 to 5.0.0 and was hitting this error. For context, my scenario is the same as described by @bkraul as I've been using the RocketChat Official Docker repo without any changes except for testing out 5.0.0 because the current official "5.0.0" release from I ended up building my own Rocket.Chat dist from the 5.0.0 tag and edited the Dockerfile to use that instead of the official release and ended up hitting this error where it has been running fine with 4.8.0. |
I was getting the same error in Mongo after upgrading to 5.0.0. I did the below steps and *somehow it worked. I say somehow because when I accessed my Rocket Chat URL for a second I could see the login section but then I was asked to create an Admin account (basically set up Rocket Chat from scratch). Anyone know why this could be? Thank you!
|
That only works if your container's name in the stack is |
On one of my deployments I encountered a weird issue where I had to like remove several indexes and had them be recreated (because they were showing as non-unique or something like that. Hopefully that won't be your case). |
I am having this problem with docker image 5.1.0. The workaround fixes the problem, but it would be nice if the bug was fixed. |
Description:
Starting with git hash 8158bee, rocketchat image doesn't seem to be respecting the
MONGO_URL
variable. As a result, it tries to find the database on localhost, and it fails with the following error:A previous develop image (git hash 4f390d7) does not seem to have this problem.
Steps to reproduce:
Expected behavior:
Rocketchat should normally start
Actual behavior:
Fails with following error:
Server Setup Information:
Client Setup Information
Additional context
Relevant logs:
The text was updated successfully, but these errors were encountered: