Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when playing any song #232

Closed
nexitem opened this issue Jun 1, 2019 · 19 comments
Closed

Error when playing any song #232

nexitem opened this issue Jun 1, 2019 · 19 comments

Comments

@nexitem
Copy link

nexitem commented Jun 1, 2019

java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

java -Dnogui=true -jar JMusicBot-0.2.2.jar
[15:45:39] [WARN] [Settings]: Failed to load server settings (this is normal if no settings have been set yet): java.nio.file.NoSuchFileException: serversettings.json
[15:45:39] [INFO] [Startup]: Loaded config from /home/nexitem/server/discordmusic/config.txt
[15:45:39] [INFO] [JDA]: Login Successful!
[15:45:40] [INFO] [WebSocketClient]: Connected to WebSocket
[15:45:40] [INFO] [JDA]: Finished Loading!
[15:46:07] [ERROR] [LocalAudioTrackExecutor]: Error in playback of kJQP7kiw5Fk
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:43)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:102)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:349)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Not success status code: 403
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:86)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:115)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:104)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:149)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:165)
at java.io.DataInputStream.readByte(DataInputStream.java:265)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:46)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:79)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:51)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:34)
at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:27)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:75)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:67)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:90)
... 4 common frames omitted

Not sure what to do.

@nexitem
Copy link
Author

nexitem commented Jun 1, 2019

I think it's caused by discord blocking the Hetzner IP's

@Sanduhr32
Copy link
Contributor

its related to lavaplayer not being able to connect to youtube

@jagrosh
Copy link
Owner

jagrosh commented Jun 3, 2019

Can you see if this is fixed as of version 0.2.3?

@LastRoze
Copy link

LastRoze commented Jun 3, 2019

Can you see if this is fixed as of version 0.2.3?

Nope, not yet.

Hope it will get fixed soon.

@jagrosh
Copy link
Owner

jagrosh commented Jun 3, 2019

@LastRoze are you having the same issue, and can you share your 0.2.3 logs?

@jagrosh
Copy link
Owner

jagrosh commented Jun 3, 2019

I think it's caused by discord blocking the Hetzner IP's

Also, while this particular issue is not related to this, it is correct that Discord blocks all voice traffic from Hetzner, so hosting this or any music bot on Hetzner is not feasible.

@LastRoze
Copy link

LastRoze commented Jun 3, 2019

https://pastebin.com/RjQNi6Da

Too long i post on Pastebin instead

@Sanduhr32
Copy link
Contributor

Like I said looks like lavaplayer isn't able to connect to the audio stream of the video (is it blocked in your country?).

@LastRoze
Copy link

LastRoze commented Jun 3, 2019

Yes i try with video that not get blocked but still gives error (the same error)

@Teroaz
Copy link

Teroaz commented Jun 9, 2019

Any news? I also have the same problem when I play music from a certified youtube channel

@greenmaskenergy
Copy link

got kinda the same problem got version 0.2.2 worked then i updated to 0.2.3 and bot broke all commands work it just dont outputs music and at the moment i try to load any music or playlist the bot window out puts allot of errors like this. https://pastebin.com/QgtYQTMU

@jagrosh
Copy link
Owner

jagrosh commented Jun 14, 2019

@greenmaskenergy That appears to be a different (albeit still lavaplayer-related) issue, try installing 64bit java. One of the recent lavaplayer updates removed 32 bit support from what I can tell.

@greenmaskenergy
Copy link

@jagrosh Did it is all fixed Thanks for the fast and help full support ;)

@alfonsojon
Copy link

Oh cool it's not just me. I thought it was a bug with my installation haha

@alfonsojon
Copy link

@jagrosh It only affects the Linux jar. When I use the universal jar it works fine.

@jagrosh
Copy link
Owner

jagrosh commented Jul 8, 2019

@alfonsojon What operating system and architecture are you running the bot on?

@Sanduhr32
Copy link
Contributor

Might this be related to PR #256?

@jagrosh
Copy link
Owner

jagrosh commented Dec 16, 2019

Closing as this issue is quite old at this point, and is likely resolved, no longer valid, or is related to #305

@jagrosh jagrosh closed this as completed Dec 16, 2019
@7RST1
Copy link

7RST1 commented Nov 25, 2020

I'm think I'm still having this issue as I seem to get the same error codes as the ones already listed in this issue.
https://paste.ubuntu.com/p/3SFYXnJ4JD/

EDIT:
Looks to be a derivative of this?; sedmelluq/lavaplayer#188
EDIT2:
I tried compiling with latest lavaplayer (1.3.61) which claims to have fixed similar issues, but still having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants