You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoDB will not start and will complain that the replica set option is missing, even though it's clearly there in the mongod.conf that Coolify creates.
Example Repository URL
No response
Coolify Version
v4.0.0-beta.370
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04
Additional Information
After a lot of digging and experimenting, I found the strangest cause for this. It's the command line of the docker-compose.yml file Coolify creates.
This is what Coolify's docker-compose.yml looks like (from /data/coolify/databases/xs40cogkgoosggg08ckkw44o/ matching the service name):
And then start the process manually with docker compose up, then mongod appears to start fine.
This seems to be primarily a Docker problem, but it's a Coolify problem, too, because Coolify is creating this faulty docker-compose.yml file. And even though there's a way to adjust it to work, Coolify overwrites my changes every time I press "Start" in the Coolify dashboard.
Aside: even though the error message is complaining about missing replica set configuration, adding --replSet NAME to the command line still didn't fix it. It seems the only way to use Docker to start a shard config server is by doing the shell trick as shown above.
(I will report this in the issues for the Mongo docker image, too.)
The text was updated successfully, but these errors were encountered:
It turns out this is a problem with the Docker image when passing username and password via environment variables. But this could be worked around if Coolify would let us modify the docker image command.
Error Message and Logs
Steps to Reproduce
Example Repository URL
No response
Coolify Version
v4.0.0-beta.370
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04
Additional Information
After a lot of digging and experimenting, I found the strangest cause for this. It's the
command
line of the docker-compose.yml file Coolify creates.This is what Coolify's docker-compose.yml looks like (from
/data/coolify/databases/xs40cogkgoosggg08ckkw44o/
matching the service name):But that doesn't work with a shard config server setup no matter what I do inside the conf file (manually or through Coolify).
However, if we replace the
command
line with:Or:
And then start the process manually with
docker compose up
, thenmongod
appears to start fine.This seems to be primarily a Docker problem, but it's a Coolify problem, too, because Coolify is creating this faulty
docker-compose.yml
file. And even though there's a way to adjust it to work, Coolify overwrites my changes every time I press "Start" in the Coolify dashboard.Aside: even though the error message is complaining about missing replica set configuration, adding
--replSet NAME
to thecommand
line still didn't fix it. It seems the only way to use Docker to start a shard config server is by doing the shell trick as shown above.(I will report this in the issues for the Mongo docker image, too.)
The text was updated successfully, but these errors were encountered: