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

Unable to update to the latest version #14049

Closed
ballo opened this issue Aug 28, 2017 · 6 comments
Closed

Unable to update to the latest version #14049

ballo opened this issue Aug 28, 2017 · 6 comments
Labels

Comments

@ballo
Copy link

@ballo ballo commented Aug 28, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.08.27.1. 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.08.27.1
    Can't

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

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 ```):

youtube-dl -v -U
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-U']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.23
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2
[debug] Proxy map: {}
Updating to version 2017.08.27.1 ...
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/update.py", line 148, in update_self
    urlh = opener.open(version['bin'][0])
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1086, in https_open
    req, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>

ERROR: unable to download latest version

Description of your issue, suggested solution and other information

I updated brew and upgraded youtube-dl but this does NOT provide the latest version so I ran youtube-dl -U as root and it fails.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 28, 2017

Seems a network issue. Could you try to open https://yt-dl.org/downloads/2017.08.27.1/youtube-dl in browsers (Safari, Chrome, Firefox, etc.) and see if the file can be downloaded or not?

@ballo
Copy link
Author

@ballo ballo commented Aug 28, 2017

Appears to be fine with wget. youtube-dl doesn't appear to even attempt it. It downloads the initial file with the version but after that I see no activity with packet sniffers

wget https://yt-dl.org/downloads/2017.08.27.1/youtube-dl --2017-08-27 21:39:01-- https://yt-dl.org/downloads/2017.08.27.1/youtube-dl Resolving yt-dl.org... 95.143.172.170, 2001:1a50:11::5f:8f:acaa:177 Connecting to yt-dl.org|95.143.172.170|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github.com/rg3/youtube-dl/releases/download/2017.08.27.1/youtube-dl [following] --2017-08-27 21:39:17-- https://github.com/rg3/youtube-dl/releases/download/2017.08.27.1/youtube-dl Resolving github.com... 192.30.255.112, 192.30.255.113 Connecting to github.com|192.30.255.112|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/1039520/855a575c-8aee-11e7-87d2-8e9efbd9d54f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170828%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170828T043934Z&X-Amz-Expires=300&X-Amz-Signature=807c5e93bb1b344b4726df25e1729fc7509975ad8264d9b8972265726e69a02c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dyoutube-dl&response-content-type=application%2Foctet-stream [following] --2017-08-27 21:39:42-- https://github-production-release-asset-2e65be.s3.amazonaws.com/1039520/855a575c-8aee-11e7-87d2-8e9efbd9d54f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170828%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170828T043934Z&X-Amz-Expires=300&X-Amz-Signature=807c5e93bb1b344b4726df25e1729fc7509975ad8264d9b8972265726e69a02c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dyoutube-dl&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 54.231.11.128 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|54.231.11.128|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1568354 (1.5M) [application/octet-stream] Saving to: ‘youtube-dl’

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 28, 2017

Thanks for the feedback.

I see no activity with packet sniffers

youtube-dl tries to fetch the new binary but apparently it fails at the DNS step. Did you see packets on UDP 53 port?

By the way, I just tried it on Sierra (Darwin-16.7.0-x86_64-i386-64bit) and -U works just fine. Not sure is it related to macOS internal changes or not.

@ballo
Copy link
Author

@ballo ballo commented Aug 28, 2017

Did you install it using brew? I'm using OS X 10.10.5. If you install from brew you don't get the latest version.

I don't see how python would be different than wget in terms of DNS resolution. I tried deleting the dns cache just in case but predictably that didn't help.

@ballo
Copy link
Author

@ballo ballo commented Aug 28, 2017

Hm, maybe it did help. Seems to be downloading now

@ballo
Copy link
Author

@ballo ballo commented Aug 28, 2017

OK, I think I had some kind of DNS cache issue. Attempting to close this...

@ballo ballo closed this Aug 28, 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.