lavalink-devs / youtube-source

A rewritten YouTube source manager for Lavaplayer.
MIT License
115 stars 16 forks source link

Bot enters the voice channel, fetches the song but doesn't play it and exits #28

Closed Gabry2790 closed 3 weeks ago

Gabry2790 commented 1 month ago

Basic Troubleshooting

Version of youtube-source

1.3.0

The search query, URL, playlist or video ID that triggered the issue

Every search query or URL

Code Example

N/A

Exception and Stacktrace

These are the entire logs of Lavalink with the plugin spring.log

devoxin commented 1 month ago

2024-07-07T13:41:00.825Z INFO 28 --- [main] d.l.youtube.plugin.YoutubePluginLoader : YouTube source initialised with clients: WEB_REMIX, WEB, ANDROID 2024-07-07T13:41:00.825Z DEBUG 28 --- [main] d.l.youtube.plugin.YoutubePluginLoader : No ratelimit config found, skipping setup of route planner

You still have not followed what I have stated in https://github.com/lavalink-devs/Lavalink/issues/1055#issuecomment-2211779849

Enable IP rotation. Enable more clients.

Gabry2790 commented 1 month ago

I tried, I activated all the clients and the IP rotation, but wasn't working so I revert changes

devoxin commented 1 month ago

"Wasn't working" is the vaguest information you could provide here. Was the error message the same? Which IPv6 provider did you use? What was the block size? Have you tried other hosts/ASNs?

Gabry2790 commented 1 month ago
  1. Was the error message the same? Everytime was video unavailable

  2. Which IPv6 provider did you use? I used IPv4 with "LoadBalance" and "RotateOnBan" strategy

  3. What was the block size? The block size was 32bits

  4. Have you tried other hosts/ASNs? No, I didn't even think about it

devoxin commented 1 month ago

I used IPv4 with "LoadBalance" and "RotateOnBan" strategy

IPv4 is heavily discouraged. There is a reason we encourage usage of IPv6 over v4. With v6, you get a lot more addresses. a /48 is generally recommended as the minimum because there have been scenarios in the past where an entire /64 gets banned.

You can't combine strategies so I'm not sure what you mean by usage of both. RotateOnBan has been subject to internal discussion and this strategy will most likely be deprecated as it's not ideal to get an IP banned in the first place, additionally, the checks for a ban aren't really applicable anymore as there are different ways YT issues bans now. I would personally recommend RotatingNanoSwitch.

size was 32bits

For an IPv4 this is literally one address so that is not rotation. You need multiple to successfully rotate.

Set up IPv6 Rotation, ideally with a /48.

Gabry2790 commented 1 month ago

The problem Is that I am using a free host that uses only IPv4

devoxin commented 1 month ago

There are plenty of services out there that will provide a tunnel to allow you to use IPv6. Read the Lavalink docs for information on this.

Gabry2790 commented 1 month ago

Ok, thank you and sorry for annoying you so much 😅

MartinItsLinda commented 1 month ago

Also, don't host something you care about on a free provider, even if you buy a €3 a month vps you'll be better off than what any free host gives you.

Gabry2790 commented 1 month ago

Good to know, but I can't buy any cheap vps because I am a minor and my parents wouldn't buy it for me

devoxin commented 1 month ago

FWIW OVH has a dirt cheap VPS for £1/mo https://www.ovhcloud.com/en-gb/vps/

Or see if you can host with a friend or something. Perhaps further discussion would be better suited for the Discord server regardless

Gabry2790 commented 1 month ago

Thanks for all the help, have a nice day!

Joniii11 commented 1 month ago

FWIW OVH has a dirt cheap VPS for £1/mo https://www.ovhcloud.com/en-gb/vps/

Or see if you can host with a friend or something. Perhaps further discussion would be better suited for the Discord server regardless

Yes that's true, but they offer just a /128 IPv6 and tunnelbroker blocked (restricted) ovh's ips