Univention Bugzilla – Bug 43075
appcenter/prudence/docker/$APP not set during update from 4.0-5 to 4.1-4
Last modified: 2016-12-07 13:48:08 CET
UCS master 4.0-5 with mailserver and horde. -> univention-upgrade --noninteractive --ignoressh --ignoreterm --updateto=4.1-99 Check /var/log/univention/updater.log for more information. Running postup.sh script:done. The connection to the repository server failed: Configuration error: host is unresolvable. Please check the repository configuration and the network connection. OK, this is some http/https problem during the update to 4.1-0, i guess -> univention-upgrade --noninteractive --ignoressh --ignoreterm --updateto=4.1-99 Starting univention-upgrade. Current UCS version is 4.1-0 errata0 ... Starting update to UCS version 4.1-4 Horde Groupware Webmail Edition: Version 5.2.7-1 can be upgraded to 5.2.7-3 Starting app upgrade ERROR: app upgrade failed. Please check /var/log/univention/updater.log This should not happen. Horde 5.2.7-1 is non-Docker and 5.2.7-3 is the Docker app. appcenter/prudence/docker is not set. We have to fix this ASAP.
update from 4.0-5 to 4.1-99 The postinst is called correctly 2016-12-01 17:41:29.546742193+01:00 (in joinscript_save_current_version) Joinscript 30univention-appcenter.inst finished with exitcode 0 + [ -x /etc/init.d/slapd ] + [ -x /usr/share/univention-ldap/ldap_setup_index ] + [ -e /var/univention-join/joined ] + [ configure = configure ] + dpkg --compare-versions 5.0.20-50.163.201605031716 lt 5.0.19-45~ + dpkg --compare-versions 5.0.20-50.163.201605031716 lt-nl 5.0.19-7 + dpkg --compare-versions 5.0.20-50.163.201605031716 lt-nl 5.0.20-37 + dpkg --compare-versions 5.0.20-50.163.201605031716 lt-nl 5.0.20-44 + dpkg --compare-versions 5.0.20-50.163.201605031716 lt-nl 5.0.21-20 + python -c from univention.appcenter import AppManager; from univention.appcenter.ucr import ucr_save; for app in AppManager.get_all_locally_installed_apps(): if not app.docker: ucr_save({"appcenter/prudence/docker/%s" % app.id: "yes"}) + exit 0 but at this moment /var/cache/univention-appcenter/ is empty ls -la /var/cache/univention-appcenter/ insgesamt 16 drwxr-xr-x 2 root root 4096 Dez 1 17:39 . drwxr-xr-x 28 root root 4096 Dez 1 17:32 .. -rw-r--r-- 1 root root 2 Dez 1 17:41 .apps.de.json -rw-r--r-- 1 root root 2 Dez 1 17:43 .apps.en.json I guess this didn't exist in 4.0-5 and nobody bothered to update the appcenter cache during the update. A univention-app update before the check should do the trick.
Thanks! univention-appcenter 5.0.23-15.242.201612012253
OK - update from 4.0 -> 4.1 with horde OK - merged to 4.2-0 OK - YAML
<http://errata.software-univention.de/ucs/4.1/351.html>