New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord Bot loses connection to server after a period of time and has to be restarted #4
Comments
Looks like a package issue with mysql2, could you try using mysql? Do the following to try it: |
Updated as recommended, I will follow up once I have been able to test if it disconnects automatically. |
Any update on this? |
The connection definitely seems to be more stable, however I am still seeing some disconnects. I haven't had the opportunity to sit down and review the error messages yet, I will comment again once I'm at home and able to review the errors. |
This is the error the bot is throwing now. |
I'm uncertain if this is an issue with the bot itself or my setup.
After the bot has been started, all the commands are fully functional. However, after a period of inactivity (seems to be a few hours), the bot seems to lose connection to the server. The loss of connection is not noticed until another command is sent to the bot, at which time the bot will respond with the following error:
There was an error trying to execute that command!
This is the output printed to the console:
The azerothcore server itself is a docker installation. My config.js is as follows:
One other note is that the soapAuth user is the GM account I use when I need to perform GM functions. Would logging into that account cause the bot to disconnect, and is it recommended for the bot to have a dedicated GM account through which to authenticate with the server?
The text was updated successfully, but these errors were encountered: