Univention Bugzilla – Bug 39287
univention-upgrade should suggest App Center updates: fails if version does not exist
Last modified: 2023-03-25 06:51:06 CET
Jenkins regressions 4.0-3: The tests set version/{version,patchlevel,erratalevel} to some specific values to test the updater functionality. If the corresponding App center files don't exist, the functions to test for available App updates fail **** Starting univention-updater with parameter=['/usr/share/univention-updater/univention-updater', 'net'] Version=4.1 Patchlevel=0 starting net mode --->DBG:update_available(mode=net, cdrom_mount_point=/cdrom, iso=None) Checking network repository System is up to date (UCS 4.1-0) Starting univention-upgrade. Current UCS version is 4.1-0 errata0 Checking for local repository: skipped Checking for release updates: none Checking for package updates: none Checking for app updates: Downloading "https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz"... Traceback in univention-upgrade: Traceback (most recent call last): File "/usr/sbin/univention-upgrade", line 442, in main update_available = performUpdate(options, checkForUpdates=True, silent=False) File "/usr/sbin/univention-upgrade", line 279, in performUpdate if do_app_updates(options, checkForUpdates, silent): File "/usr/sbin/univention-upgrade", line 315, in do_app_updates new_apps = list(app_upgrade.iter_upgradable_apps()) File "/usr/lib/pymodules/python2.7/univention/appcenter/actions/upgrade.py", line 62, in iter_upgradable_apps for app in _Application.all_installed(package_manager): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 752, in all_installed for app in cls.all(force_reread=force_reread, only_local=only_local, localize=localize): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 775, in all cls.sync_with_server() File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 607, in sync_with_server raise AppcenterServerContactFailed(exc) AppcenterServerContactFailed: Error while contacting the App Center server. https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz could not be downloaded. This seems to be a problem with the App Center server. Please try again later. $ wget https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz --2015-08-26 17:50:45-- https://appcenter.software-univention.de/meta-inf/4.1/index.json.gz Auflösen des Hostnamen »appcenter.software-univention.de (appcenter.software-univention.de)«... 176.9.114.147, 2a01:4f8:151:6489::2 Verbindungsaufbau zu appcenter.software-univention.de (appcenter.software-univention.de)|176.9.114.147|:443... verbunden. HTTP-Anforderung gesendet, warte auf Antwort... 404 Not Found 2015-08-26 17:50:46 FEHLER 404: Not Found. +++ This bug was initially created as a clone of Bug #38697 +++
So, it is a problem of the test cases, isn't it?
(In reply to Stefan Gohmann from comment #1) > So, it is a problem of the test cases, isn't it? I wouldn't say so?! The exception should be catched in univention-updater. (/me did not look at the code + test cases).
Bug #30417: The updater will now just ignore that Exception *** This bug has been marked as a duplicate of bug 30417 ***
For this bug is no separate QA needed.