-
系统是 ubuntu server lts 20.0.4,CPU8核,内存16G,运行机器人时CPU和内存只占用一半,ulimit n 显示 1000000。 机器人使用自带的websocket.connect 发起连接,报错时在另一个机器继续开,服务器是可以继续接收连接的。 skynet更新到最新主干:eaba8f9 不管重启多少次机器人,都是在28234的时候失败 ,报错log: 24/02/22 22:10:58.44 [:00006e53] LAUNCH snlua robot/RobotClient 28233 24/02/22 22:10:58.45 [:00006e53] init service failed: ./skyframe/engine/lualib/http/sockethelper.lua:98: socket_error5 stack traceback: [C]: in function 'error' ./skyframe/engine/lualib/http/sockethelper.lua:98: in function 'http.sockethelper.connect' ./skyframe/engine/lualib/http/websocket.lua:448: in function 'skyframe.engine.lualib.http.websocket.connect' ./skyframe/engine/develop/net/WSClient.lua:32: in method 'Connect' ./robot/module/RobotLogin.lua:15: in method 'RobotStart' ./robot/RobotModule.lua:28: in method 'RobotStart' ./robot/RobotClient.lua:33: in method 'Run' ./skyframe/engine/develop/BaseServer.lua:58: in upvalue 'start' ./skyframe/engine/lualib/skynet.lua:935: in function <./skyframe/engine/lualib/skynet.lua:933> [C]: in function 'xpcall' ./skyframe/engine/lualib/skynet.lua:937: in function 'skynet.init_service' ./skyframe/engine/lualib/skynet.lua:950: in upvalue 'f' ./skyframe/engine/lualib/skynet.lua:253: in function <./skyframe/engine/lualib/skynet.lua:252> 24/02/22 22:10:58.45 [:00006e53] KILL self 24/02/22 22:10:58.45 [:00000008] init service failed: ./skyframe/engine/lualib/skynet.lua:590: call failed stack traceback: [C]: in function 'error' ./skyframe/engine/lualib/skynet.lua:590: in upvalue 'yield_call' ./skyframe/engine/lualib/skynet.lua:607: in function 'skynet.call' (...tail calls...) ./robot/RobotMain.lua:21: in upvalue 'start' ./skyframe/engine/lualib/skynet.lua:935: in function <./skyframe/engine/lualib/skynet.lua:933> [C]: in function 'xpcall' ./skyframe/engine/lualib/skynet.lua:937: in function 'skynet.init_service' ./skyframe/engine/lualib/skynet.lua:950: in upvalue 'f' ./skyframe/engine/lualib/skynet.lua:253: in function <./skyframe/engine/lualib/skynet.lua:252> |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
检查一下是不是内存不够了?
lsx1994 ***@***.***> 于2022年2月24日周四 17:50写道:
… ulimit 信息:
[image: image]
<https://user-images.githubusercontent.com/66242418/155499893-dc29f416-c220-4acc-9599-d45dcc678694.png>
报错log:
不管重启多少次机器人,都是在28234的时候失败
[image: image]
<https://user-images.githubusercontent.com/66242418/155499930-fffe40e8-660f-4860-a644-b7ee5237b17c.png>
机器人使用自带的websocket.connect 发起连接。
机器人报错时在另一个机器继续开,服务器是可以继续接收连接的。
—
Reply to this email directly, view it on GitHub
<#1542>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK6QJSPMR2ZOYVGTOQVTKLU4X5OLANCNFSM5PG32WFA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
一般都还是要标注一下skynet的版本号吧. 或者更新到最新版本看看. |
Beta Was this translation helpful? Give feedback.
-
用图片贴文本的帖子不回复。 |
Beta Was this translation helpful? Give feedback.
-
https://github.com/cloudwu/skynet/blob/master/lualib/http/sockethelper.lua#L93 此处 socket.open 返回 nil 连接失败时,还有第二个返回值是出错信息。建议输出出来看看失败原因。 |
Beta Was this translation helpful? Give feedback.
https://github.com/cloudwu/skynet/blob/master/lualib/http/sockethelper.lua#L93 此处 socket.open 返回 nil 连接失败时,还有第二个返回值是出错信息。建议输出出来看看失败原因。