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

<urlopen error [Errno 101] Network is unreachable> (Access Denied from link from extractor) #23213

Closed
SwissCheese5 opened this issue Nov 26, 2019 · 4 comments
Labels

Comments

@SwissCheese5
Copy link

@SwissCheese5 SwissCheese5 commented Nov 26, 2019

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.11.22
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[youtube] {394} signature length 105, html5 player vfly7X4ko
[youtube] {140} signature length 105, html5 player vfly7X4ko
[youtube] {249} signature length 105, html5 player vfly7X4ko
[youtube] {250} signature length 105, html5 player vfly7X4ko
[youtube] {251} signature length 105, html5 player vfly7X4ko
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on u'https://r3---sn-vgqsknel.googlevideo.com/videoplayback?expire=1574799606&ei=lTTdXYu5PMfIwQHuiJigBg&ip=35.209.189.190&id=o-APYq2Wo-W_sG62bi8Bo9xDN7Iicb247A4jAOCA8O-6vt&itag=18&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-vgqsknel%2Csn-q4flrner&ms=au%2Conr&mv=u&mvi=2&pl=21&gcr=us&mime=video%2Fmp4&gir=yes&clen=10546029&ratebypass=yes&dur=229.366&lmt=1570189913691762&mt=1574777789&fvip=3&fexp=23842630&beids=9466585&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AHylml4wRQIhAKrUXchxy3PHPw8XyARN018s3OaqD2rrNUGWksOnY0ZEAiBteMEe5_tp4c8d36Sv4wFE7m0Y5j4ExEDsp3j4Rm80Tg%3D%3D&sig=ALgxI2wwRAIgfsLa-kMCnXn13rUpNcWegE9-r2AiH5tybXAXG3qcb2QCIEJsl1ceXxKNb8Z8fuRoYXpkpkRapnQ4_5vhsSIawruM'
ERROR: unable to download video data: <urlopen error [Errno 101] Network is unreachable>
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1925, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1864, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 366, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 341, in real_download
    establish_connection()
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 109, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 2724, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 101] Network is unreachable>

Description

This is running on my Google Compute Engine (GCE) server. The returned URL from the verbose command leads to this page:
image
My server, myself, my friend, and both our discord clients are receiving the Access Denied error (we're in completely different parts of the world).

I didn't download anything too many times, it didn't work from the first time.

My firewall rules allow all traffic of all types:
image

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 26, 2019

Your server does not receive access denied as clearly seen from the log but network is unreachable error indicating connectivity issue between your server and download host.

@dstftw dstftw closed this Nov 26, 2019
@SwissCheese5
Copy link
Author

@SwissCheese5 SwissCheese5 commented Nov 26, 2019

@dstftw The thing is that all ports are open on all protocols, and I've verified this. I can ping google.com and youtube.com, I can use both curl and wget to download the youtube-dl bin, I can access my server webpage through my browser so it's definitely able to process everything. I've made sure both http and https are supported by the server.

I even uninstalled curl and youtube-dl then redownloaded youtube-dl with wget.

wget'ting the link yields the following log (nothing different)

Resolving r2---sn-5uaeznyz.googlevideo.com (r2---sn-5uaeznyz.googlevideo.com)... 173.194.144.71, 2607:f8b0:4002:3e::7
Connecting to r2---sn-5uaeznyz.googlevideo.com (r2---sn-5uaeznyz.googlevideo.com)|173.194.144.71|:443... failed: Connection timed out.
Connecting to r2---sn-5ualdn7s.googlevideo.com (r2---sn-5ualdn7s.googlevideo.com)|2607:f8b0:4002:2f::8|:443... failed: Network is unreachable.
failed: Connection timed out.
Connecting to r2---sn-5ualdn7s.googlevideo.com (r2---sn-5ualdn7s.googlevideo.com)|2607:f8b0:4002:2f::8|:443... failed: Network is unreachable.
failed: Connection timed out.
Connecting to r2---sn-5uaeznyz.googlevideo.com (r2---sn-5uaeznyz.googlevideo.com)|2607:f8b0:4002:3e::7|:443... failed: Network is unreachable.
[2]-  Exit 4                  wget https://r2---sn-5ualdn7s.googlevideo.com/videoplayback?expire=1574808322
[3]+  Exit 4                  wget https://r2---sn-5ualdn7s.googlevideo.com/videoplayback?expire=1574808322

Not sure what possible connectivity issues can exist that I'm missing, What else can I verify?

@Producer86
Copy link

@Producer86 Producer86 commented Nov 26, 2019

@dstftw Same issue here, http host reached, webpage download succeeds but downloader gives 101

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 26, 2019

As already pointed out: network issue on your side, nothing to do with youtube-dl.

@ytdl-org ytdl-org locked and limited conversation to collaborators Nov 26, 2019
@dstftw dstftw added the invalid label Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.