Univention Bugzilla – Bug 39683
Update to UCS 4.1 fails due to failing slapd start
Last modified: 2018-08-06 17:34:06 CEST
updater.log: ... slapd (2.4.42+dfsg-2.207.201509161547) wird eingerichtet ... ... invoke-rc.d: initscript slapd, action "start" failed. dpkg: Fehler beim Bearbeiten von slapd (--configure): Unterprozess installiertes post-installation-Skript gab den Fehlerwert 2 zurück Trigger für python-support werden verarbeitet ... Fehler traten auf beim Bearbeiten von: slapd E: Sub-process /usr/bin/dpkg returned an error code (1) Error: Failed to execute "apt-get -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-overwrite -o DPkg::Options::=--force-overwrite-dir --trivial-only=no --assume-yes --quiet=1 -u dist-upgrade" exitcode of univention-updater: 1 ERROR: update failed. slapd start failed because there was already a running slapd process. This is caused by listener modules, which perform a slapd graceful-restart instead of a crestart. We should adapt umc-service-providers.py and ldap_extension.py
I've changed the following packages: - univention-directory-logger/debian/post* r65019 + Changelog (r65025) - univention-saml/univention-saml-schema.postinst: r65020 + Changelog (r65025) - management/univention-management-console-frontend/92univention-management-console-web-server.inst: r65021 + No changelog, code is new - management/univention-ldap/listener/ldap_extension.py: r65022 + Changelog (r65025) - management/univention-management-console/umc-service-providers.py: r65023 + No changelog, code is new
It happened again but I don't see a slapd restarted triggered by any listener module, join script or package upgrade. I'll check and modify the slapd postinst.
r15407: The slapd is now stopped in the postinst before it will start again.
* r15407: Ok, despite beeing run with set -e the stop works: /etc/init.d/slapd stop; /etc/init.d/slapd stop && echo ok -> ok reopen for this: univention-samba4.prerm still contains a slapd restart. I guess it would be better to crestart there as well. The other remaining restarts are probably not that relevant: * univention-ad-connector-exchange.postinst * univention-directory-manager-module-example-schema.postinst * univention-demo-configuration.postinst * univention-demo-configuration.postrm The hard restart in univention-ldap-server.postinst is ok. Changelog entries are Ok.
(In reply to Arvid Requate from comment #4) > reopen for this: > > univention-samba4.prerm still contains a slapd restart. I guess it would be > better to crestart there as well. Fixed with: r65147 Changelog: r65148
Ok.
UCS 4.1 has been released: https://docs.software-univention.de/release-notes-4.1-0-en.html https://docs.software-univention.de/release-notes-4.1-0-de.html If this error occurs again, please use "Clone This Bug".