Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] bug after the openserver upgrade #679

@495732838

Description

@495732838

OpenIM Server Version

3.8.3

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

系统采用docker集群方式部署(经过自行改造后,openserver已支持集群)

版本从v3.8.2升级到3.8.3后openserver-msg出现如下错误:

Error: Error: (DuplicateKey) Index build failed: bcd83705-4caf-4ba2-addc-d010ca4451f2: Collection openim_v3.credential ( af4315cf-8e7a-4aad-8f37-a591561c46a6 ) :: caused by :: E11000 duplicate key error collection: openim_v3.credential index: account_1 dup key: { account: "+86 +65 0000 0000" } | -> chat.NewCredential() /open im-chat/pkg/common/db/model/chat/credential.go:32 -> database.NewChatDatabase() /openim-chat/pkg/common/db/database/chat.go:75 -> chat.Start() /openim-chat/interna l/rpc/chat/start.go:53 -> startrpc.Start[...]() /openim-chat/pkg/common/startrpc/start.go:73 -> cmd.(*ChatRpcCmd).runE() /openim-chat/pkg/common/cmd/chat_rpc.go:56 -> cmd.NewChatRpcCmd.func1() /openim-chat/pkg/common/cmd/chat_rpc.go:46 -> cobra.(*Command).execute() /go/pkg/mod/github.com/spf13/[email protected]/command.go:983 -> cobra.(*Command).ExecuteC() /go/pkg/mod/github.com/spf13/[email protected]/command.go:1116 -> cobra.(*Command).Execute() /go/pkg/mod/github.com/spf13/[email protected]/comma nd.go:1039 -> cmd.(*RootCmd).Execute() /openim-chat/pkg/common/cmd/root.go:260 -> cmd.(*ChatRpcCmd).Exec() /openim-chat/pkg/common/cmd/chat_rpc.go:52 -> main.main( ) /openim-chat/cmd/rpc/chat-rpc/main.go:23

烦请协助排查是版本不兼容的问题,还是其他问题

Screenshots Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions