Closed
Bug 1453658
Opened 7 years ago
Closed 7 years ago
Intermittent ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
Categories
(Release Engineering :: General, defect, P5)
Release Engineering
General
Tracking
(firefox60 fixed, firefox61 fixed)
RESOLVED
FIXED
People
(Reporter: intermittent-bug-filer, Assigned: tomprince)
References
Details
(Keywords: intermittent-failure)
Attachments
(2 files)
Comment 1•7 years ago
|
||
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\ssl.py", line 683, in do_handshake
13:34:48 INFO - self._sslobj.do_handshake()
13:34:48 INFO - ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
13:34:48 INFO - During handling of the above exception, another exception occurred:
13:34:48 INFO - Traceback (most recent call last):
13:34:48 INFO - File "c:\users\task_1523537049\py3venv\lib\site-packages\setuptools\package_index.py", line 747, in open_url
13:34:48 INFO - return open_with_auth(url, self.opener)
13:34:48 INFO - File "c:\users\task_1523537049\py3venv\lib\site-packages\setuptools\package_index.py", line 948, in _socket_timeout
13:34:48 INFO - return func(*args, **kwargs)
13:34:48 INFO - File "c:\users\task_1523537049\py3venv\lib\site-packages\setuptools\package_index.py", line 1067, in open_with_auth
13:34:48 INFO - fp = opener(request)
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\urllib\request.py", line 223, in urlopen
13:34:48 INFO - return opener.open(url, data, timeout)
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\urllib\request.py", line 526, in open
13:34:48 INFO - response = self._open(req, data)
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\urllib\request.py", line 544, in _open
13:34:48 INFO - '_open', req)
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\urllib\request.py", line 504, in _call_chain
13:34:48 INFO - result = func(*args)
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\urllib\request.py", line 1361, in https_open
13:34:48 INFO - context=self._context, check_hostname=self._check_hostname)
13:34:48 INFO - File "C:\Users\task_1523537049\build\python3.6\lib\urllib\request.py", line 1320, in do_open
13:34:48 INFO - raise URLError(err)
13:34:48 INFO - urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>
13:34:48 INFO - During handling of the above exception, another exception occurred:
13:34:48 INFO - Traceback (most recent call last):
Comment 2•7 years ago
|
||
this is during mozharness pip install of packages, I am seeing this failure on try as well
Component: General → General Automation
Product: Firefox → Release Engineering
QA Contact: catlee
Comment 3•7 years ago
|
||
this seems to be a perma fail issue for jobs run after 10am EDT.
:catlee, can you get someone to look into this?
Flags: needinfo?(catlee)
Comment 5•7 years ago
|
||
My guess is that this is due to pypi shutting down TLS1.0/1.1 on pypi.python.org. We shouldn't be downloading packages from there, but they do sneak into our dependencies in various ways.
I expect more problems like this to show up soon.
It looks like this particular issue is that brotlipy==0.6.0 depends on cffi==1.11.5, which tries to be downloaded from https://files.pythonhosted.org instead of our local package mirror.
Further down in the log it runs `pip install mitmproxy`, which manages to succeed.
Note that this doesn't seem to be fatal on its own. The failure that seems to cause the job to fail is further down in the log:
13:35:28 INFO - Return code: 0
13:35:28 CRITICAL - PERFHERDER_DATA was seen 0 times, expected 1.
13:35:28 CRITICAL - Error copying results C:\Users\task_1523537049\build\local.json to upload dir C:\Users\task_1523537049\build\blobber_upload_dir\perfherder-data.json
13:35:28 INFO - Running post-action listener: _package_coverage_data
13:35:28 INFO - Running post-action listener: _resource_record_post_action
13:35:28 INFO - [mozharness: 2018-04-12 13:35:28.799000Z] Finished run-tests step (failed)
13:35:28 FATAL - Uncaught exception: Traceback (most recent call last):
13:35:28 FATAL - File "C:\Users\task_1523537049\mozharness\mozharness\base\script.py", line 2076, in run
13:35:28 FATAL - self.run_action(action)
13:35:28 FATAL - File "C:\Users\task_1523537049\mozharness\mozharness\base\script.py", line 2015, in run_action
13:35:28 FATAL - self._possibly_run_method(method_name, error_if_missing=True)
13:35:28 FATAL - File "C:\Users\task_1523537049\mozharness\mozharness\base\script.py", line 1955, in _possibly_run_method
13:35:28 FATAL - return getattr(self, method_name)()
13:35:28 FATAL - File "C:\Users\task_1523537049\mozharness\mozharness\mozilla\testing\talos.py", line 770, in run_tests
13:35:28 FATAL - self._artifact_perf_data(dest)
13:35:28 FATAL - File "C:\Users\task_1523537049\mozharness\mozharness\mozilla\testing\talos.py", line 665, in _artifact_perf_data
13:35:28 FATAL - parser.update_worst_log_and_tbpl_levels(CRITICAL, TBPL_FAILURE)
13:35:28 FATAL - NameError: global name 'parser' is not defined
13:35:28 FATAL - Running post_fatal callback...
13:35:28 FATAL - Exiting -1
Flags: needinfo?(catlee)
Comment 6•7 years ago
|
||
Also, this task seems to be running python 2.7.14, which has a recent SSL stack, and should be able to talk to modern pypi.
Comment 7•7 years ago
|
||
(In reply to Chris AtLee [:catlee] from comment #6)
> Also, this task seems to be running python 2.7.14, which has a recent SSL
> stack, and should be able to talk to modern pypi.
It looks like this task is fetching a zipped version of python 3.6.1 from tooltool, and then using that to execute the pip commands.
Comment 8•7 years ago
|
||
This is not related to the TLS version changes on PyPI, this is a failure to verify the certificate.
Comment 9•7 years ago
|
||
Has anyone verified the host has the Root/Intermediate CA cert of the newly issued pypi certificate? If this is using the system CA files (which nearly never get updated on our side), it is possible the certificate issued from Digicert might be signed by Root CAs (and/or intermediate CAs) the host doesn't have.
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment on attachment 8967419 [details]
Bug 1453658: [talos] Install cffi before trying to install mitmproxy dependencies.
Ben Hearsum (:bhearsum) has approved the revision.
https://phabricator.services.mozilla.com/D925
Attachment #8967419 -
Flags: review+
Comment 13•7 years ago
|
||
Comment on attachment 8967418 [details]
Bug 1453658: Use pip options when install python3 modules.
Ben Hearsum (:bhearsum) has approved the revision.
https://phabricator.services.mozilla.com/D924
Attachment #8967418 -
Flags: review+
Comment 14•7 years ago
|
||
(In reply to Jake Watkins [:dividehex] from comment #9)
> Has anyone verified the host has the Root/Intermediate CA cert of the newly
> issued pypi certificate? If this is using the system CA files (which nearly
> never get updated on our side), it is possible the certificate issued from
> Digicert might be signed by Root CAs (and/or intermediate CAs) the host
> doesn't have.
From curl:
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Fastly, Inc; CN=r.ssl.fastly.net
* start date: Apr 12 01:06:12 2018 GMT
* expire date: May 5 18:54:01 2018 GMT
* subjectAltName: host "files.pythonhosted.org" matched cert's "*.pythonhosted.org"
* issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign CloudSSL CA - SHA256 - G3
* SSL certificate verify ok.
Comment 15•7 years ago
|
||
what are the next steps on this bug?
Assignee | ||
Comment 16•7 years ago
|
||
My understanding was that Aryx was going to landed it and then merge it around.
Comment 17•7 years ago
|
||
Pushed by mozilla@hocat.ca:
https://hg.mozilla.org/mozilla-central/rev/ad1e2f797d20
Use pip options when install python3 modules; r=bhearsum
https://hg.mozilla.org/mozilla-central/rev/16b880957aa7
[talos] Install cffi before trying to install mitmproxy dependencies; r=bhearsum a=Aryx
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → mozilla
Comment hidden (Intermittent Failures Robot) |
Updated•7 years ago
|
status-firefox60:
--- → affected
status-firefox61:
--- → fixed
Comment 20•7 years ago
|
||
bugherder uplift |
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•