Replies: 2 comments
-
Bot-app connected to db with python:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I found what the problem is - a bug in the latest version of Docker |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using a VM on DigitalOcean with Ubuntu 23.10 x64 on board. When deploying docker-compose I get authorization errors when connecting to the database:
"Supported SASL mechanisms requested for unknown user"
"Failed to authenticate","attr":{"client":"172.18.0.2:59790","isSpeculative":true,"isClusterMember":false,"mechanism":"SCRAM-SHA-256","user":"maria","db":"admin","error":"UserNotFound: Could not find user "maria" for db "admin""
When building from under Windows this problem is not present (the database is not installed locally either, everything is only inside the containers), and I can't understand what the problem is
I have already tried everything that has been advised on the Internet, including initializing the database and user with a script during the build - all the same failures
What is the problem if the images are identical, the containers are identical, but in one case the user(MONGO_ROOT_USERNAME) is created and located, but in the other case it is not?
My docker-compose:
The .env contains:
DB container logs in Ubuntu VM(Docker version 26.0.1, build d260a54)
Remote connections are the same:
DB container logs in Windows(Docker version 25.0.3, build 4debf41)
Beta Was this translation helpful? Give feedback.
All reactions