Univention Bugzilla – Bug 40308
AppCenter doesn't handle connection errors to the appcenter server
Last modified: 2016-10-28 13:04:41 CEST
Execution of command 'appcenter/invoke_dry_run' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 303, in invoke_dry_run self.invoke(request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 656, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 190, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 412, in invoke application = Application.find(application_id) File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 560, in find for application in cls.all(): File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 828, in all cls.sync_with_server() File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 632, in sync_with_server detached_sig = urlopen(sig_url).read() File "%PY2.7%/univention/management/console/modules/appcenter/util.py", line 166, in urlopen return urllib2.urlopen(request, timeout=60) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 407, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 520, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 445, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found
4.1-0 errata29 (Vahr)
We received a similar traceback: Execution of command 'appcenter/invoke_dry_run' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 283, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 291, in invoke_dry_run self.invoke(request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 656, in _decorated return function(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 190, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 400, in invoke application = Application.find(application_id) File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 560, in find for application in cls.all(): File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 828, in all cls.sync_with_server() File "%PY2.7%/univention/management/console/modules/appcenter/app_center.py", line 632, in sync_with_server detached_sig = urlopen(sig_url).read() File "%PY2.7%/univention/management/console/modules/appcenter/util.py", line 166, in urlopen return urllib2.urlopen(request, timeout=60) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 401, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 419, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1219, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1181, in do_open raise URLError(err) URLError: <urlopen error [Errno -2] Name or service not known> Remark: I do not know if it was the case but this system is run as a virtual machine Version: 4.1-0 errata0 (Vahr)
With the performance optimizations this should not happen anymore. The problem lies in sync_with_server, which is not used anymore. The new univention-app update is used. Would be fixed completely with Bug#40064
*** This bug has been marked as a duplicate of bug 40064 ***