Univention Bugzilla – Bug 52923
Update to UCS 5.0-0 fails due to "empty" fetchmailrc
Last modified: 2022-09-13 18:29:25 CEST
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
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
[5.0-0] e0f408bb4e Bug #52923: add changelog entry
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
[5.0-0] 16f60b9b77 Bug #52923: redirect stdout+stderr to logfile
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".