Bug 43075 - appcenter/prudence/docker/$APP not set during update from 4.0-5 to 4.1-4
appcenter/prudence/docker/$APP not set during update from 4.0-5 to 4.1-4
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-4-errata
Assigned To: Dirk Wiesenthal
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-30 09:53 CET by Felix Botner
Modified: 2016-12-07 13:48 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.120
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2016-11-30 09:53:16 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.
Comment 1 Felix Botner univentionstaff 2016-12-01 17:51:38 CET
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.
Comment 2 Dirk Wiesenthal univentionstaff 2016-12-02 00:17:27 CET
Thanks!

univention-appcenter 5.0.23-15.242.201612012253
Comment 3 Felix Botner univentionstaff 2016-12-02 13:00:28 CET
OK - update from 4.0 -> 4.1 with horde
OK - merged to 4.2-0
OK - YAML
Comment 4 Janek Walkenhorst univentionstaff 2016-12-07 13:48:08 CET
<http://errata.software-univention.de/ucs/4.1/351.html>