Bug 53380 - Package based apps: always register component
Package based apps: always register component
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-06-02 12:25 CEST by Felix Botner
Modified: 2021-06-02 12:26 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.229
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 2021-06-02 12:25:28 CEST
During the installation of package based apps the online component is registered. But if that fails, the appcenter does not repeat the registration on subsequent installations and an error in the sources list is not corrected.

e.g.

-> univention-app install z-push-kopanoRegistering component for z-push-kopano=2.6.2-1
File: /etc/apt/sources.list.d/20_ucs-online-component.list
Module: kopano-cfg
File: /etc/apt/mirror.list
File: /etc/apt/sources.list.d/15_ucs-online-version.list
Ign:1 http://updates.software-univention.de/4.0/maintained 4.0-0/all/ InRelease
...
E: Paket kopano4ucs-z-push kann nicht gefunden werden.
Failed to install the App
Aborting...

-> cat  /etc/apt/sources.list.d/20_ucs-online-component.list 
...
# Configuration error: Network is unreachable: z-push-kopano_20210526115951


so the installation failed, probably a temporary network problem.

But the component is now already registered and we have a "broken" sources list. The next install attempt also fail, because the whole registration/apt-get process is now omitted by the appcenter

-> univention-app install z-push-kopano
Going to install Z-Push for Kopano (2.6.2-1)
Creating data directories for z-push-kopano...
Registering UCR for z-push-kopano
Marking z-push-kopano=2.6.2-1 as installed
Adding localhost to LDAP object
Reloading apache2 configuration (via systemctl): apache2.service.
Registering component for z-push-kopano=2.6.2-1
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
E: Paket kopano4ucs-z-push kann nicht gefunden werden.
Failed to install the App
Aborting...

The app status is "not installed", so now i can neither remove or install the app, unless 

-> ucr commit /etc/apt/sources.list.d/20_ucs-online-component.list
-> apt-get update

At least these last two step should be done by the appcenter on every installation, regardless of the status of the component registration.