Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unknown crash #3209

Open
cipchk opened this issue Mar 10, 2025 · 3 comments
Open

[BUG] Unknown crash #3209

cipchk opened this issue Mar 10, 2025 · 3 comments
Labels
bug Categorizes issue or PR as related to a bug. deployment

Comments

@cipchk
Copy link

cipchk commented Mar 10, 2025

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 cipchk added the bug Categorizes issue or PR as related to a bug. label Mar 10, 2025
@OpenIM-Robot OpenIM-Robot changed the title [BUG] 未知崩溃 [BUG] Unknown crash Mar 10, 2025
@FGadvancer
Copy link
Member

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

Can the IM server connect properly?

@cipchk
Copy link
Author

cipchk commented Mar 13, 2025

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

@OpenIM-Robot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. deployment
Projects
None yet
Development

No branches or pull requests

3 participants