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

Migration to JDA:v5.0.0-beta #69

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Conversation

jocull
Copy link
Contributor

@jocull jocull commented Apr 7, 2023

As requested in #65

I followed the migration guide here https://jda.wiki/introduction/migration-v4-v5/ I hope I did this right 🙂

Not sure I did everything exactly right. A migration guide is covered
here, but I did most of this in a hurry.

https://jda.wiki/introduction/migration-v4-v5/
@jocull jocull changed the title Migration to JDA:v5.0.0-beta.6 Migration to JDA:v5.0.0-beta Aug 17, 2023
@jocull jocull mentioned this pull request Mar 7, 2024
@Frozen-byte
Copy link

Would you mind releasing a docker for this? I would love to test it then 👍🏻

@jocull
Copy link
Contributor Author

jocull commented Mar 19, 2024

Hey @Frozen-byte 👋 😄 Please try https://github.com/jocull/ukulele/pkgs/container/ukulele/192687440?tag=jda-5
I hope I did this right!

@Frozen-byte
Copy link

Hey @Frozen-byte 👋 😄 Please try https://github.com/jocull/ukulele/pkgs/container/ukulele/192687440?tag=jda-5 I hope I did this right!

Works perfectly, thank you! Will test it further this week and report back if any odd behavior was noticed.

…bd83

This fixes upstream issue with lavaplayer for error:
"Video returned by YouTube isn't what was requested"

See lavalink-devs/lavaplayer#93
@jocull
Copy link
Contributor Author

jocull commented Apr 4, 2024

The image for this was updated to address new issue #73 (comment)

See https://github.com/jocull/ukulele/pkgs/container/ukulele/199356264?tag=jda-5

@Frozen-byte
Copy link

Sadly today it got borked again, look like alphabet getting serious :/
image: ghcr.io/jocull/ukulele:jda-5

Message:

ukulele-1  | 2024-04-29 17:04:36.399 ERROR 1 --- [ader-2-thread-1] dev.arbjerg.ukulele.command.PlayCommand  : Handled exception occurred
ukulele-1  | 
ukulele-1  | com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Video returned by YouTube isn't what was requested
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.load(DefaultYoutubeTrackDetailsLoader.java:59) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeTrackDetailsLoader.loadDetails(DefaultYoutubeTrackDetailsLoader.java:36) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadTrackWithVideoId(YoutubeAudioSourceManager.java:230) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager$LoadingRoutes.track(YoutubeAudioSourceManager.java:254) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager$LoadingRoutes.track(YoutubeAudioSourceManager.java:250) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeLinkRouter.routeFromUrlWithVideoId(DefaultYoutubeLinkRouter.java:103) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeLinkRouter.routeFromMainDomain(DefaultYoutubeLinkRouter.java:68) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.DefaultYoutubeLinkRouter.route(DefaultYoutubeLinkRouter.java:46) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadItemOnce(YoutubeAudioSourceManager.java:218) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.loadItem(YoutubeAudioSourceManager.java:149) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItemOnce(DefaultAudioPlayerManager.java:412) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.checkSourcesForItem(DefaultAudioPlayerManager.java:394) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.loadItemSync(DefaultAudioPlayerManager.java:156) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$loadItem$0(DefaultAudioPlayerManager.java:175) ~[lavaplayer-19e815bd83.jar!/:na]
ukulele-1  |    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
ukulele-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
ukulele-1  |    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
ukulele-1  |    at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
ukulele-1  | Caused by: java.lang.IllegalStateException: 

@jocull
Copy link
Contributor Author

jocull commented Apr 30, 2024

Some of the included libraries in this project have shifted around. I do have an updated branch that was working, but have not used it in a few days. I can attempt to validate and push updates again.

@jocull
Copy link
Contributor Author

jocull commented Apr 30, 2024

Hi @Frozen-byte - I've updated the branch and Docker image. You can give the updates a try and see if they make an improvement for you 😃

@Frozen-byte
Copy link

I am sorry for the late testing, was on vacation.
Works like a charm, I had one minor caching issue and needed to docker down the container instead of just pulling the new image.

@huntastikus
Copy link

@jocull I am getting com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Sign in to confirm you’re not a bot

@jocull
Copy link
Contributor Author

jocull commented Aug 12, 2024

@jocull I am getting com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Sign in to confirm you’re not a bot

There are some upstream PRs I’m trying to monitor for this, but unsure of a solution currently. Thanks for the report, I will update when there’s something more clear 🙏

@Frozen-byte
Copy link

@jocull I am getting com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Sign in to confirm you’re not a bot

There are some upstream PRs I’m trying to monitor for this, but unsure of a solution currently. Thanks for the report, I will update when there’s something more clear 🙏

is there something we can help with? I have this problem, too.

@jocull
Copy link
Contributor Author

jocull commented Aug 14, 2024

@huntastikus @Frozen-byte the branch and docker image are updated with a newer version. It seems to work for me, but don't know if it will solve your specific issue. Let me know your results please 😄

If this doesn't work, then I believe this upstream work is likely relevant: lavalink-devs/youtube-source#33

@kiloforce
Copy link

image: ghcr.io/jocull/ukulele:jda-5

Back work working again, thanks @jocull !

@kiloforce
Copy link

@jocull looks like you have had this PR up since April with no movement. It looks like none of the other PRs have had any movement since early 2022? Have you considered maybe upgrading your fork to a more full featured version? Maybe one with an updated README / Wiki with instructions for bringing up Ukulele with your Docker?

@huntastikus
Copy link

I am not sure how to apply the upstream work to this package. @kiloforce how did you get it to work?

@kiloforce
Copy link

kiloforce commented Aug 18, 2024

I am not sure how to apply the upstream work to this package. @kiloforce how did you get it to work?

# original configuration
git clone https://github.com/freyacodes/ukulele.git
cd ukulele
git checkout master
git pull
cp ukulele.example.yml ukulele.yml
# configure ukulele.yml
mkdir db && chown -R 999 db/

---
# edit docker-compose.yml and change:
# image: ghcr.io/freyacodes/ukulele:master
image: ghcr.io/jocull/ukulele:jda-5
---

# routinely update jda-5 docker image:
docker rm -f ukulele_ukulele_1
docker pull ghcr.io/jocull/ukulele:jda-5
docker-compose up -d

# follow the logs to make sure it is happy:
docker logs -f ukulele_ukulele_1

@Frozen-byte
Copy link

@huntastikus @Frozen-byte the branch and docker image are updated with a newer version. It seems to work for me, but don't know if it will solve your specific issue. Let me know your results please 😄

If this doesn't work, then I believe this upstream work is likely relevant: lavalink-devs/youtube-source#33

Since my server is in the banned IP-Range of google, it won't work until lavalink-devs/youtube-source#33 hits this repository I think. Lavalink should provide this fix in the next version, and I will happily test it when it arrives ukulele, too!

@jocull
Copy link
Contributor Author

jocull commented Oct 17, 2024

An update is pushed w/ new image to solve some rejections for what seems to be based on old Android client.

@Frozen-byte I think I understand what is needed to fix your issue now also but haven't yet made time to fix the issue. I believe it requires sign-in credentials and some manual auth steps.

@jocull
Copy link
Contributor Author

jocull commented Nov 23, 2024

I'll post an important update in #77 with where I feel the situation is for this. It's not as straightforward to fix, and there is little consensus upstream on what works and doesn't.

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

Successfully merging this pull request may close these issues.

4 participants