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

Bug: GetLoginUserInfo failed: sql: database is closed

Open anyone0034 opened this issue 2 years ago • 1 comments

What happened?

This error is an error returned by the open-im-sdk to the client, the connection was successful, and the sending data reported an error. When I refresh the page, trying again will be successful.

error *errors.withStack not implement CodeError: ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.(*DataBase).GetLoginUser()@31: GetLoginUserInfo failed: sql: database is closed

What did you expect to happen?

client:douyin mini program

How can we reproduce it (as minimally and precisely as possible)?

ws port:
ws://192.168.0.241:10003

run command: ```/data/dc/openim/openim-docker/oimws/cmd/oimws -openIM_api_address="http://localhost:10002" -openIM_ws_address="ws://localhost:10001" -sdk_ws_port=10003 -openIM_log_level=4 -openIMDbDir="/data/dc/openim/openim-docker/oimws/cmd/data"````

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

>wmic os get Caption, Version, BuildNumber, OSArchitecture
BuildNumber  Caption                          OSArchitecture  Version
19045        Microsoft Windows 10 Enterprise  64-bit          10.0.19045

Install tools

anyone0034 avatar Dec 28 '23 10:12 anyone0034

Please ensure that your login platform ID matches the platform ID obtained from the token.

FGadvancer avatar Dec 28 '23 11:12 FGadvancer

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot avatar Feb 27 '24 08:02 kubbot

This issue was closed because it has been stalled for 7 days with no activity.

kubbot avatar Mar 06 '24 08:03 kubbot