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

UnavailableVideoError: [Errno 13] Permission denied #13235

Closed
nickv2002 opened this issue May 31, 2017 · 3 comments
Closed

UnavailableVideoError: [Errno 13] Permission denied #13235

nickv2002 opened this issue May 31, 2017 · 3 comments

Comments

@nickv2002
Copy link

@nickv2002 nickv2002 commented May 31, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.05.29. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.05.29

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Question

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v 'https://vimeo.com/210703640'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://vimeo.com/210703640']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.29
[debug] Python version 2.7.9 - Linux-4.4.27-9-osmc-armv7l-with-debian-8.8
[debug] exe versions: ffmpeg 3.2.4-1, ffprobe 3.2.4-1
[debug] Proxy map: {}
[vimeo] 210703640: Downloading webpage
[vimeo] 210703640: Extracting information
[vimeo] 210703640: Downloading webpage
[vimeo] 210703640: Downloading JSON metadata
WARNING: Unable to download JSON metadata: HTTP Error 403: Forbidden
[vimeo] 210703640: Downloading akfire_interconnect_quic m3u8 information
[vimeo] 210703640: Downloading fastly_skyfire_h2 m3u8 information
[vimeo] 210703640: Downloading akfire_interconnect_quic MPD information
[vimeo] 210703640: Downloading akfire_interconnect_quic MPD information
[vimeo] 210703640: Downloading fastly_skyfire_h2 MPD information
[vimeo] 210703640: Downloading fastly_skyfire_h2 MPD information
[debug] Invoking downloader on u'https://skyfire-h2.vimeocdn.com/1496206996-0x9dc5a498ac14cfe9709d4e8f8b4dbdbb3ebc3f6d/210703640/sep/video/722559722,722559727,722559726,722559723/../'
[dashsegments] Total fragments: 24
[download] Destination: Jem Cresswell 'Giants' - Behind the scenes-210703640.fdash-fastly_skyfire_h2_sep-video-722559723.mp4
ERROR: unable to download video
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1896, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 771, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 825, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1539, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1808, in process_info
    raise UnavailableVideoError(err)
UnavailableVideoError: [Errno 13] Permission denied: "Jem Cresswell 'Giants' - Behind the scenes-210703640.fdash-fastly_skyfire_h2_sep-video-722559723.mp4.part"

Description of your issue, suggested solution and other information

I'm not sure precisely what's failing here. The download seems to work fine on in other directories, it's just this (Samba-mount) dir that's giving me problems. I download lots of videos in this directory and things were working fine until recently. Can you help me understand what causes UnavailableVideoError: [Errno 13] Permission denied so I can fix it on my system?

@nickv2002
Copy link
Author

@nickv2002 nickv2002 commented May 31, 2017

I've worked around this by downloading to /tmp first and then moving to my target directory afterwards, so it's not that I don't have permission to write to my target current directory.

It would still be good to know more about UnavailableVideoError: [Errno 13] Permission denied errors. I think this is complicated by the fact that my target directory is a Samba mount, but this has been working for hundreds of videos for months without issue.

Thanks!

@nickv2002
Copy link
Author

@nickv2002 nickv2002 commented May 31, 2017

Just to double check, I just tested creating/renaming/removing dirs and files in the suspect directory from the command line and didn't have any problems.

touch blah && mv blah bla && rm bla
mkdir blah && mv blah bla && rm -r bla

Strange that I can't reproduce any problems from the command line, but I can consistently trigger it from youtube-dl. Here's another example on a YouTube video:

youtube-dl -v 'http://www.youtube.com/watch?v=aPzvKH8AVf0'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=aPzvKH8AVf0']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.29
[debug] Python version 2.7.9 - Linux-4.4.27-9-osmc-armv7l-with-debian-8.8
[debug] exe versions: ffmpeg 3.2.4-1, ffprobe 3.2.4-1
[debug] Proxy map: {}
[youtube] aPzvKH8AVf0: Downloading webpage
[youtube] aPzvKH8AVf0: Downloading video info webpage
[youtube] aPzvKH8AVf0: Extracting video information
[youtube] aPzvKH8AVf0: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r8---sn-n4v7kn7k.googlevideo.com/videoplayback/id/68fcef287f0055fd/itag/137/source/youtube/requiressl/yes/pl/17/ms/au/ei/vfUuWfzhEMa8_APIo5XoDg/mn/sn-n4v7kn7k/mm/31/initcwndbps/1686250/mv/m/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/40879887/lmt/1496229911112970/dur/170.753/key/dg_yt0/signature/856498BDD558CDDF19706FD4A4E09E086D2BB71E.0EB3DB642D81FBE8F455F4BD2CD22D57EABE1239/mt/1496249672/ip/50.168.54.13/ipbits/0/expire/1496271389/sparams/ip,ipbits,expire,id,itag,source,requiressl,pl,ms,ei,mn,mm,initcwndbps,mv,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 35
[download] Destination: LOGAN LUCKY _ Official HD Trailer-aPzvKH8AVf0.f137.mp4
[download]   2.9% of ~24.44KiB at 296.36KiB/s ETA 00:04ERROR: unable to download video
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1896, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 771, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 825, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1539, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1808, in process_info
    raise UnavailableVideoError(err)
UnavailableVideoError: [Errno 13] Permission denied: 'LOGAN LUCKY _ Official HD Trailer-aPzvKH8AVf0.f137.mp4.ytdl'

But since this seems to be an issue with the specific mount and I was able to work around it, I'll close this issue for now.

@titansoftime
Copy link

@titansoftime titansoftime commented Jan 2, 2018

I got this error as well running Windows 7. Just had to set my non admin user account to read/write allowed in folder security.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.