question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node sometimes randomly stops playing music

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:32 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
unwell35commented, Feb 10, 2022

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

1reaction
freyacodescommented, Feb 10, 2022

Ah yes, my bad

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Music randomly stops/pause · Issue #875 - GitHub
The music randomly stops after 10 to 50 seconds, the bot is still connected, the song is still in the queue but the...
Read more >
Discordjs music bot - After some time-- bot abruptly stops ...
It is working fine most of the time... but sometimes there's a random moment in which the player stops, then moves to the...
Read more >
Bot randomly stops playing music. [ Discord.JS | TypeScript ]
Bot sometimes just stops playing music. It's like the socket disappeared or something. In the time of failure all the music related commands ......
Read more >
Playback stops when multitasking on power mode
I just purchased my powernode and it seems to be working fine. All files are played from a NAS share where I was...
Read more >
Roon randomly stops playing, MacOS app(s) hogging power ...
Even on a separate Wifi-network just for the Node… it kept glitching (audio). So… now all hooked up via Ethernet Cables. No more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found