open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[BUG] Unknown crash

Open cipchk opened this issue 8 months ago • 6 comments

OpenIM Server Version

3.8.3

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

2025/03/10 07:55:53 http: panic serving 172.19.0.1:51396: runtime error: invalid memory address or nil pointer dereference

goroutine 548 [running]:

net/http.(*conn).serve.func1()

	/usr/local/go/src/net/http/server.go:1903 +0xbe

panic({0x12dc060?, 0x2211240?})

	/usr/local/go/src/runtime/panic.go:770 +0x132

github.com/openimsdk/open-im-server/v3/pkg/rpcli.(*AuthClient).ParseToken(...)

	/openim-server/pkg/rpcli/auth.go:29

github.com/openimsdk/open-im-server/v3/internal/msggateway.(*WsServer).wsHandler(0xc000168780, {0x1730df0, 0xc0004460e0}, 0xc0006450e0)

	/openim-server/internal/msggateway/ws_server.go:433 +0xef

net/http.HandlerFunc.ServeHTTP(0x224c940?, {0x1730df0?, 0xc0004460e0?}, 0x6ee09a?)

	/usr/local/go/src/net/http/server.go:2171 +0x29

net/http.(*ServeMux).ServeHTTP(0x46cdf9?, {0x1730df0, 0xc0004460e0}, 0xc0006450e0)

	/usr/local/go/src/net/http/server.go:2688 +0x1ad

net/http.serverHandler.ServeHTTP({0xc0007404b0?}, {0x1730df0?, 0xc0004460e0?}, 0x6?)

	/usr/local/go/src/net/http/server.go:3142 +0x8e

net/http.(*conn).serve(0xc00009b170, {0x1735270, 0xc00064e570})

	/usr/local/go/src/net/http/server.go:2044 +0x5e8

created by net/http.(*Server).Serve in goroutine 541

	/usr/local/go/src/net/http/server.go:3290 +0x4b4

Screenshots Link

No response

cipchk avatar Mar 10 '25 07:03 cipchk

Hi, is this the log output from the console during Docker deployment?

Can the IM server connect properly?

FGadvancer avatar Mar 12 '25 07:03 FGadvancer

Docker;但出现上述异常时,已经宕机了,所有 IM 全掉线了。但是重启容器后恢复了。但是这种引起宕机如果发生在半夜就很难受了

cipchk avatar Mar 13 '25 13:03 cipchk

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


Docker; but when the above exception occurs, it has already crashed and all IMs are disconnected. But it recovered after restarting the container. But this kind of downtime will be very uncomfortable if it happens in the middle of the night

OpenIM-Robot avatar Mar 13 '25 13:03 OpenIM-Robot

Did you build this image yourself?

skiffer-git avatar Mar 26 '25 03:03 skiffer-git

参与 https://doc.rentsoft.cn/zh-Hans/guides/gettingStarted/dockerCompose 搭建的

cipchk avatar Mar 26 '25 04:03 cipchk

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


Participated in the construction of https://doc.rentsoft.cn/zh-Hans/guides/gettingStarted/dockerCompose

OpenIM-Robot avatar Mar 26 '25 04:03 OpenIM-Robot