Bug 53254 - appcenter: during load_verify_locations: IOError: [Errno 2] No such file or directory
appcenter: during load_verify_locations: IOError: [Errno 2] No such file or d...
Status: RESOLVED DUPLICATE of bug 49575
Product: UCS
Classification: Unclassified
Component: App Center
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-12 17:49 CEST by Florian Best
Modified: 2023-09-20 12:35 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021051021000161, 2021091621000456, 2021061121000354, 2021081221000625, 2021080421000364
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-05-12 17:49:00 CEST
Almost every day the following traceback happens during the Jenkins Tests:

I am not sure what the impact is.

https://jenkins.knut.univention.de:8181/job/UCS-5.0/job/UCS-5.0-0/job/AutotestUpgrade/SambaVersion=no-samba,Systemrolle=member/ws/test/appcenter.log                                                                                          

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/upgrade_search.py", line 52, in main
    get_action('update').call()
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/update.py", line 87, in main
    if self._download_apps(app_cache):
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/update.py", line 180, in _download_apps
    if self._download_files(app_cache, filenames):
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/update.py", line 159, in _download_files
    new_etag = self._download_file(server, filename, cache_dir, etag, ucs_version)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 58, in _func
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/update.py", line 214, in _download_file
    response = urlopen(request)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/utils.py", line 325, in urlopen
    return urllib_request.urlopen(request, timeout=60)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, 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/lib/python2.7/dist-packages/univention/appcenter/utils.py", line 312, in https_open
    return self.do_open(HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1058, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1098, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1054, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 892, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 854, in send
    self.connect()
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/utils.py", line 306, in connect
    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file, cert_reqs=ssl.CERT_REQUIRED, ca_certs="/etc/ssl/certs/ca-certificates.crt")                                                                                              
  File "/usr/lib/python2.7/ssl.py", line 943, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 552, in __init__
    self._context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory
Comment 1 Christian Castens univentionstaff 2021-06-21 13:39:27 CEST
Version: 4.4-8 errata992 (Blumenthal)

Error:
Internal server error during "appcenter/query".
Request: appcenter/query

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 359, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY2.7%/univention/management/console/base.py", line 262, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 246, in query
    self.update_applications()
  File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 264, in update_applications
    update.call()
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "%PY2.7%/univention/appcenter/actions/update.py", line 87, in main
    if self._download_apps(app_cache):
  File "%PY2.7%/univention/appcenter/actions/update.py", line 180, in _download_apps
    if self._download_files(app_cache, filenames):
  File "%PY2.7%/univention/appcenter/actions/update.py", line 159, in _download_files
    new_etag = self._download_file(server, filename, cache_dir, etag, ucs_version)
  File "%PY2.7%/univention/appcenter/actions/__init__.py", line 58, in _func
    return func(*args, **kwargs)
  File "%PY2.7%/univention/appcenter/actions/update.py", line 214, in _download_file
    response = urlopen(request)
  File "%PY2.7%/univention/appcenter/utils.py", line 325, in urlopen
    return urllib_request.urlopen(request, timeout=60)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, 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 "%PY2.7%/univention/appcenter/utils.py", line 312, in https_open
    return self.do_open(HTTPSConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1058, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1098, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1054, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 892, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 854, in send
    self.connect()
  File "%PY2.7%/univention/appcenter/utils.py", line 306, in connect
    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file, cert_reqs=ssl.CERT_REQUIRED, ca_certs="/etc/ssl/certs/ca-certificates.crt")
  File "/usr/lib/python2.7/ssl.py", line 943, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 552, in __init__
    self._context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory

Role: domaincontroller_master
Comment 2 Maximilian Janßen univentionstaff 2021-11-19 17:17:33 CET
Reported again:
Version: 4.4-8 errata1052 (Blumenthal)
(traceback identical to christian's from 2021-06-21)
Comment 3 Philipp Hahn univentionstaff 2023-09-20 12:35:05 CEST

*** This bug has been marked as a duplicate of bug 49575 ***