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

Closed
opened 2021-12-14 15:45:32 +01:00 by jdkang · 8 comments
jdkang commented 2021-12-14 15:45:32 +01:00 (Migrated from github.com)

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

### 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_
aikaterna commented 2021-12-14 15:48:58 +01:00 (Migrated from github.com)

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.

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.
MC2018 commented 2021-12-18 17:31:40 +01:00 (Migrated from github.com)

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?

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?
jdkang commented 2022-01-08 20:14:24 +01:00 (Migrated from github.com)

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
``
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 ``
aikaterna commented 2022-01-08 20:25:08 +01:00 (Migrated from github.com)

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.

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.
brunoamancio commented 2022-08-24 01:06:31 +02:00 (Migrated from github.com)

Still happens in Redbot 3.4.18

Still happens in Redbot 3.4.18
aikaterna commented 2022-08-24 01:08:34 +02:00 (Migrated from github.com)

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

Read the comment above yours, and join us in the support server with your logs.
brunoamancio commented 2022-08-24 01:26:44 +02:00 (Migrated from github.com)

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

@aikaterna where is that file or how do I generate it?
aikaterna commented 2022-08-24 01:37:30 +02:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#5468
No description provided.