Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.69k stars 2.3k forks source link

[Audio] Lavalink.jar Status #4505

Open aikaterna opened 3 years ago

aikaterna commented 3 years ago

If you are experiencing any problems listed in this issue, they are known and will be addressed as soon as fixes can be identified, written, and published/pushed to a new version of Red. This issue will be edited with new information as it's available to us.

Release from Apr 2024, version 3.7.11+red.3

Some users may get a 403 Forbidden message. You can try these instructions in the meantime:

Use [p]llset external
Follow its instructions
Shut down your bot
Navigate to your Audio data path (you would be able to find this with [p]datapath when your bot is on - it's <datapath>/cogs/Audio)
Delete the application.yml file in that directory
Download or wget this application.yml file: https://gist.githubusercontent.com/aikaterna/4227dbf1c45640c7ee57cbe36e85ea53/raw/1b1c0f79350e69bbb1cbfd9c1301cc2ef930fc2d/application.yml
Use screen if you have it on your device to create a new screen session (screen -S lavalink), or run the Lavalink process in an alternate way
Run java -jar Lavalink.jar in that screen or other process
Push ctrl + a  + d to return to your other command prompt window
Start your bot
Try again, and provide the spring.log again if it doesn't work. You will need to manually retrieve this file from the Audio data directory because the bot command to do so won't do it now that we're trying this.

Some users may get messages saying "Sign in to confirm you're not a bot". This seems to be related to where the bot is being hosted - try another vps service or host for the bot or Lavalink in the meantime.


Release from Apr 2024, version 3.7.11+red.2

Some tracks are getting stuck at 0:00.

Trying to play some private videos will result in a more generic traceback that includes the JSON response from the site instead of a proper FriendlyException string.


Release from Mar 2024, version 3.7.11

Users may encounter an error message saying "Video returned by YouTube isn't what was requested". You can try a new IP address for your host if you have that available to you, otherwise there is not a fix yet. Music on other services can still be played with no issues.


Release from Aug 2023, version 3.7.8

400 errors are becoming more prominent while trying to play yt tracks. The developers are working on the issue.


Release from Apr 2023, version 3.7.5

There are currently playback issues with some yt tracks that will be fixed in the next Red release.

Centos 7 users will receive a traceback on Lavalink.jar start relating to the GLIBC version being too low. The Lavalink.jar will work as expected, but JDA-NAS will be disabled. Most Red users will never need to think about this or acknowledge it for any reason.

It seems folks are starting to receive intermittent 403 errors while playing some tracks. Research into this issue is in progress.


Release from Aug-11-2022, build 1350

This release is still pending. Youtube shorts are unplayable. Age restricted tracks are currently working: your mileage may vary.


Release from May-30-2022, build 1347

Youtube songs return no matches found.


Release from Dec-14-2021, build 1275

Age restricted tracks are currently broken again, as of Dec 18, 2021. 360° Videos from YouTube cause a decoding error. Tiktok videos are unplayable and cause a decoding error.


Release from Sept-22-2021, build 1239

360° Videos from YouTube cause a decoding error.


Release from Jun-30-2021, build 1236

Age restricted tracks are currently broken again, as of Jul 24, 2021.


Release from May-28-2021, build 1233

Age restricted tracks are currently broken again, as of Jun 18, 2021.

Soundcloud playback may result in a "Invalid status code for soundcloud stream: 401" occasionally.

The intermittent 403 Forbidden is still not resolved in the parent project. Some users may get intermittent blocks of 403 Forbidden errors. The way to "fix" this temporarily, currently, is to restart your bot - or if you are running an external Lavalink server, to restart that process as it's based in the audio backend itself.


Release from Apr-02-2021, build 1212

The intermittent 403 Forbidden is still not resolved in the parent project. Some users may get intermittent blocks of 403 Forbidden errors. The way to "fix" this temporarily, currently, is to restart your bot - or if you are running an external Lavalink server, to restart that process as it's based in the audio backend itself. There is not a fix for this yet.

Release from Feb-15-2021, build 1199

Some users may get intermittent blocks of 403 Forbidden errors. The way to "fix" this temporarily, currently, is to restart your bot - or if you are running an external Lavalink server, to restart that process as it's based in the audio backend itself. There is not a fix for this yet.

Some yt playlist links may return a 404. One example of this is https://youtube.com/playlist?list=PL6ONAylLe5AZNcPTPlJvyyk3q9m-gpK0E Playlists under 100 songs are not affected. This will be resolved in a future update.

Some songs may return a large chunk of HTML in the logs with the error WARN 14150 --- [lava-daemon-pool-playback-1-thread-1] c.s.d.lavaplayer.tools.ExceptionTools : no PLAYER_JS_URL in youtube root EID: present. These songs are unplayable. There is not a fix for this yet. The relevant issue can be found at: https://github.com/sedmelluq/lavaplayer/issues/597

Some playlists cannot be loaded. The logs will say ERROR 1808 --- [lava-daemon-pool-info-loader-2-thread-2] lavalink.server.player.AudioLoader : Load failed com.sedmelluq.discord.lavaplayer.tools.FriendlyException: null There is an untested, unmerged fix for this currently. The relevant issue can be found at: https://github.com/sedmelluq/lavaplayer/issues/602

Release from Dec-21-2020, build 1170

Occasionally Lavalink may encounter a block of 403 responses, stopping the player. This is in process of being diagnosed and there isn't a fix yet. Try playing music again after waiting 5-10 minutes.

Release from Dec-21-2020, build 1170

No known issues yet.

Release from Nov-05-2020, build 1132

Release from Oct-28-2020, build 1128

Release from Oct-17-2020, build 1115

Drapersniper commented 3 years ago

Edit by aika: Superceded, comment here is regarding the 1115 build.

2020-10-26 13:10:41.074  INFO 30584 --- [XNIO-1 I/O-8] lavalink.server.io.SocketServer          : {"op": "play", "guildId": "133049272517001216", "track": "QAAAgAIAHFRva3lvIEdob3VsICJVTlJBVkVMIiBMeXJpY3MACldhdER1WXVXYW4AAAAAAAOlmAALVzJfT0d5UVBxQnMAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1XMl9PR3lRUHFCcwAHeW91dHViZQAAAAAAAAAA"}
2020-10-26 13:10:41.545 ERROR 30584 --- [lava-daemon-pool-playback-1-thread-1] c.s.d.l.t.p.LocalAudioTrackExecutor      : Error in playback of W2_OGyQPqBs

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
    at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:43) ~[lavaplayer-1.3.58.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:117) ~[lavaplayer-1.3.58.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:349) ~[lavaplayer-1.3.58.jar!/:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
    at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Caused by: java.lang.NullPointerException: null
    at java.base/java.util.concurrent.ConcurrentHashMap.get(Unknown Source) ~[na:na]
    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeSignatureCipherManager.getCipherKeyFromScript(YoutubeSignatureCipherManager.java:136) ~[lavaplayer-1.3.58.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeSignatureCipherManager.resolveFormatUrl(YoutubeSignatureCipherManager.java:103) ~[lavaplayer-1.3.58.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.loadBestFormatWithUrl(YoutubeAudioTrack.java:87) ~[lavaplayer-1.3.58.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:42) ~[lavaplayer-1.3.58.jar!/:na]
    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:105) ~[lavaplayer-1.3.58.jar!/:na]
    ... 4 common frames omitted

EDIT: Should be resolved now on build 1128

Drapersniper commented 3 years ago

Errors on

        Version:        3.3.1.4
        Build:          1128
        Build time:     28.10.2020 16:23:24 UTC
        Branch          JackTheEternalVirgin
        Commit:         6f0a682
        Commit time:    29.09.2020 10:25:53 UTC
        JVM:            11.0.6
        Lavaplayer      1.3.53
2020-10-29 12:26:50.941  INFO 22864 --- [   XNIO-1 I/O-2] lavalink.server.io.SocketServer          : {"op": "play", "guildId": "133049272517001216", "track": "QAABDQIAGOS6jOS6uuOBruODouODjuOCsOODqeODoAAJ576O6aKo6JeNf/////////8AY2h0dHBzOi8vY2RuLmRpc2NvcmRhcHAuY29tL2F0dGFjaG1lbnRzLzE2OTg2ODg0Njc1OTU0Mjc4NS81ODA4Mzk0NTgzODM5ODY3MTgvRnV0YXJpX25vX01vbm9ncmFtLm9nZwEBAGNodHRwczovL2Nkbi5kaXNjb3JkYXBwLmNvbS9hdHRhY2htZW50cy8xNjk4Njg4NDY3NTk1NDI3ODUvNTgwODM5NDU4MzgzOTg2NzE4L0Z1dGFyaV9ub19Nb25vZ3JhbS5vZ2cABGh0dHAAA29nZwAAAAAAAAAA", "noReplace": false, "startTime": "0"}
2020-10-29 12:30:20.073 ERROR 22864 --- [back-1-thread-5] c.s.d.l.t.p.LocalAudioTrackExecutor      : Error in playback of https://cdn.discordapp.com/attachments/169868846759542785/580839458383986718/Futari_no_Monogram.ogg

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something went wrong when decoding the track.
        at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:294) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.container.ogg.OggAudioTrack.process(OggAudioTrack.java:39) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.source.http.HttpAudioTrack.process(HttpAudioTrack.java:54) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:105) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:349) ~[lavaplayer-1.3.53.jar!/:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
        at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Caused by: java.lang.IllegalStateException: Cannot load the next track while the previous one has not been consumed.
        at com.sedmelluq.discord.lavaplayer.container.ogg.OggPacketInputStream.startNewTrack(OggPacketInputStream.java:56) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.container.ogg.OggTrackLoader.detectCodec(OggTrackLoader.java:41) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.container.ogg.OggTrackLoader.loadTrackBlueprint(OggTrackLoader.java:31) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.container.ogg.OggAudioTrack.processTrackLoop(OggAudioTrack.java:61) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.container.ogg.OggAudioTrack.lambda$process$0(OggAudioTrack.java:41) ~[lavaplayer-1.3.53.jar!/:na]
        at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:276) ~[lavaplayer-1.3.53.jar!/:na]
        ... 8 common frames omitted