Bug 55201 - Update to UCS 5.0-0 fails due to "empty" fetchmailrc with univention-ox-fetchmail installed
Update to UCS 5.0-0 fails due to "empty" fetchmailrc with univention-ox-fetch...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 52923
Blocks:
  Show dependency treegraph
 
Reported: 2022-09-13 18:29 CEST by Erik Damrose
Modified: 2023-09-30 07:26 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key 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.286
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022080921000684
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 Erik Damrose univentionstaff 2022-09-13 18:29:25 CEST
When univention-ox-fetchmail is installed, the update to UCS 5 may fail, leaving the server package state inconsistent.

The following was implemented into the UCS 5.0-0 preup.sh, with a check for univention-fetchmail. We also need the check for the ox specific package univention-ox-fetchmail, the same error occurs with that package.

+++ This bug was initially created as a clone of Bug #52923 +++

In the postinst script of fetchmail, the fetchmail service is restarted automatically during the update to UCS 5.0-0. If there is no "poll" entry in /etc/fetchmailrc, the restart of the fetchmail polling daemon fails and unfortunately the fetchmail.postinst also fails. This causes an abortion of the update to UCS 5.0-0.

To prevent this problematic behaviour, in preup.sh the fetchmail.service stopped and then disabled via the corresponding UCR variable: 

  ucr set fetchmail/autostart=no

The old value of "fetchmail/autostart" is saved in the UCR variable "fetchmail/autostart/update500" and restored in postup.sh. Also a restart of fetchmail.service is attempted in postup.sh.