Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl -U fails on Android (SSL failure) #4864
Comments
|
Who is the network provider?
I think that HTTPS is needed for the initial version check to prevent replay attacks. |
|
What do you mean by network provider ? |
|
I mean like AT&T, Verizon, 3 (UK), Orange (France). |
|
It's not a mobile network connection. Just a regular home WiFi connection to the Internet. |
|
I am not sure what you mean by "caused". Yes, you would not encounter an error if we were to revert that change, but still something is seriously wrong with either the ISP or the certification infrastructure. |
|
By "caused" I mean that it worked fine prior this commit and it doesn't work anymore after this commit (I checked it). |
|
I am also having the same issue under qpython3 on Android. |
|
Works fine for me. Indeed SSL on Android is tricky. For future occurrences, ask qpython3 team or whatever party that provides Python on Android for why their SSL is broken.
|
Since version 2015.01.09, updating the binary doesn't work anymore on Android (trace below). The cause seems to be commit aa2fd59 from Jan 9th.
It worked perfectly in versions prior 2015.01.09.
It would be great to have a command line option to use http instead of https for all update operations.
root@mako:/redacted/path/bin # ./python ./youtube-dl -Uv
on ./youtube-dl -Uv <
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-Uv']
[debug] Encodings: locale utf-8, fs utf-8, out utf-8, pref utf-8
[debug] youtube-dl version 2015.02.03.1
[debug] Python version 3.2.2 - Linux-3.4.0-faux123-mako-custom-kk44-armv7l-with-libc
[debug] exe versions: none
[debug] Proxy map: {}
Updating to version 2015.02.04 ...
Traceback (most recent call last):
File "/redacted/path/lib/python3.2/urllib/request.py", line 1136, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/redacted/path/lib/python3.2/http/client.py", line 964, in request
self._send_request(method, url, body, headers)
File "/redacted/path/lib/python3.2/http/client.py", line 1002, in _send_request
self.endheaders(body)
File "/redacted/path/lib/python3.2/http/client.py", line 960, in endheaders
self._send_output(message_body)
File "/redacted/path/lib/python3.2/http/client.py", line 805, in _send_output
self.send(msg)
File "/redacted/path/lib/python3.2/http/client.py", line 743, in send
self.connect()
File "/redacted/path/lib/python3.2/http/client.py", line 1105, in connect
server_hostname=server_hostname)
File "/redacted/path/lib/python3.2/ssl.py", line 181, in wrap_socket
_context=self)
File "/redacted/path/lib/python3.2/ssl.py", line 268, in init
raise x
File "/redacted/path/lib/python3.2/ssl.py", line 264, in init
self.do_handshake()
File "/redacted/path/lib/python3.2/ssl.py", line 443, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:392: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/update.py", line 173, in update_self
urlh = opener.open(version['bin'][0])
File "/redacted/path/lib/python3.2/urllib/request.py", line 369, in open
response = self._open(req, data)
File "/redacted/path/lib/python3.2/urllib/request.py", line 387, in _open
'_open', req)
File "/redacted/path/lib/python3.2/urllib/request.py", line 347, in _call_chain
result = func(_args)
File "./youtube-dl/youtube_dl/utils.py", line 665, in https_open
req, *_kwargs)
File "/redacted/path/lib/python3.2/urllib/request.py", line 1139, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 1] _ssl.c:392: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed>
ERROR: unable to download latest version