MusicBot icon indicating copy to clipboard operation
MusicBot copied to clipboard

Bot won't work after internet disconnect and reconnect

Open RyanL-29 opened this issue 4 years ago • 2 comments

Please tick all applicable boxes.

  • [x] I am using Python 3.5.3 or higher (run python --version on the command line)
  • [x] I have followed the official guides to install the bot for my system
  • [x] I have updated my dependencies to the latest version using the appropriate update script

Which version are you using?

  • [ ] The latest master version (release-260419)
  • [x] The latest review version

What type of issue are you creating?

  • [x] Bug
  • [ ] Feature request
  • [ ] Question

Description of issue

Bot will crash when the host computer disconnect from the internet. After the host reconnect the bot will froze not playing anything

Steps to reproduce

  1. Disconnect the server from internet
  2. Bot reconnect
  3. Not playing anything and freeze

RyanL-29 avatar Apr 19 '20 06:04 RyanL-29

I'm not sure if this is related since I don't think my connection is dropping out (at least not for other applications) but the bot keeps failing to reconnect for me as well.

[5579.8517217636108398] 2020-05-19 09:05:00,275 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 3004 in on_guild_available: Guild "NEGU" has become available. [5583.9218866825103760] 2020-05-19 09:05:04,345 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 3004 in on_guild_available: Guild "JROCK NEWS" has become available. [5583.9218866825103760] 2020-05-19 09:05:04,345 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 3004 in on_guild_available: Guild "Harunatsu Fansubs" has become available. [5583.9218866825103760] 2020-05-19 09:05:04,345 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 951 in on_ready: Connection established, ready to go. [5583.9218866825103760] 2020-05-19 09:05:04,345 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 956 in on_ready: Received additional READY event, may have failed to resume [18583.2710642814636230] 2020-05-19 12:41:43,694 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 3004 in on_guild_available: Guild "NEGU" has become available. [18587.3817124366760254] 2020-05-19 12:41:47,805 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 3004 in on_guild_available: Guild "JROCK NEWS" has become available. [18587.3828382492065430] 2020-05-19 12:41:47,806 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 3004 in on_guild_available: Guild "Harunatsu Fansubs" has become available. [18587.3828382492065430] 2020-05-19 12:41:47,806 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 951 in on_ready: Connection established, ready to go. [18587.3828382492065430] 2020-05-19 12:41:47,806 - DEBUG - musicbot.bot | In bot.py::MainThread(9672), line 956 in on_ready: Received additional READY event, may have failed to resume [19315.7300078868865967] 2020-05-19 12:53:56,153 - INFO - musicbot.bot | In bot.py::MainThread(9672), line 942 in on_resumed: Reconnected to discord. [28811.8557207584381104] 2020-05-19 15:32:12,279 - INFO - musicbot.bot | In bot.py::MainThread(9672), line 942 in on_resumed: Reconnected to discord.

There are no signs of connection instability other than this bot failing to reconnect. I am fairly sure this is an issue with the bot, not my connection. Either way, if all my other applications, including discord and media server on the same computer can function seamlessly then even if there was some momentary issue, it is just the bot's unreliability. I wish I had the coding skills for a fix but I do not. :(

wellivea1 avatar May 21 '20 15:05 wellivea1

@wellivea1 And @RyanL-29 do you mind trying out the latest review branch and getting into the discord development portal and enabled both intents? Let me know if you're still experiencing this issue I'm having trouble reproducing

AutumnClove avatar Sep 01 '21 15:09 AutumnClove

Closings since pretty much the same as #2047

BabyBoySnow avatar Sep 10 '23 08:09 BabyBoySnow