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
31 stars 39 forks source link

centos7.6 system fails to run openim-chat openim-server after deployment using Docker #140

Closed 1104190950 closed 2 months ago

1104190950 commented 2 months ago

OpenIM Server Version

3.7

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

centos7.6 采用docker 部署后minio 和 mongo 提示 CPU does not support x86-64-v2 于是更换 .env内容 MINIO_IMAGE=minio/minio:RELEASE.2023-04-28T18-11-17Z
MONGO_IMAGE=mongo:4.0.20
再重新 docker compose up -d 后程序都能正常启动
但是查看日志docker logs -f openim-server 后有错误提示 Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@mongo:27017/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. check-component exit -1: not all components checks passed successfully after 180 attempts [2024-05-10 04:07:26 UTC] Some tools failed to start, details are as follows, abort start failed to execute /openim-server/_output/bin/tools/linux/amd64/check-component with exit code: exit status 255

查看日志 docker logs -f openim-chat 后有错误提示
Mongo check failed: MongoDB ping failed, URI=mongodb://openIM:openIM123@mongo:27017/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. OpenIM check failed: Post "http://openim-server:10002/auth/user_token": dial tcp 172.20.0.3:10002: connect: connection refused check-component exit -1: not all components checks passed successfully after 180 attempts [2024-05-10 04:07:25 UTC] Some tools failed to start, details are as follows, abort start failed to execute /openim-chat/_output/bin/tools/linux/amd64/check-component with exit code: exit status 255

最后 http//:ip:11002/login 登陆操作时打开浏览器的控制台发现 http://ip:10009/account/login 没有任何反应

Screenshots Link

image image image image image

kubbot commented 2 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.

1104190950 commented 2 months ago

之前是这个系统 centos7.6 换成 centos8 或以上就可以成功部署

kubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It used to be this system centos7.6. If you change it to centos8 or above, you can successfully deploy it.