Bug 34526 - Error handling during sync when app center server is not available
Error handling during sync when app center server is not available
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
Depends on:
  Show dependency treegraph
Reported: 2014-04-10 12:36 CEST by Alexander Kläser
Modified: 2017-04-07 11:08 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted after Product Owner Review:
Ticket number:
Bug group (optional): Error handling
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2014-04-10 12:36:38 CEST
The traceback below occurred during a jenkins test script. To avoid this error, the sync could be done in a smarter way, e.g., with a second re-trial after some time.

> Traceback (most recent call last):
>   File "20_can_apps_be_installed", line 78, in <module>
>     Application.sync_with_server()
>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 555, in sync_with_server
>     zipped = StringIO(urlopen(json_url).read())
>   File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/util.py", line 117, in urlopen
>     return urllib2.urlopen(request)
>   File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
>     return _opener.open(url, data, timeout)
>   File "/usr/lib/python2.6/urllib2.py", line 391, in open
>     response = self._open(req, data)
>   File "/usr/lib/python2.6/urllib2.py", line 409, in _open
>     '_open', req)
>   File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.6/urllib2.py", line 1192, in https_open
>     return self.do_open(httplib.HTTPSConnection, req)
>   File "/usr/lib/python2.6/urllib2.py", line 1159, in do_open
>     raise URLError(err)
> urllib2.URLError: <urlopen error [Errno -2] Name or service not known>