Lavalink: Node sometimes randomly stops playing music

Description

Sometimes, when we’re playing music, in the middle of a song, Lavalink stops sending Audio to Discord. The green indicator is gone, but the position still gets updated. This could happen after an hour of playing music, maybe 2, maybe after 10 minutes.

Moving the bot to another channel and moving it back fixes the issue, so it’s probably caused by the WS connection to discord?

Version info

I’m using Lavalink-Client

Output of java -version:

java 13.0.2 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

There are no logs whatsoever in either Lavalink itself or in the client. The last line is still the play op

Version:        d88d1c61aae2d069446ee46f32fa457b9f1a02a8-SNAPSHOT
Build:          1334
Build time:     14.01.2022 20:52:27 UTC
Branch          dev
Commit:         d88d1c6
Commit time:    14.01.2022 20:49:14 UTC
JVM:            13.0.2
Lavaplayer      1.3.97-original

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 32 (16 by maintainers)

Most upvoted comments

as I remember, the reason is “Abnormal closure” and the error code is 1006.

Ah yes, my bad

Another sidenote: From what i can tell, this started happening after we switched to the dev branch of Lavalink, i don’t think this happened before (We switched to it when Plugin support got added)