{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/15497","repository_url":"https://api.github.com/repos/rg3/youtube-dl","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/15497/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/15497/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/15497/events","html_url":"https://github.com/rg3/youtube-dl/issues/15497","id":294235577,"number":15497,"title":"`youtube-dl -U` fails to update on outdated machines due to SSL protocol version - consider using http fallback","user":{"login":"cousteaulecommandant","id":6584870,"avatar_url":"https://avatars1.githubusercontent.com/u/6584870?v=4","gravatar_id":"","url":"https://api.github.com/users/cousteaulecommandant","html_url":"https://github.com/cousteaulecommandant","followers_url":"https://api.github.com/users/cousteaulecommandant/followers","following_url":"https://api.github.com/users/cousteaulecommandant/following{/other_user}","gists_url":"https://api.github.com/users/cousteaulecommandant/gists{/gist_id}","starred_url":"https://api.github.com/users/cousteaulecommandant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cousteaulecommandant/subscriptions","organizations_url":"https://api.github.com/users/cousteaulecommandant/orgs","repos_url":"https://api.github.com/users/cousteaulecommandant/repos","events_url":"https://api.github.com/users/cousteaulecommandant/events{/privacy}","received_events_url":"https://api.github.com/users/cousteaulecommandant/received_events","type":"User","site_admin":false},"labels":[{"id":23667112,"url":"https://api.github.com/repos/rg3/youtube-dl/labels/build/update","name":"build/update","color":"DDDDDD","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-04T22:06:43Z","updated_at":"2018-02-07T20:25:00Z","closed_at":null,"author_association":"NONE","body":"## Please follow the guide below\r\n\r\n- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly\r\n- Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`)\r\n- Use the *Preview* tab to see what your issue will actually look like\r\n\r\n---\r\n\r\n### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.02.04*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.\r\n- [x] I've **verified** and **I assure** that I'm running youtube-dl **2018.02.04** — *yes, after I updated youtube-dl manually (downloading it rather than using the `-U` option)*\r\n\r\n### Before submitting an *issue* make sure you have:\r\n- [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections — *yes, my issue is not listed*\r\n- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones — *only similar bug is #14610, which does not provide enough details to ensure it is the same bug*\r\n- [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser — *well, I checked that I can download https://rg3.github.io/youtube-dl/update/LATEST_VERSION using Firefox, so it's not a network issue.  I also tried to `wget` that page as http rather than https and it worked.*\r\n\r\n### What is the purpose of your *issue*?\r\n- [x] **Bug report (encountered problems with youtube-dl)**\r\n- [ ] Site support request (request for adding support for a new site)\r\n- [ ] Feature request (request for a new functionality)\r\n- [ ] Question\r\n- [ ] Other\r\n\r\n---\r\n\r\n### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output:\r\n\r\n```\r\n$ sudo youtube-dl -U -v\r\n[debug] System config: []\r\n[debug] User config: []\r\n[debug] Custom config: []\r\n[debug] Command-line args: [u'-U', u'-v']\r\n[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8\r\n[debug] youtube-dl version 2018.02.04\r\n[debug] Python version 2.6.6 (CPython) - Linux-2.6.35-32-generic-x86_64-with-Ubuntu-10.10-maverick\r\n[debug] exe versions: ffmpeg 0.6-4, ffprobe 0.6-4, rtmpdump 2.3\r\n[debug] Proxy map: {}\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/youtube-dl/youtube_dl/update.py\", line 45, in update_self\r\n    newversion = opener.open(VERSION_URL).read().decode('utf-8').strip()\r\n  File \"/usr/lib/python2.6/urllib2.py\", line 391, in open\r\n    response = self._open(req, data)\r\n  File \"/usr/lib/python2.6/urllib2.py\", line 409, in _open\r\n    '_open', req)\r\n  File \"/usr/lib/python2.6/urllib2.py\", line 369, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/local/bin/youtube-dl/youtube_dl/utils.py\", line 1089, in https_open\r\n    req, **kwargs)\r\n  File \"/usr/lib/python2.6/urllib2.py\", line 1145, in do_open\r\n    raise URLError(err)\r\nURLError: <urlopen error [Errno 1] _ssl.c:490: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version>\r\n\r\nERROR: can't find the current version. Please try again later.\r\n```\r\n\r\n***(NB: I also tried running youtube-dl under python 2.7.0 and 3.1.2 without success.)***\r\n\r\n---\r\n\r\n### Description of your *issue*, suggested solution and other information\r\n\r\nI have a rather old computer with a rather out-of-date system, and since recently I can't update youtube-dl.  This might be due to github.io changing its SSL protocol and requiring a more advanced standard that my PC has trouble with.  (This is partly due to the fix for bug #5909 which required https for the update, although this was working before (up to 2017.12.14) so I guess it has to do with github and not youtube-dl.)\r\n\r\nI can think of 3 solutions (assuming the SSL protocols cannot or shall not be changed):\r\n1. Automatically fall back to http if https fails, possibly prompting the user if they want to use the insecure http instead of https.\r\n2. Make the user explicitly allow http fallback via a convoluted command line option, like `--update-http` or `-U --allow-http-update`, to ensure they know what they're doing.  (Additionally, detect if this was an SSL error and in that case tell the user to use this option, rather than showing that \"try again later\" message.)\r\n3. Do nothing and just yell at the user for having an outdated system.  (Consider providing or linking to instructions for manual download.)\r\n\r\n(It should be noted that if someone is affected by this, these solutions will not be effective unless they reinstall manually.)"},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/363898869","html_url":"https://github.com/rg3/youtube-dl/issues/15497#issuecomment-363898869","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/15497","id":363898869,"user":{"login":"PacoH","id":6173647,"avatar_url":"https://avatars0.githubusercontent.com/u/6173647?v=4","gravatar_id":"","url":"https://api.github.com/users/PacoH","html_url":"https://github.com/PacoH","followers_url":"https://api.github.com/users/PacoH/followers","following_url":"https://api.github.com/users/PacoH/following{/other_user}","gists_url":"https://api.github.com/users/PacoH/gists{/gist_id}","starred_url":"https://api.github.com/users/PacoH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PacoH/subscriptions","organizations_url":"https://api.github.com/users/PacoH/orgs","repos_url":"https://api.github.com/users/PacoH/repos","events_url":"https://api.github.com/users/PacoH/events{/privacy}","received_events_url":"https://api.github.com/users/PacoH/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T20:25:00Z","updated_at":"2018-02-07T20:25:00Z","author_association":"NONE","body":"`--prefer-insecure` does not work. I tried it. From man page:\r\n\r\n\t--prefer-insecure\r\n\t  Use an unencrypted connection to retrieve information about the video.  (Currently supported only for\r\n\t  YouTube)"}}
{"actor":{"display_login":"PacoH"}}