Univention Bugzilla – Bug 32193
TypeError during univention-upgrade
Last modified: 2013-08-28 13:41:53 CEST
I installed a fresh UCS 3.1-0 errata0 and then did run "univention-upgrade --noninteractive --ignoressh --ignoreterm"
In /var/log/univention/updater.log I had several messages with the following error:
Exception in thread Thread-16:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/usr/lib/python2.6/threading.py", line 484, in run
File "/usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py", line 360, in _download
MODULE.error('Error downloading %s: %s' % url, e)
TypeError: not enough arguments for format string
The upgrade did finish without problems.
The fix for this probably is to alter line 360 in /usr/lib/pymodules/python2.6/univention/management/console/modules/appcenter/app_center.py to the following:
MODULE.error('Error downloading %s: %s' % (url, e))
Thanks for the report!
@Dirk, can you fix it within the next erratum? I don't think we need an extra erratum with this fix only.
Beginner's mistake... but one with no consequences: The download of the initial App Center ini files failed during first installation of the new "Installed Apps" module (UCS 3.1-0 errata0 did not have the caching mechanism - the cache is populated during the update).
The bug in the error handling had no consequences as the function was executed in a thread and would have returned anyway.
The "real problem" (unable to download some files from the App Center server) is presumably a temporary network error and is fixed the first time the App Center module is started in the web frontend. After the ini files have been downloaded, it may be necessary to restart Univention Management Console (for the "Installed Apps" to be recognized), but as this happened in a fresh installation this is probably not necessary.
Changelog updated, YAML updated (we already have Bug#32117 as errata)