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
When this issue occurs, it is likely due to permission issues with the mapped script files in the Docker environment, causing create-topic.sh (for Kafka) and mongo-init.sh (for Mongo) scripts to not execute properly. Here’s how to resolve this:
Start all Docker services:
Run docker compose up -d to ensure all images are started.
From the project root directory, use docker cp to copy Mongo’s initialization script:
# Use docker cp to copy mongo-init.sh to a temporary directory within the container
docker cp ./scripts/mongo-init.sh mongo:/tmp/mongo-init.sh
# Directly execute the script inside the container to create the database and user
docker exec -it mongo /bin/bash -c "bash /tmp/mongo-init.sh"
From the project root directory, use docker cp to copy Kafka’s initialization script:
# Use docker cp to copy create-topic.sh to a temporary directory within the container
docker cp ./scripts/create-topic.sh kafka:/tmp/create-topic.sh
# Directly execute the script inside the container to create the topic
docker exec -it kafka /bin/bash -c "bash /tmp/create-topic.sh"
OpenIM Server Version
3.8.1
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@localhost:37017/openim_v3?maxPoolSize=100, Database=openim_v3, MaxPoolSize=100: connection() error occurred during connection handshake: auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed.
Kafka check failed: topic not exist, topic=toMongo
Kafka check failed: topic not exist, topic=toMongo
Screenshots Link
The text was updated successfully, but these errors were encountered: