Open taoyao-code opened 2 weeks ago
[2Kopenim-chat | Error: failed to connect to MongoDB, URI=mongodb://openIM:openIM123@mongo:27017/openim_v3?maxPoolSize=100: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: mongo:27017, Type: Unknown, Last error: dial tcp 192.168.176.4:27017: i/o timeout }, ] } [2Kopenim-chat | chat-rpc exit -1: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: mongo:27017, Type: Unknown, Last error: dial tcp 192.168.176.4:27017: i/o timeout }, ] } [2Kopenim-chat | failed to connect to MongoDB, URI=mongodb://openIM:openIM123@mongo:27017/openim_v3?maxPoolSize=100 [2Kopenim-chat | github.com/openimsdk/tools/errs.WrapMsg [2Kopenim-chat | /go/pkg/mod/github.com/openimsdk/tools@v0.0.49-alpha.18/errs/coderr.go:134 [2Kopenim-chat | github.com/openimsdk/tools/db/mongoutil.NewMongoDB [2Kopenim-chat | /go/pkg/mod/github.com/openimsdk/tools@v0.0.49-alpha.18/db/mongoutil/mongo.go:77 [2Kopenim-chat | github.com/openimsdk/chat/internal/rpc/chat.Start [2Kopenim-chat | /openim-chat/internal/rpc/chat/start.go:36 [2Kopenim-chat | github.com/openimsdk/chat/pkg/common/startrpc.Start[...] [2Kopenim-chat | /openim-chat/pkg/common/startrpc/start.go:79 [2Kopenim-chat | github.com/openimsdk/chat/pkg/common/cmd.(ChatRpcCmd).runE [2Kopenim-chat | /openim-chat/pkg/common/cmd/chat_rpc.go:55 [2Kopenim-chat | github.com/openimsdk/chat/pkg/common/cmd.NewChatRpcCmd.func1 [2Kopenim-chat | /openim-chat/pkg/common/cmd/chat_rpc.go:45 [2Kopenim-chat | github.com/spf13/cobra.(Command).execute [2Kopenim-chat | /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983
Which configuration items have you modified?
There is a very strange problem at present. It is normal on a new server, but when the corresponding configuration file is completely complicated to this server, the problem of inaccessibility occurs.
Modify the redis container_name in the docker-compose.yaml file to: redis_7
OpenIM Server Version
3.7.1
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Bug Description and Steps to Reproduce
.env
docker-composer
Screenshots Link
docker-compose (1).log