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: update mongo password error #72

Closed luhaoling closed 7 months ago

luhaoling commented 7 months ago

What happened?

I have successful start the project( IM & Chat).When I change the mongo.password in .env and config/config.yaml, I met the follow error.

Starting component... Checking components Round 1... Starting Mongo failed, connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017 Checking components Round 2... Starting Mongo failed, connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017 Checking components Round 3... Starting Mongo failed, connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017 Checking components Round 4... Starting Mongo failed, connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017 Checking components Round 5... Starting Mongo failed, connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017 Checking components Round 6... Starting Mongo failed, connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.;ths addr is:172.28.0.1:37017

The excute commands as follow:

Before change the password

make init docker compose up -d make build make start make check

Change the password of .env and config/config.ymal. Change the mongo.password to "openIM123456"

After change the password

docker compose down docker compose up -d make build make start

What did you expect to happen?

none

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

none

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

kubbot commented 7 months ago

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.