openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.79k stars 2.43k forks source link

[BUG] pc admin and uniapp client can't access #2522

Open tonypra opened 1 month ago

tonypra commented 1 month ago

OpenIM Server Version

3.8

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

pc client can't access

2024-08-15 12:43:31.071 DEBUG [PID:31422]  openim-rpc-msg  [version:3.8.0] [redis/lua_script.go:49] callLua args {"platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "opUserID": "2433565266", "scriptHash": "e7e31e3374819751918764f823c21c1faf243f34", "keys": "[MESSAGE_CACHE:n_2855090880_0]", "args": "[]"} 2024-08-15 12:43:31.071 DEBUG [PID:31422]  openim-rpc-msg  [version:3.8.0] [controller/msg.go:609] db.seq.GetMessagesBySeq {"platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "opUserID": "2433565266", "userID": "2433565266", "conversationID": "n_2855090880", "seqs": "[0]", "len(successMsgs)": "0", "failedSeqs": "[0]"} 2024-08-15 12:43:31.071 WARN [PID:31422]  openim-rpc-msg  [version:3.8.0] [msg/sync_msg.go:67] GetMsgBySeqs error {"platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "opUserID": "2433565266", "conversationID": "n_2855090880", "seq": "conversationID:\"n_2855090880\" num:1", "error": "mongo: no documents in result"} 2024-08-15 12:43:31.071 INFO [PID:31422]  openim-rpc-msg  [version:3.8.0] [mw/rpc_server_interceptor.go:57] RPC Server Response Success - PullMessageBySeqs {"platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "opUserID": "2433565266", "funcName": "/openim.msg.msg/PullMessageBySeqs", "resp": ""} 2024-08-15 12:43:31.072 INFO [PID:31442]  openim-msggateway  [version:3.8.0] [mw/rpc_client_interceptor.go:47] RPC Client Response Success - PullMessageBySeqs {"platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "opUserID": "2433565266", "funcName": "/openim.msg.msg/PullMessageBySeqs", "resp": ""} 2024-08-15 12:43:31.072 DEBUG [PID:31442]  openim-msggateway  [version:3.8.0] [msggateway/client.go:274] gateway reply message {"platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "opUserID": "2433565266", "resp": "{\"reqIdentifier\":1002,\"msgIncr\":\"2433565266_1723697013543860343\",\"operationID\":\"572cf708-3da6-40d5-bd45-8514c082b050\",\"errCode\":0,\"errMsg\":\"\",\"data\":null}"} 2024-08-15 12:43:31.072 DEBUG [PID:31442]  openim-msggateway  [version:3.8.0] [msggateway/client.go:137] readMessage {"remoteAddr": "113.110.215.62:32416", "platform": "Web", "connID": "1f5ed01ce4900358ee2d509be39be976", "operationID": "1723697012456964944", "opUserID": "2433565266"} 2024-08-15 12:43:31.134 DEBUG [PID:31345]  openim-api  [version:3.8.0] [mw/rpc_client_interceptor.go:44] RPC Client Request - parseToken {"operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "funcName": "/openim.auth.Auth/parseToken", "req": "token:\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiIyNDMzNTY1MjY2IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzMxNDI0MDkzLCJuYmYiOjE3MjM2NDc3OTMsImlhdCI6MTcyMzY0ODA5M30.ZpAxnE-B25TcQl6-ATf14Oik2fEqZBgegqAlHJLuoPA\"", "conn target": "etcd:///openim/auth"} 2024-08-15 12:43:31.135 INFO [PID:31347]  openim-rpc-auth  [version:3.8.0] [mw/rpc_server_interceptor.go:48] RPC Server Request - ParseToken {"operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "funcName": "/openim.auth.Auth/ParseToken", "req": "token:\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiIyNDMzNTY1MjY2IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzMxNDI0MDkzLCJuYmYiOjE3MjM2NDc3OTMsImlhdCI6MTcyMzY0ODA5M30.ZpAxnE-B25TcQl6-ATf14Oik2fEqZBgegqAlHJLuoPA\""} 2024-08-15 12:43:31.135 INFO [PID:31347]  openim-rpc-auth  [version:3.8.0] [mw/rpc_server_interceptor.go:57] RPC Server Response Success - ParseToken {"operationID": "572cf708-3da6-40d5-bd45-8514c082b050", "funcName": "/openim.auth.Auth/ParseToken", "resp": "userID:\"2433565266\" platformID:5 expireTimeSeconds:1731424093"}

Screenshots Link

image image

tonypra commented 1 month ago

image image

OpenIM-Robot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


image image

tonypra commented 1 month ago

ๆบ็ ้ƒจ็ฝฒไบ†๏ผŒserverๅ’Œchat้ƒฝๆญฃๅธธ็Šถๆ€๏ผŒๆ˜จๅคฉ่ฟ˜ๅฏไปฅๆญฃๅธธๆต‹่ฏ•๏ผŒไฝ†ๆ˜ฏ็Žฐๅœจๅ‘็Žฐๆ–ฐ้—ฎ้ข˜ 1ใ€ip:11001/#/contact PC ๅ‰็ซฏๅฏไปฅๆญฃๅธธ่ฎฟ้—ฎใ€‚ 2ใ€็ฎก็†ๅŽๅฐไธ่ƒฝ่ฎฟ้—ฎ ip:11002/profile/admin_info 3ใ€uniapp็ซฏไธ่ƒฝ่ฎฟ้—ฎ

OpenIM-Robot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


The source code has been deployed, and the server and chat are in normal status. Yesterday, it could be tested normally, but now a new problem has been discovered.

  1. IP:11001/#/contact The PC front end can be accessed normally.
  2. The management background cannot access ip:11002/profile/admin_info
  3. The uniapp side cannot be accessed
tonypra commented 1 month ago

image

tonypra commented 1 month ago

image

OpenIM-Robot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


image

tonypra commented 1 month ago

image

skiffer-git commented 1 month ago

Navigate to the chat directory, then run mage check

tonypra commented 1 month ago

image image

OpenIM-Robot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


image image

skiffer-git commented 1 month ago

The UniApp version hasn't been updated yet, please use the Flutter version.

skiffer-git commented 1 month ago

What errors occur when accessing IP:11002? Please provide the browser's error logs

skiffer-git commented 1 month ago

just visit ip:11002 not ip:11002/profile/admin_info

tonypra commented 1 month ago

The UniApp version hasn't been updated yet, please use the Flutter version. -- When will it be updated?