Bug 52923 - Update to UCS 5.0-0 fails due to "empty" fetchmailrc
Update to UCS 5.0-0 fails due to "empty" fetchmailrc
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Sönke Schwardt-Krummrich
Jürn Brodersen
:
Depends on:
Blocks: 55201
  Show dependency treegraph
 
Reported: 2021-03-16 16:03 CET by Sönke Schwardt-Krummrich
Modified: 2022-09-13 18:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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 Sönke Schwardt-Krummrich univentionstaff 2021-03-16 16:03:07 CET
fetchmail (6.4.0~beta4-3A~5.0.0.202006041019) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/init.d/fetchmail wird installiert ...
Neue Version der Konfigurationsdatei /etc/ppp/ip-down.d/fetchmail wird installiert ...
Neue Version der Konfigurationsdatei /etc/resolvconf/update-libc.d/fetchmail wird installiert ...
Job for fetchmail.service failed because the control process exited with error code.
See "systemctl status fetchmail.service" and "journalctl -xe" for details.
invoke-rc.d: initscript fetchmail, action "restart" failed.
ESC[0;1;31m●ESC[0m fetchmail.service - LSB: init-Script for system wide fetchmail daemon
   Loaded: loaded (ESC]8;;file://ucs-9961/etc/init.d/fetchmail^G/etc/init.d/fetchmailESC]8;;^G; generated)
   Active: ESC[0;1;31mfailedESC[0m (Result: exit-code) since Fri 2021-02-26 15:05:20 CET; 9ms ago
     Docs: ESC]8;;man:systemd-sysv-generator(8)^Gman:systemd-sysv-generator(8)ESC]8;;^G
  Process: 11281 ExecStart=/etc/init.d/fetchmail start ESC[0;1;31m(code=exited, status=1/FAILURE)ESC[0m

Feb 26 15:05:20 ucs-9961 systemd[1]: Starting LSB: init-Script for system wide fetchmail daemon...
Feb 26 15:05:20 ucs-9961 fetchmail[11281]: Starting mail retriever agent: fetchmailfetchmail: no mailservers have been specified.
Feb 26 15:05:20 ucs-9961 fetchmail[11281]:  failed!
Feb 26 15:05:20 ucs-9961 systemd[1]: ESC[0;1;39mESC[0;1;31mESC[0;1;39mfetchmail.service: Control process exited, code=exited, status=1/FAILUREESC[0m
Feb 26 15:05:20 ucs-9961 systemd[1]: ESC[0;1;39mESC[0;1;31mESC[0;1;39mfetchmail.service: Failed with result 'exit-code'.ESC[0m
Feb 26 15:05:20 ucs-9961 systemd[1]: ESC[0;1;31mESC[0;1;39mESC[0;1;31mFailed to start LSB: init-Script for system wide fetchmail daemon.ESC[0m
dpkg: Fehler beim Bearbeiten des Paketes fetchmail (--configure):
 »installiertes fetchmail-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2021-03-16 16:52:58 CET
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.

[5.0-0] 663bc409f6 Bug #52923: disable fetchmail during the update

Package: univention-updater
Version: 15.0.3-27A~5.0.0.202103161652
Branch: ucs_5.0-0
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-03-16 17:45:03 CET
[5.0-0] e0f408bb4e Bug #52923: add changelog entry
Comment 3 Jürn Brodersen univentionstaff 2021-03-18 10:35:15 CET
What I tested:
Upgrade without "poll" entry -> OK no more error
fetchmail is restarted after full upgrade in postup -> OK
fetchmail/autostart is unset again -> OK
changelog -> OK

-> Verified
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2021-03-25 17:43:08 CET
[5.0-0] 16f60b9b77 Bug #52923: redirect stdout+stderr to logfile
Comment 5 Florian Best univentionstaff 2021-05-25 16:03:28 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".