Skip to content

[BUG] v1.8.4-patch.1 null pointer appears when running #682

@lushou

Description

@lushou

OpenIM Server Version

v1.8.4-patch.1

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

2025-07-04T10:10:10.916049834+08:00 [2025-07-04 10:10:10 CST] Starting tools primarily involves component verification and other preparatory tasks.

2025-07-04T10:10:10.916136688+08:00 Starting /openim-chat/_output/bin/tools/linux/amd64/check-component -c /openim-chat/config/

2025-07-04T10:10:10.933183728+08:00 Index: 0, Config Path: /openim-chat/config/

2025-07-04T10:10:10.988527796+08:00 Mongo check succeeded.

2025-07-04T10:10:11.011340032+08:00 Redis check succeeded.

2025-07-04T10:10:11.059676063+08:00 2025-07-04 10:10:11.058 INFO [PID:2169] DefaultLoggerModule [undefined version] [imapi/call.go:64] api caller success resp {"operationID": "CheckOpenIM1751595013909796562", "api": "/auth/get_admin_token", "duration": 0.046921311, "req": "secret:"openIM123" userID:"imAdmin"", "resp": "token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiJpbUFkbWluIiwiUGxhdGZvcm1JRCI6MTAsImV4cCI6MTc1OTM3MTAxMSwiaWF0IjoxNzUxNTk1MDA2fQ.2nk6o9iqg3vS9mYpGBQU9VEcsgG8u36BjcY7i1HXGiE" expireTimeSeconds:7776000"}

2025-07-04T10:10:11.059702517+08:00 2025-07-04 10:10:11.059 DEBUG [PID:2169] DefaultLoggerModule [undefined version] [imapi/caller.go:85] get im admin token {"operationID": "CheckOpenIM1751595013909796562", "userID": "imAdmin"}

2025-07-04T10:10:11.059712235+08:00 OpenIM check succeeded.

2025-07-04T10:10:11.097755085+08:00 Etcd check succeeded.

2025-07-04T10:10:11.097777104+08:00 All components checks passed successfully.

2025-07-04T10:10:11.099331208+08:00 Starting /openim-chat/_output/bin/tools/linux/amd64/check-component -c /openim-chat/config/ successfully

2025-07-04T10:10:11.099362353+08:00 Starting /openim-chat/_output/bin/tools/linux/amd64/attribute-to-credential -c /openim-chat/config/

2025-07-04T10:10:11.121602906+08:00 Index: 0, Config Path: /openim-chat/config/

2025-07-04T10:10:11.212247603+08:00 [credential] credential data has been converted

2025-07-04T10:10:11.213965018+08:00 Starting /openim-chat/_output/bin/tools/linux/amd64/attribute-to-credential -c /openim-chat/config/ successfully

2025-07-04T10:10:11.213994267+08:00 [2025-07-04 10:10:11 CST] All tools executed successfully

2025-07-04T10:10:11.221046358+08:00 [2025-07-04 10:10:11 CST] Starting services involves multiple RPCs and APIs and may take some time. Please be patient

2025-07-04T10:10:11.221075900+08:00 Starting /openim-chat/_output/bin/platforms/linux/amd64/chat-rpc -i 0 -c /openim-chat/config/

2025-07-04T10:10:11.221541155+08:00 Starting /openim-chat/_output/bin/platforms/linux/amd64/admin-api -i 0 -c /openim-chat/config/

2025-07-04T10:10:11.222066572+08:00 Starting /openim-chat/_output/bin/platforms/linux/amd64/admin-rpc -i 0 -c /openim-chat/config/

2025-07-04T10:10:11.222539855+08:00 Starting /openim-chat/_output/bin/platforms/linux/amd64/chat-api -i 0 -c /openim-chat/config/

2025-07-04T10:10:11.225118797+08:00 [2025-07-04 10:10:11 CST] All services are running normally.

2025-07-04T10:10:11.225150321+08:00 [2025-07-04 10:10:11 CST] Display details of the ports listened to by the service:

2025-07-04T10:10:11.272103101+08:00 panic: interface conversion: discovery.SvcDiscoveryRegistry is *kubernetes.KubernetesConnManager, not *etcd.SvcDiscoveryRegistryImpl

2025-07-04T10:10:11.272155887+08:00

2025-07-04T10:10:11.272163621+08:00 goroutine 1 [running]:

2025-07-04T10:10:11.272170345+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).initEtcd(0xc000005508)

2025-07-04T10:10:11.272178221+08:00 /openim-chat/pkg/common/cmd/root.go:103 +0x171

2025-07-04T10:10:11.272184695+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).persistentPreRun(0xc000005508, 0xc000005508, {0xc000b05b48, 0x1, 0xc000298d00?})

2025-07-04T10:10:11.272211767+08:00 /openim-chat/pkg/common/cmd/root.go:109 +0x2b

2025-07-04T10:10:11.272219129+08:00 github.com/openimsdk/chat/pkg/common/cmd.NewRootCmd.func1(0xc000298d00?, {0x2675e83?, 0x4?, 0x2675e87?})

2025-07-04T10:10:11.272225038+08:00 /openim-chat/pkg/common/cmd/root.go:77 +0x29

2025-07-04T10:10:11.272231191+08:00 github.com/spf13/cobra.(*Command).execute(0xc000005508, {0xc0000500b0, 0x4, 0x4})

2025-07-04T10:10:11.272236929+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:954 +0x951

2025-07-04T10:10:11.272242581+08:00 github.com/spf13/cobra.(*Command).ExecuteC(0xc000005508)

2025-07-04T10:10:11.272248436+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff

2025-07-04T10:10:11.272254127+08:00 github.com/spf13/cobra.(*Command).Execute(...)

2025-07-04T10:10:11.272259927+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039

2025-07-04T10:10:11.272265870+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).Execute(...)

2025-07-04T10:10:11.272271734+08:00 /openim-chat/pkg/common/cmd/root.go:260

2025-07-04T10:10:11.272277724+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*AdminRpcCmd).Exec(...)

2025-07-04T10:10:11.272283656+08:00 /openim-chat/pkg/common/cmd/admin_rpc.go:52

2025-07-04T10:10:11.272290072+08:00 main.main()

2025-07-04T10:10:11.272296090+08:00 /openim-chat/cmd/rpc/admin-rpc/main.go:23 +0x1d

2025-07-04T10:10:11.273002995+08:00 panic: interface conversion: discovery.SvcDiscoveryRegistry is *kubernetes.KubernetesConnManager, not *etcd.SvcDiscoveryRegistryImpl

2025-07-04T10:10:11.273028080+08:00

2025-07-04T10:10:11.273038806+08:00 goroutine 1 [running]:

2025-07-04T10:10:11.273044533+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).initEtcd(0xc000422a88)

2025-07-04T10:10:11.273049455+08:00 /openim-chat/pkg/common/cmd/root.go:103 +0x171

2025-07-04T10:10:11.273055959+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).persistentPreRun(0xc000422a88, 0xc000422a88, {0xc000813c20, 0x1, 0xc0005a6600?})

2025-07-04T10:10:11.273065275+08:00 /openim-chat/pkg/common/cmd/root.go:109 +0x2b

2025-07-04T10:10:11.273073236+08:00 github.com/openimsdk/chat/pkg/common/cmd.NewRootCmd.func1(0xc0005a6600?, {0x2573b93?, 0x4?, 0x2573b97?})

2025-07-04T10:10:11.273082156+08:00 /openim-chat/pkg/common/cmd/root.go:77 +0x29

2025-07-04T10:10:11.273087620+08:00 github.com/spf13/cobra.(*Command).execute(0xc000422a88, {0xc0000500b0, 0x4, 0x4})

2025-07-04T10:10:11.273092619+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:954 +0x951

2025-07-04T10:10:11.273097377+08:00 github.com/spf13/cobra.(*Command).ExecuteC(0xc000422a88)

2025-07-04T10:10:11.273102053+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff

2025-07-04T10:10:11.273106737+08:00 github.com/spf13/cobra.(*Command).Execute(...)

2025-07-04T10:10:11.273111681+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039

2025-07-04T10:10:11.273116334+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).Execute(...)

2025-07-04T10:10:11.273121029+08:00 /openim-chat/pkg/common/cmd/root.go:260

2025-07-04T10:10:11.273125752+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*ChatRpcCmd).Exec(...)

2025-07-04T10:10:11.273130328+08:00 /openim-chat/pkg/common/cmd/chat_rpc.go:52

2025-07-04T10:10:11.273135169+08:00 main.main()

2025-07-04T10:10:11.273139950+08:00 /openim-chat/cmd/rpc/chat-rpc/main.go:23 +0x1d

2025-07-04T10:10:11.274570656+08:00 panic: interface conversion: discovery.SvcDiscoveryRegistry is *kubernetes.KubernetesConnManager, not *etcd.SvcDiscoveryRegistryImpl

2025-07-04T10:10:11.274592143+08:00

2025-07-04T10:10:11.274601541+08:00 goroutine 1 [running]:

2025-07-04T10:10:11.274615638+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).initEtcd(0xc0001b9888)

2025-07-04T10:10:11.274621091+08:00 /openim-chat/pkg/common/cmd/root.go:103 +0x171

2025-07-04T10:10:11.274626030+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).persistentPreRun(0xc0001b9888, 0xc0001b9888, {0xc000721c28, 0x1, 0xc000530800?})

2025-07-04T10:10:11.274630721+08:00 /openim-chat/pkg/common/cmd/root.go:109 +0x2b

2025-07-04T10:10:11.274635463+08:00 github.com/openimsdk/chat/pkg/common/cmd.NewRootCmd.func1(0xc000530800?, {0x24ec143?, 0x4?, 0x24ec147?})

2025-07-04T10:10:11.274640296+08:00 /openim-chat/pkg/common/cmd/root.go:77 +0x29

2025-07-04T10:10:11.274655142+08:00 github.com/spf13/cobra.(*Command).execute(0xc0001b9888, {0xc0000500b0, 0x4, 0x4})

2025-07-04T10:10:11.274660833+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:954 +0x951

2025-07-04T10:10:11.274665455+08:00 github.com/spf13/cobra.(*Command).ExecuteC(0xc0001b9888)

2025-07-04T10:10:11.274675238+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff

2025-07-04T10:10:11.274680699+08:00 github.com/spf13/cobra.(*Command).Execute(...)

2025-07-04T10:10:11.274685630+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039

2025-07-04T10:10:11.274690214+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).Execute(...)

2025-07-04T10:10:11.274694747+08:00 /openim-chat/pkg/common/cmd/root.go:260

2025-07-04T10:10:11.274699282+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*AdminApiCmd).Exec(...)

2025-07-04T10:10:11.274709668+08:00 /openim-chat/pkg/common/cmd/admin_api.go:44

2025-07-04T10:10:11.274715778+08:00 main.main()

2025-07-04T10:10:11.274725417+08:00 /openim-chat/cmd/api/admin-api/main.go:23 +0x1d

2025-07-04T10:10:11.275095914+08:00 panic: interface conversion: discovery.SvcDiscoveryRegistry is *kubernetes.KubernetesConnManager, not *etcd.SvcDiscoveryRegistryImpl

2025-07-04T10:10:11.275154528+08:00

2025-07-04T10:10:11.275165524+08:00 goroutine 1 [running]:

2025-07-04T10:10:11.275174701+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).initEtcd(0xc0007c5888)

2025-07-04T10:10:11.275180147+08:00 /openim-chat/pkg/common/cmd/root.go:103 +0x171

2025-07-04T10:10:11.275184969+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).persistentPreRun(0xc0007c5888, 0xc0007c5888, {0xc000822f98, 0x1, 0xc0005ae200?})

2025-07-04T10:10:11.275189932+08:00 /openim-chat/pkg/common/cmd/root.go:109 +0x2b

2025-07-04T10:10:11.275195107+08:00 github.com/openimsdk/chat/pkg/common/cmd.NewRootCmd.func1(0xc0005ae200?, {0x2475c28?, 0x4?, 0x2475c2c?})

2025-07-04T10:10:11.275199661+08:00 /openim-chat/pkg/common/cmd/root.go:77 +0x29

2025-07-04T10:10:11.275204896+08:00 github.com/spf13/cobra.(*Command).execute(0xc0007c5888, {0xc0000500b0, 0x4, 0x4})

2025-07-04T10:10:11.275209536+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:954 +0x951

2025-07-04T10:10:11.275214056+08:00 github.com/spf13/cobra.(*Command).ExecuteC(0xc0007c5888)

2025-07-04T10:10:11.275224356+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff

2025-07-04T10:10:11.275229152+08:00 github.com/spf13/cobra.(*Command).Execute(...)

2025-07-04T10:10:11.275233773+08:00 /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039

2025-07-04T10:10:11.275238205+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*RootCmd).Execute(...)

2025-07-04T10:10:11.275242545+08:00 /openim-chat/pkg/common/cmd/root.go:260

2025-07-04T10:10:11.275246949+08:00 github.com/openimsdk/chat/pkg/common/cmd.(*ChatApiCmd).Exec(...)

2025-07-04T10:10:11.275251332+08:00 /openim-chat/pkg/common/cmd/chat_api.go:35

2025-07-04T10:10:11.275256496+08:00 main.main()

2025-07-04T10:10:11.275278049+08:00 /openim-chat/cmd/api/chat-api/main.go:23 +0x1d

2025-07-04T10:10:12.228473583+08:00 No running processes found for binary: /openim-chat/_output/bin/platforms/linux/amd64/chat-api

2025-07-04T10:10:12.228518930+08:00 No running processes found for binary: /openim-chat/_output/bin/platforms/linux/amd64/chat-rpc

2025-07-04T10:10:12.228525588+08:00 No running processes found for binary: /openim-chat/_output/bin/platforms/linux/amd64/admin-api

2025-07-04T10:10:12.228531079+08:00 No running processes found for binary: /openim-chat/_output/bin/platforms/linux/amd64/admin-rpc

Screenshots Link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions