Debian服务器bot自动下线的问题
-
在Debian系统的服务器上运行bot几个小时后会出现HeartbeatFailedException然后自动下线。已经出现两次了。
2023-03-05 14:57:16 V/Bot.[qq号]: [发送者] -> Test 2023-03-05 23:44:05 V/Bot.[qq号]: Event: BotOfflineEvent.Dropped(bot=Bot([qq号]), cause=HeartbeatFailedException: [qq号].AliveHeartbeat, recoverable=true, cause=PacketTimeoutException(message=[qq号].AliveHeartbeat Scheduler: Timeout receiving action response, cause=kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms), reconnect=true) 2023-03-05 23:44:05 W/Bot.[qq号]: Connection lost, reconnecting... (HeartbeatFailedException: [qq号].AliveHeartbeat, recoverable=true, cause=PacketTimeoutException(message=[qq号].AliveHeartbeat Scheduler: Timeout receiving action response, cause=kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms)) 2023-03-05 23:44:26 I/Bot.[qq号]: Bot cancelled: Bot closed
Mirai版本是这样的
14:55:30 [INFO] Verifying "net.mamoe:mirai-console" v2.14.0 14:55:35 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.14.0 14:55:37 [INFO] Verifying "net.mamoe:mirai-core-all" v2.14.0 14:55:38 [INFO] Verifying "org.itxtech:mcl-addon" v2.1.1 14:55:39 [INFO] Verifying "net.mamoe:mirai-api-http" v2.8.0 14:55:39 [WARN] Package "net.mamoe:mirai-api-http" has newer version "2.9.1" 14:55:39 [INFO] Verifying "net.mamoe:chat-command" v0.5.1 14:55:39 [WARN] Run ./mcl -u to update packages. 14:55:39 [WARN] Package "net.mamoe:chat-command" requires "net.mamoe:mirai-console" version 2.0-RC. Current version is 2.14.0
想问一下是什么问题导致的,怎么修复?谢谢!
-
我也是这样,我手表协议在线两个小时左右就会自动下线,感觉是被腾讯踢下线的
-
感觉像是网络波动
-
@Liangyu-G 我的也是手表协议
-
@cssxsh 哦哦,我用的DigitalOcean的服务器,这两天确实不太稳定
-
DigitalOcean真有你的
-
@rhwong GitHub Student免费一年哈哈,不用白不用,不过我意识到为什么服务器网络有问题了,毕竟是外网服务器,最近在开会