Red-DiscordBot icon indicating copy to clipboard operation
Red-DiscordBot copied to clipboard

Option to Restart when "Connection to Lavalink has been lost"

Open jdkang opened this issue 3 years ago • 8 comments

What component of Red (cog, command, API) would you like to see improvements on?

Red

Describe the enhancement you're suggesting.

Intermittently one gets the message "Connection to Lavalink has been lost." which can be resolved by restarting the bot either through systemctl or !restart (assuming the systemd config file is setup correctly).

It would be nice to be able to configure the bot to just restart when this error is encountered as a form of self-healing.

Anything else?

No response

jdkang avatar Dec 14 '21 14:12 jdkang

This is an issue that has only affected our current release of the Lavalink.jar so far, and I expect it to be resolved on the next Red release that will include our next build.

aikaterna avatar Dec 14 '21 14:12 aikaterna

I've been experiencing this issue a lot myself, having to restart about once a week or so. Do you have a rough estimate of when the next release will be?

MC2018 avatar Dec 18 '21 16:12 MC2018

This is still happening in 3.4.16

❯ poetry show
aiohttp                   3.7.4.post0  Async http client/server framework (asyncio)
aiohttp-json-rpc          0.13.3       Implementation JSON-RPC 2.0 server and client us...
aiosqlite                 0.17.0       asyncio bridge to the standard sqlite3 module
appdirs                   1.4.4        A small Python module for determining appropriat...
apsw-wheels               3.36.0.post1 Another Python SQLite Wrapper
async-timeout             3.0.1        Timeout context manager for asyncio programs
attrs                     21.2.0       Classes Without Boilerplate
babel                     2.9.1        Internationalization utilities
cffi                      1.14.6       Foreign Function Interface for Python calling C ...
chardet                   4.0.0        Universal encoding detector for Python 2 and 3
click                     8.0.1        Composable command line interface toolkit
colorama                  0.4.4        Cross-platform colored terminal text.
commonmark                0.9.1        Python parser for the CommonMark Markdown spec
contextlib2               21.6.0       Backports and enhancements for the contextlib mo...
discord.py                1.7.3        A Python wrapper for the Discord API
distro                    1.6.0        Distro - an OS platform information API
fuzzywuzzy                0.18.0       Fuzzy string matching in python
idna                      3.2          Internationalized Domain Names in Applications (...
markdown                  3.3.4        Python implementation of Markdown.
multidict                 5.1.0        multidict implementation
psutil                    5.8.0        Cross-platform lib for process and system monito...
pycparser                 2.20         C parser in Python
pygments                  2.10.0       Pygments is a syntax highlighting package writte...
pynacl                    1.4.0        Python binding to the Networking and Cryptograph...
python-dateutil           2.8.2        Extensions to the standard Python datetime module
python-levenshtein-wheels 0.13.2       Python extension for computing string edit dista...
pytz                      2021.1       World timezone definitions, modern and historical
pyyaml                    5.4.1        YAML parser and emitter for Python
red-discordbot            3.4.16       A highly customisable Discord bot
red-lavalink              0.9.0        Lavalink client library for Red-DiscordBot
rich                      10.9.0       Render rich text, tables, progress bars, syntax ...
schema                    0.7.4        Simple data validation library
six                       1.16.0       Python 2 and 3 compatibility utilities
typing-extensions         3.10.0.2     Backported and Experimental Type Hints for Pytho...
uvloop                    0.16.0       Fast implementation of asyncio event loop on top...
yarl                      1.6.3        Yet another URL library
``

jdkang avatar Jan 08 '22 19:01 jdkang

Join the support server at discord.gg/red so I can chat with you sometime about your issue. The first thing I am going to ask you to do there is to upload your sping.log file so we can take a look.

aikaterna avatar Jan 08 '22 19:01 aikaterna

Still happens in Redbot 3.4.18

brunoamancio avatar Aug 23 '22 23:08 brunoamancio

Read the comment above yours, and join us in the support server with your logs.

aikaterna avatar Aug 23 '22 23:08 aikaterna

@aikaterna where is that file or how do I generate it?

brunoamancio avatar Aug 23 '22 23:08 brunoamancio

Please come to our support channel in our support server, a GH issue is not a good place to go back and forth in diagnosing the problem you are having.

aikaterna avatar Aug 23 '22 23:08 aikaterna