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

[youtube] Resource Not Found error when downloading with aria2c #14111

Closed
pythonoma opened this issue Sep 4, 2017 · 1 comment
Closed

[youtube] Resource Not Found error when downloading with aria2c #14111

pythonoma opened this issue Sep 4, 2017 · 1 comment

Comments

@pythonoma
Copy link

@pythonoma pythonoma commented Sep 4, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.09.02

Before submitting an issue make sure you have:

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

What is the purpose of your issue?

  • [x ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


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

running youtube-dl https://www.youtube.com/watch?v=ZdFnQwKTdiE -o '%(upload_date)s-%(title)s.%(ext)s' --external-downloader 'aria2c' -v
gives:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=ZdFnQwKTdiE', '-o', '%(upload_date)s-%(title)s.%(ext)s', '--external-downloader', 'aria2c', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.09.02
[debug] Python version 3.5.2 - Linux-4.4.0-87-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] ZdFnQwKTdiE: Downloading webpage
[youtube] ZdFnQwKTdiE: Downloading video info webpage
[youtube] ZdFnQwKTdiE: Extracting video information
[youtube] ZdFnQwKTdiE: Downloading MPD manifest
[debug] Default format spec: best
[debug] Invoking downloader on 'https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23'
[download] Destination: 20130619-أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013.mp4
[debug] aria2c command line: aria2c -c --min-split-size 1M --max-connection-per-server 4 --out '20130619-أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013.mp4.part' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-us,en;q=0.5' --header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --check-certificate=true -- 'https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23'

09/04 02:11:53 [ERROR] CUID#9 - Download aborted. URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
Exception: [AbstractCommand.cc:350] errorCode=3 URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
  -> [HttpSkipResponseCommand.cc:215] errorCode=3 Resource not found

09/04 02:11:53 [ERROR] CUID#8 - Download aborted. URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
Exception: [AbstractCommand.cc:350] errorCode=3 URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
  -> [HttpSkipResponseCommand.cc:215] errorCode=3 Resource not found

09/04 02:11:53 [ERROR] CUID#7 - Download aborted. URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
Exception: [SocketCore.cc:847] errorCode=1 Failed to receive data, cause: The TLS connection was non-properly terminated.

09/04 02:11:53 [ERROR] CUID#10 - Download aborted. URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
Exception: [AbstractCommand.cc:350] errorCode=3 URI=https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ei=aLasWemlB4rv8wTuvo7oBw&itag=22&key=yt6&ipbits=0&ratebypass=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&lmt=1499967034572025&id=o-ANw6pWZ1CknBJVFM56xuh6ZfKJAnc_Fa1nMGwj8_Q8dA&ms=au&mt=1504491032&mv=m&source=youtube&expire=1504512712&requiressl=yes&ip=138.197.111.181&mime=video%2Fmp4&initcwndbps=6262500&dur=47.090&signature=2B488803AFF37B989041ACF8DE49E0A9E34C15F0.22187DAB2B2916976DCD762A6172916299902A64&mm=31&mn=sn-ab5l6nll&pl=23
  -> [HttpSkipResponseCommand.cc:215] errorCode=3 Resource not found

09/04 02:11:53 [NOTICE] Download GID#839aacef680478bc not complete: /root/20130619-أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013.mp4.part

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
839aac|ERR |       0B/s|/root/20130619-أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013.mp4.part

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.



ERROR: aria2c exited with code 3
  File "/usr/local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/__init__.py", line 465, in main
    _real_main(argv)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/__init__.py", line 455, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1958, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 787, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 841, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1601, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1865, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1807, in dl
    return fd.download(name, info)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/downloader/common.py", line 361, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/downloader/external.py", line 57, in real_download
    self.get_basename(), retval))
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/downloader/common.py", line 163, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 604, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 566, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Works fine for other videos but this video causes the error.
Also downloading without aria2 works fine.

youtube-dl https://www.youtube.com/watch?v=ZdFnQwKTdiE -o '%(upload_date)s-%(title)s.%(ext)s' -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=ZdFnQwKTdiE', '-o', '%(upload_date)s-%(title)s.%(ext)s', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.09.02
[debug] Python version 3.5.2 - Linux-4.4.0-87-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] ZdFnQwKTdiE: Downloading webpage
[youtube] ZdFnQwKTdiE: Downloading video info webpage
[youtube] ZdFnQwKTdiE: Extracting video information
[youtube] ZdFnQwKTdiE: Downloading MPD manifest
[debug] Default format spec: best
[debug] Invoking downloader on 'https://r11---sn-ab5l6nll.googlevideo.com/videoplayback?ratebypass=yes&pl=23&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&itag=22&ei=nresWYPxMIPF8wSetbOQDw&ipbits=0&requiressl=yes&expire=1504513022&dur=47.090&mm=31&signature=DB988DC5858D4880696B144C63847042459BFD36.63353D101710E8DF5215DD6AEBE8914DC4278EF9&mn=sn-ab5l6nll&mime=video%2Fmp4&id=o-AHtTWa7CgGNh6zvu4smXL50HNcQdjSnrIdeIeCnEriNW&initcwndbps=6425000&key=yt6&ip=138.197.111.181&lmt=1499967034572025&mt=1504491333&source=youtube&mv=m&ms=au'
[download] Resuming download at byte 9258565
[download] 20130619-أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013.mp4 has already been downloaded
[download] 100% of 8.83MiB
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 9, 2017

PS C:\Dev\youtube-dl\master> py -3.6 .\youtube_dl\__main__.py ZdFnQwKTdiE --external-downloader aria2c
[youtube] ZdFnQwKTdiE: Downloading webpage
[youtube] ZdFnQwKTdiE: Downloading video info webpage
[youtube] ZdFnQwKTdiE: Extracting video information
[youtube] ZdFnQwKTdiE: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f136.mp4

09/09 22:26:46 [WARN] Gaining privilege SeManageVolumePrivilege failed.

09/09 22:26:46 [WARN] --file-allocation=falloc will not work properly.
[#b6ce01 0B/0B CN:1 DL:0B]
09/09 22:26:47 [NOTICE] Allocating disk space. Use --file-allocation=none to disable it. See --file-allocation option in man page for more details.
[#b6ce01 7.1MiB/8.1MiB(87%) CN:2 DL:7.3MiB]
09/09 22:26:49 [NOTICE] Download complete: C:/Dev/youtube-dl/master/أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f136.mp4.part

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
b6ce01|OK  |   7.5MiB/s|C:/Dev/youtube-dl/master/أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f136.mp4.part

Status Legend:
(OK):download completed.
[aria2c] Downloaded 8515292 bytes
[download] 100% of 8.12MiB
[download] Destination: أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f251.webm

09/09 22:26:49 [WARN] Gaining privilege SeManageVolumePrivilege failed.

09/09 22:26:49 [WARN] --file-allocation=falloc will not work properly.
[#daf1a8 256KiB/748KiB(34%) CN:1 DL:1.4MiB]
09/09 22:26:50 [NOTICE] Download complete: C:/Dev/youtube-dl/master/أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f251.webm.part

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
daf1a8|OK  |   2.7MiB/s|C:/Dev/youtube-dl/master/أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f251.webm.part

Status Legend:
(OK):download completed.
[aria2c] Downloaded 766738 bytes
[download] 100% of 748.77KiB
[ffmpeg] Merging formats into "أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.mkv"
Deleting original file أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f136.mp4 (pass -k to keep)
Deleting original file أمطار أماكن تمركز ميليشيا النظام في سليمان الحلبي بقذائف الهاون 19-6-2013-ZdFnQwKTdiE.f251.webm (pass -k to keep)
@dstftw dstftw closed this Sep 9, 2017
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
2 participants
You can’t perform that action at this time.