Closed psybernoid closed 1 year ago
This is just mongo complaining about "Authentication Failed" aka. your password is wrong that can have two reasons:
you mis-setup Mongo DB and this is the wrong password (that can happen if you already have a password set and then change it in the env, it will still use the old password and not update it for example)
Re-creating from scratch and changed the password to something simple - Abcd1234.
Still the same error.
Try removing name: cosmos-db
in your network?
Right. Got it, the issue was with the environment variables in the mongo container. I was using the docker-compose posted here: https://github.com/azukaar/Cosmos-Server/issues/11#issuecomment-1547482207 as an initial guide.
Below is a working config template:
version: '3.3' services: cosmos-server: image: 'azukaar/cosmos-server:latest' container_name: cosmos-server restart: unless-stopped depends_on:
'/docker/cosmos:/config'
cosmo-mongo: image: mongo:latest container_name: cosmo-mongo restart: unless-stopped networks:
networks: cosmos: external: false
Glad you worked it out!
What happened?
When launching install wizard and selecting supply my own credentials, the web GUI seemingly accepts it.
However, progress is not made, docker logs show:
[ERROR] Status: Database error : connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
What should have happened?
Presumably, when supplying database credentials, the wizard should skip this step and connect?
How to reproduce the bug?
Sample docker-compose file. Should be able to reproduce from this.
version: '3.3' services: cosmos-server: image: 'azukaar/cosmos-server:latest' container_name: cosmos-server restart: unless-stopped depends_on:
'/docker/cosmos:/config'
cosmo-mongo: image: mongo:latest container_name: cosmo-mongo restart: unless-stopped networks:
networks: cosmos: name: cosmos-db external: false
Relevant log output
Other details
No response
System details
Alpine Linux 3.17