docker-red-discordbot icon indicating copy to clipboard operation
docker-red-discordbot copied to clipboard

External LavaLink instance because of a bug

Open tctfox opened this issue 2 years ago • 1 comments

The bot works fine as it is. But a general problem with normal redbot and yours seem to be that after a couple of days the error "Connection to Lavalink has been lost." appears and only a bot restart can fix it. Another fix is running lavalink externally and setting redbot up to work like that. This doesn't work wtih your docker image tho, I am sure connectivity problem outside of the docker. Is there any way to make this work? Help would be appreciated

tctfox avatar Jun 07 '22 20:06 tctfox

If you're running the lavalink server externally, you would have to run the container in host networking mode so that it could see the server on your localhost. If lavalink is in a different container, you would have to make sure both containers are in the same docker network.

If running it internally doesn't work on regular non-docker install, then that probably isn't an issue with this image.

PhasecoreX avatar Jun 07 '22 23:06 PhasecoreX

@tctfox have you had any luck with getting this to work? I want to try an external link as pretty much every day I have the "Connection to Lavalink has been lost" error that can only be fixed by a bot restart. I will probably try to get this working in the next day or two but wanted to see if you had any thoughts on the process

Edit: What external lavalink image did you use?

joshuakohut77 avatar Aug 13 '22 06:08 joshuakohut77

I wanted to follow up and say I was able to get this docker image working with an external lavalink docker image. I both containers in the same docker network and changed the lavalink wsport away from the default so there was no confusion. After using .llsetup command and connecting it to the external service it worked great. Time will tell if I have the same "Connection to Lavalink has been lost" error.

joshuakohut77 avatar Aug 14 '22 03:08 joshuakohut77

Nice! Good to know that external Lavalink works fine with the container.

PhasecoreX avatar Aug 15 '22 12:08 PhasecoreX

I don't want to reopen this but just wanted to let @tctfox and anyone else to know that I've had an external Lavalink setup and it's ran for 3 days now without getting the "Connection to Lavalink has been lost." error which I used to get every night. I agree there's something bugged wit the internal service. This is a work around but solved the issue of needing to restart the container every day.

joshuakohut77 avatar Aug 16 '22 03:08 joshuakohut77