Bug 53125 - 4.4 Systems may hang when trying to install DefaultPackagesMaster on 5.0 Primary
4.4 Systems may hang when trying to install DefaultPackagesMaster on 5.0 Primary
Status: NEW
Product: UCS
Classification: Unclassified
Component: UMC - 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-04-20 00:41 CEST by Dirk Wiesenthal
Modified: 2021-05-27 20:21 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
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 Dirk Wiesenthal univentionstaff 2021-04-20 00:41:12 CEST
The UMC commands changed in 4.4 -> 5.0.

Therefore, a 5.0 system does not accept a connection from 4.4. But... 4.4 does not open a connection correctly, bypassing the version check that would tell the 4.4 system that it should not continue. Instead, it continues. And fails.

Now you see a lot of:

20.04.21 00:06:13.822  MODULE      ( WARN    ) : master30.intranet.wiesenthal.de: appcenter/progress returned an error: 422 on master30.intranet.wiesenthal.de (command/appcenter/progress): {u'status': 422, u'message': u'1 Fehler aufgetreten', u'traceback': None, u'location': u'https://master30.intranet.wiesenthal.de/univention/command', u'result': {u'0': {u'progress_id': u'Argument erforderlich'}}}

in the 4.4's umc-appcenter.log. The backend does not know to to handle that and retries indefinitely.

Also this is there:

20.04.21 00:06:13.915  MODULE      ( WARN    ) : Exception during install fetchmail: not enough arguments for format string


We have to fix the error handling in 4.4
Comment 1 Dirk Wiesenthal univentionstaff 2021-04-20 00:44:37 CEST
(In reply to Dirk Wiesenthal from comment #0)
> 20.04.21 00:06:13.915  MODULE      ( WARN    ) : Exception during install
> fetchmail: not enough arguments for format string

This is:

MODULE.error('%s: Remote App Center cannot be contacted for more than %d seconds. Maybe just a long Apache Restart? Presume failure! Check logs on remote machine, maybe installation was successful.' % number_failures_max)
Comment 2 Dirk Wiesenthal univentionstaff 2021-04-20 00:53:14 CEST
After patching my server, I now get:

20.04.21 00:52:19.116  MODULE      ( ERROR   ) : master30.intranet.wiesenthal.de: Remote App Center cannot be contacted for more than 20 seconds. Maybe just a long Apache Restart? Presume failure! Check logs on remote machine, maybe installation was successful.
20.04.21 00:52:19.116  MODULE      ( ERROR   ) : master30.intranet.wiesenthal.de: Unable to install [u'univention-fetchmail-schema'] on master30.intranet.wiesenthal.de. Check /var/log/univention/management-console-module-appcenter.log on the host and this server. All errata updates have been installed on master30.intranet.wiesenthal.de?
20.04.21 00:52:19.116  MODULE      ( WARN    ) : Installing extension of LDAP schema for fetchmail seems to have failed on DC Master master30.intranet.wiesenthal.de


4.4 system still hangs...
Comment 4 Nico Gulden univentionstaff 2021-05-27 16:25:18 CEST
There are only OpenProject and SuiteCRM left as AppBox apps based on UCS 4.3. I'd rather invest effort in migrating those apps to a native Docker image.

I furthermore suggest to postpone the fix for this issue until it really gets relevant for UCS users.
Comment 5 Dirk Wiesenthal univentionstaff 2021-05-27 20:21:49 CEST
(In reply to Nico Gulden from comment #4)
> There are only OpenProject and SuiteCRM left as AppBox apps based on UCS
> 4.3. I'd rather invest effort in migrating those apps to a native Docker
> image.
> 
> I furthermore suggest to postpone the fix for this issue until it really
> gets relevant for UCS users.

This bug is about 4.4 Apps with DefaultMasterPackages. E.g., kopano-core or fetchmail.