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

Can't download stuff from YouTube, cobalt says it's disabled or returns 0 byte files #992

Closed
bridgetpenpen opened this issue Dec 12, 2024 · 31 comments
Labels
main instance issue issue is only present on the main cobalt instance

Comments

@bridgetpenpen
Copy link

bug description

every time i download any video the bytes are 0 off youtube

reproduction steps

1 go to youtube
2 copy and paste link into cobalt
3 hit the arrows to download
4 see that the files have 0 bytes on them

screenshots

Screenshot (3)

links

No response

platform information

window 10 on chrome/google on ios

additional context

No response

@bridgetpenpen bridgetpenpen added the main instance issue issue is only present on the main cobalt instance label Dec 12, 2024
@hamidb80

This comment was marked as off-topic.

@mts1234a

This comment was marked as off-topic.

@Aaronlalala

This comment was marked as off-topic.

@wukko wukko changed the title cobalt downloading empty files Can't download stuff from YouTube, cobalt returns 0 byte files Dec 12, 2024
@wukko
Copy link
Member

wukko commented Dec 12, 2024

we've been aware of the issue since the very beginning (approx 4 hours ago). it's not caused by us and is not an issue with cobalt's code, youtube blocked all of our ip ranges this morning.

we're currently doing our best trying to come up with a solution to restore downloads from youtube asap. we're sorry for any inconveniences caused in the meantime :(

as a temporary measure, you can try self-hosting a cobalt processing instance on your computer or home server: https://github.com/imputnet/cobalt/blob/main/docs/run-an-instance.md

i've temporarily disabled youtube support on the main instance, so that you don't get 0 byte files.

@wukko wukko pinned this issue Dec 12, 2024
@wukko wukko changed the title Can't download stuff from YouTube, cobalt returns 0 byte files Can't download stuff from YouTube, cobalt says it's disabled or returns 0 byte files Dec 12, 2024
@ogohogo
Copy link

ogohogo commented Dec 12, 2024

beside ip blocking they send abuse messages, be careful :)

image

@wukko
Copy link
Member

wukko commented Dec 12, 2024

beside ip blocking they send abuse messages, be careful

i'm soooo scared of a baseless threat by google
(thank you for the warning though)

@cheekyrandom
Copy link

think i possibly contributed to this issue LOL

@rnxm
Copy link

rnxm commented Dec 12, 2024

fuck google

@Sainan
Copy link

Sainan commented Dec 12, 2024

Might it be possible to setup Mullvad on the processing servers to bypass the IP blocks? I know a VPN is a bit tricky on servers due to incoming traffic, but not impossible.

@VerityIncorporated
Copy link

@Sainan I actually have Gluetun setup in a docker container which uses Mullvad, I then connect it to the Cobalt API instance that is also running in a docker container. This worked for me but not for very long, the IP's eventually get blocked (pretty quickily too).

@Sainan
Copy link

Sainan commented Dec 12, 2024

Set it up to automatically switch Mullvad servers every hour. 🙈

@VerityIncorporated
Copy link

Set it up to automatically switch Mullvad servers every hour. 🙈

I assume you're joking, but if not, rotating proxies might actually be a better solution than a VPN.

@Sainan
Copy link

Sainan commented Dec 12, 2024

I'm not joking. It's what we did for checking a certain anti-cheat provider for information about bans. They did not like that we were providing transparency into their business. After deploying this Mullvad approach, they seemed to stop bothering.

@VerityIncorporated
Copy link

Wouldn't you eventually run out of servers to use on Mullvad? Plus, YouTube could end up blocking their ASN altogether. A rotating proxy might be a more sustainable solution for something like this.

@Sainan
Copy link

Sainan commented Dec 12, 2024

The idea is that legit users still use Mullvad, so blocking them outright might be less ideal.

@VerityIncorporated
Copy link

I think you're right in that they wouldn't block them outright. Still a possiblity since it is Google we're talking about. Regardless I think running a VPN over the entire instance would be slow, potentially cause issues with other services and be somewhat useless since the time it takes YouTube to block the IP is inconsistent, so changing server every 1 hour wouldn't be a solution.

@tayfrm99
Copy link

The idea is that legit users still use Mullvad, so blocking them outright might be less ideal.

true, they also move their servers around quite often

@WorriedArrow
Copy link

Seems to work now..?

@vergiliusmaximus
Copy link

Working now 👍 thanks a lot. Imma donate when I can

@vergiliusmaximus
Copy link

Seems to work now..?

yup working now

@wukko
Copy link
Member

wukko commented Dec 14, 2024

as others have mentioned, it's been fixed for a few days (since evening of 12th), but we made sure to get backups so this doesn't happen again in the future. can never be sure with youtube though.

@wukko wukko closed this as completed Dec 14, 2024
@Axis4s
Copy link

Axis4s commented Dec 14, 2024

6:16pm, dec14, its broken again 😔

@SleepyPeko
Copy link

still getting 0b over here. ig youtube links are still broken

@SleepyPeko
Copy link

still getting 0b over here. ig youtube links are still broken

anyways, ight imma go selfhost cobalt

@ieatwaffle
Copy link

Hello! i created an account just to say that issue is still persistent with YouTube links. I was able to download SoundCloud links but YouTube doesn't seem to be working at the moment again.

@wukko
Copy link
Member

wukko commented Dec 15, 2024

fixed again, it happened deep at night, almost intentionally

@marco-lee-datax
Copy link

Wouldn't you eventually run out of servers to use on Mullvad? Plus, YouTube could end up blocking their ASN altogether. A rotating proxy might be a more sustainable solution for something like this.

@wukko Did you deploy this solution? Can you please share with us how you fixed it? Thank you so much!

@Chonkblonk
Copy link

I appear to be experiencing an issue like this, I am getting a 0 byte file, but most peculiarly, what I am being provided is a 0 byte .txt file, for whatever reason.

Image

Now, I want to be clear also that I have not somehow managed to change anything on my end to make my computer think that .mp3 files are to be opened with Notepad.exe, because that is not what is happening on my end. It seems that either Cobalt or Firefox interprets the file in question as being a .txt file.

@wukko
Copy link
Member

wukko commented Jan 30, 2025

I appear to be experiencing an issue like this

@Chonkblonk can you try again?

@Cattrag
Copy link

Cattrag commented Jan 31, 2025

Image
now im getting it too...

@Chonkblonk
Copy link

The funniest thing, is that just a few minutes after sending this, I tried again, and then suddenly it worked.
Sorry, should have replied back sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
main instance issue issue is only present on the main cobalt instance
Projects
None yet
Development

No branches or pull requests