openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
36 stars 46 forks source link

Bug: Mongo cannot change username root #65

Closed AndrewZuo01 closed 7 months ago

AndrewZuo01 commented 7 months ago

What happened?

I change mongo username to root1234, then Starting Mongo failed, connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017

What did you expect to happen?

I should not have this error

How can we reproduce it (as minimally and precisely as possible)?

change mongo username in .env, make clean, docker compose down, docker compose up -d

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

AndrewZuo01 commented 7 months ago

.env, docker compose down, then make clean, docker compose up -d solves the problem

kubbot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


.env, docker compose down, then make clean, docker compose up -d