Univention Bugzilla – Bug 43483
updater/updates/query: SSLError: The read operation timed out
Last modified: 2022-12-16 12:18:13 CET
UCS Version: 4.1-3 errata360 (Vahr) Execution of command 'updater/updates/query' has failed: SSLError: The read operation timed out return self._sslobj.read(len) File "/usr/lib/python2.7/ssl.py", line 160, in read return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 241, in recv data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/socket.py", line 447, in readline line = self.fp.readline() File "/usr/lib/python2.7/httplib.py", line 366, in _read_status version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 408, in begin response.begin() File "/usr/lib/python2.7/httplib.py", line 1072, in getresponse r = h.getresponse(buffering=True) File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1219, in https_open result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain '_open', req) File "/usr/lib/python2.7/urllib2.py", line 419, in _open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 401, in open res = UCSHttpServer.opener.open(req, timeout=self.timeout) File "/usr/lib/pymodules/python2.7/univention/updater/tools.py", line 424, in access assert self.server.access(repo) File "/usr/lib/pymodules/python2.7/univention/updater/tools.py", line 692, in get_next_version ucs_version = self.get_next_version(UCS_Version(ucs_version), components, errorsto='exception') File "/usr/lib/pymodules/python2.7/univention/updater/tools.py", line 734, in get_all_available_release_updates available_versions, blocking_components = self.uu.get_all_available_release_updates() File "/usr/lib/pymodules/python2.7/univention/management/console/modules/updater/__init__.py", line 226, in query_releases yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 284, in _fake_func return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 462, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 318, in _response function(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 281, in execute Traceback (most recent call last): Execution of command 'updater/updates/query' has failed:
Version: 4.2-2 errata184 (Lesum) Execution of command 'updater/updates/query' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/updater/__init__.py", line 252, in query_releases self.uu.ucr_reinit() File "%PY2.7%/univention/updater/tools.py", line 661, in ucr_reinit assert self.server.access(None, '') File "%PY2.7%/univention/updater/tools.py", line 425, in access res = UCSHttpServer.opener.open(req, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 444, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 400, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 476, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 714, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 608, in read v = self._sslobj.read(len or 1024) SSLError: ('The read operation timed out',)
@Philipp: What do you think about git commit 78eb7bcded979848c7105d0b2295ecadfb1c6302 (branch fbest/43483-catch-ssl-error-in-updater)?
(In reply to Florian Best from comment #2) > @Philipp: What do you think about git commit > 78eb7bcded979848c7105d0b2295ecadfb1c6302 (branch > fbest/43483-catch-ssl-error-in-updater)? Looks good, but I did not test it. SSLError is too generic to distinguish between a temporary error (should raise DownloadError) and permanent error (should raise ConfiguratioNError).
Version: 4.2-3 errata265 (Lesum) Remark: Cannot access & download some modules Execution of command 'appcenter/query' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 182, in _recv self.handle(msg) File "%PY2.7%/univention/management/console/protocol/modserver.py", line 292, in handle self.__handler.init() File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 155, in init self.uu = UniventionUpdater(False) File "%PY2.7%/univention/updater/tools.py", line 580, in __init__ self.ucr_reinit() File "%PY2.7%/univention/updater/tools.py", line 652, in ucr_reinit assert self.server.access(None, '/univention-repository/') File "%PY2.7%/univention/updater/tools.py", line 425, in access res = UCSHttpServer.opener.open(req, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 444, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 400, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 476, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 714, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 608, in read v = self._sslobj.read(len or 1024)
Reported again: Version: 4.2-3 errata262 (Lesum) Execution of command 'updater/updates/query' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 250, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/updater/__init__.py", line 261, in query_releases available_versions, blocking_components = self.uu.get_all_available_release_updates() File "%PY2.7%/univention/updater/tools.py", line 735, in get_all_available_release_updates ucs_version = self.get_next_version(UCS_Version(ucs_version), components, errorsto='exception') File "%PY2.7%/univention/updater/tools.py", line 693, in get_next_version assert self.server.access(repo) File "%PY2.7%/univention/updater/tools.py", line 425, in access res = UCSHttpServer.opener.open(req, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 444, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 400, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 476, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 714, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 608, in read v = self._sslobj.read(len or 1024) SSLError: ('The read operation timed out',) Role: domaincontroller_master
Reported again: Version: 4.2-1 errata131 (Lesum) Execution of command 'updater/updates/query' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/updater/__init__.py", line 257, in query_releases available_versions, blocking_components = self.uu.get_all_available_release_updates() File "%PY2.7%/univention/updater/tools.py", line 735, in get_all_available_release_updates ucs_version = self.get_next_version(UCS_Version(ucs_version), components, errorsto='exception') File "%PY2.7%/univention/updater/tools.py", line 693, in get_next_version assert self.server.access(repo) File "%PY2.7%/univention/updater/tools.py", line 425, in access res = UCSHttpServer.opener.open(req, timeout=self.timeout) File "/usr/lib/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 444, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 400, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 476, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 714, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 608, in read v = self._sslobj.read(len or 1024) SSLError: ('The read operation timed out',)
Version: 4.3-2 errata287 (Neustadt) Internal server error during "appcenter/query". Request: appcenter/query Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 205, in query self.update_applications() File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 233, 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 84, in main if self._download_apps(app_cache): File "%PY2.7%/univention/appcenter/actions/update.py", line 177, in _download_apps if self._download_files(app_cache, filenames): File "%PY2.7%/univention/appcenter/actions/update.py", line 156, 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 211, in _download_file response = urlopen(request) File "%PY2.7%/univention/appcenter/utils.py", line 320, in urlopen return urllib2.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 307, in https_open return self.do_open(HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 438, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 394, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 480, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 766, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 653, in read v = self._sslobj.read(len) SSLError: ('The read operation timed out',) Role: domaincontroller_master
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Reported again: Version: 4.4-0 errata5 (Blumenthal) Internal server error during "appcenter/query". Request: appcenter/query Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 204, in query self.update_applications() File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 232, 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 84, in main if self._download_apps(app_cache): File "%PY2.7%/univention/appcenter/actions/update.py", line 177, in _download_apps if self._download_files(app_cache, filenames): File "%PY2.7%/univention/appcenter/actions/update.py", line 156, 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 211, in _download_file response = urlopen(request) File "%PY2.7%/univention/appcenter/utils.py", line 324, in urlopen return urllib2.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 311, in https_open return self.do_open(HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 438, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 394, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 480, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 766, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 653, in read v = self._sslobj.read(len) SSLError: ('The read operation timed out',) Role: domaincontroller_master
Reported again: Version: 4.4-2 errata319 (Blumenthal) Internal server error during "updater/updates/query". Request: updater/updates/query Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling six.reraise(etype, exc, etraceback) File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response result = _multi_response(self, request) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response return list(function(self, iterator, *nones)) File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/updater/__init__.py", line 287, in query_releases available_versions, blocking_components = self.uu.get_all_available_release_updates() File "%PY2.7%/univention/updater/tools.py", line 1015, in get_all_available_release_updates ver = self.get_next_version(ucs_version, components, errorsto='exception') File "%PY2.7%/univention/updater/tools.py", line 972, in get_next_version assert self.server.access(repo) File "%PY2.7%/univention/updater/tools.py", line 642, in access res = UCSHttpServer.opener.open(req, timeout=self.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/urllib2.py", line 1241, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open r = h.getresponse(buffering=True) File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse response.begin() File "/usr/lib/python2.7/httplib.py", line 438, in begin version, status, reason = self._read_status() File "/usr/lib/python2.7/httplib.py", line 394, in _read_status line = self.fp.readline(_MAXLINE + 1) File "/usr/lib/python2.7/socket.py", line 480, in readline data = self._sock.recv(self._rbufsize) File "/usr/lib/python2.7/ssl.py", line 766, in recv return self.read(buflen) File "/usr/lib/python2.7/ssl.py", line 653, in read v = self._sslobj.read(len) SSLError: ('The read operation timed out',) Role: domaincontroller_master