MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Debian服务器bot自动下线的问题

    BUG反馈
    4
    7
    139
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zeitgeisttt last edited by

      在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
      

      想问一下是什么问题导致的,怎么修复?谢谢!

      1 Reply Last reply Reply Quote 0
      • L
        Liangyu-G last edited by

        我也是这样,我手表协议在线两个小时左右就会自动下线,感觉是被腾讯踢下线的

        Z 1 Reply Last reply Reply Quote 0
        • cssxsh
          cssxsh last edited by cssxsh

          感觉像是网络波动

          Z 1 Reply Last reply Reply Quote 0
          • Z
            Zeitgeisttt @Liangyu-G last edited by

            @Liangyu-G 我的也是手表协议

            1 Reply Last reply Reply Quote 0
            • Z
              Zeitgeisttt @cssxsh last edited by

              @cssxsh 哦哦,我用的DigitalOcean的服务器,这两天确实不太稳定

              1 Reply Last reply Reply Quote 0
              • rhwong
                rhwong last edited by

                DigitalOcean真有你的

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  Zeitgeisttt @rhwong last edited by

                  @rhwong GitHub Student免费一年哈哈,不用白不用,不过我意识到为什么服务器网络有问题了,毕竟是外网服务器,最近在开会

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact