Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YT: Download no longer possible. URLError(error(13, 'Permission denied') #21084
Comments
|
Something blocks requests on your side, probably https://stackoverflow.com/a/28085075/4749894. |
Checklist
Verbose log
Description
The above command fails with the error above when I try to execute it from a PHP script. The same command works fine, if I execute it directly from the shell. The user is the same (e.g. www-data both times). The folder /var/tmp is world writable (0777).
The youtube-dl cache has been cleared with
but it doesn't make a difference.
I have no idea if the URLError thrown by youtube-dl is related to the video URL or to a general permission issue on my server. The error message by youtube-dl is not clear about this. For me it sounds like an issue with the response of the YouTube server. But on the other hand the download from Bash should also fail then which is not the case.
Also I provided the default Firefox user-agent for testing purposes, because I believed YouTube maybe blocks requests with unknown UA. But that doesn't help either.
There was a time when youtube-dl worked flawlessly if run by a PHP script. So, I wonder what's been changed. The PHP script is unmodified since:
Any suggestion or idea? Maybe I missed something.