Bug 54548 - slapd package error during update, if a failed.ldif is present
slapd package error during update, if a failed.ldif is present
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-14 12:09 CET by Christina Scheinig
Modified: 2022-05-23 17:21 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
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.114
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review: Yes
Ticket number: 2022030821000962
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 Christina Scheinig univentionstaff 2022-03-14 12:09:44 CET
After normal package update the slapd could not be configured

dpkg -C shows

Die folgenden Pakete wurden entpackt, aber noch nicht konfiguriert.
Sie müssen mit dpkg --configure oder dem Konfigurations-Menüeintrag in
dselect konfiguriert werden, damit sie ordnungsgemäß funktionieren:
 univention-ldap-acl-slave UCS - LDAP server ACLs for slave servers

Die folgenden Pakete sind nur halb konfiguriert, wahrscheinlich durch
Probleme während der ersten Konfiguration. Die Konfiguration sollte mit
dpkg --configure <Paket> oder mit dem Konfigurations-Menüeintrag in
dselect erneut versucht werden:
 slapd                OpenLDAP server (slapd)

Die folgenden Pakete sind getriggert worden, aber die Triggerverarbeitung
ist noch nicht erfolgt. Triggerverarbeitung kann mit dselect oder
dpkg --configure --pending (oder dpkg --triggers-only) angefordert werden:
 libc-bin             GNU C Library: Binaries 
--------------------------------------------------------------------------------
And following the instructions fail:

:~# dpkg --configure --pending
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von univention-ldap-acl-slave:
 univention-ldap-acl-slave hängt ab von univention-ldap-server (= 15.0.3-10A~4.4.0.202202181321); aber:
  Version von univention-ldap-server auf dem System ist 15.0.3-8A~4.4.0.202112031619.

dpkg: Fehler beim Bearbeiten des Paketes univention-ldap-acl-slave (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für libc-bin (2.24-11+deb9u4) werden verarbeitet ...
slapd (2.4.45+dfsg-1~bpo9+1A~4.4.0.202202111308) wird eingerichtet ...
File: /etc/init.d/slapd
Multifile: /etc/ldap/slapd.conf
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.45+dfsg-1~bpo9+1A~4.4.0.202112020939... done.
[....] Stopping slapd (via systemctl): slapd.serviceWarning: slapd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
. ok 
Job for slapd.service failed because a timeout was exceeded.
See "systemctl status slapd.service" and "journalctl -xe" for details.
dpkg: Fehler beim Bearbeiten des Paketes slapd (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Trigger für libc-bin (2.24-11+deb9u4) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 univention-ldap-acl-slave
 slapd

----------------------------

Caused by the timeout of systemd during failed.ldif import the slapd package could not be configured.

We already had to solve the failed.ldif import a lot.
See this article for the doing, and feel free to file an other bug for this issue.

https://help.univention.com/t/problem-troubleshooting-slapd-during-an-failed-ldif-import/12025

So after the failed.ldif is imported or removed, the slapd can finally be configured.
Comment 1 Ingo Steuwer univentionstaff 2022-04-20 14:55:55 CEST
I suggest to block univention-upgrade in general if a failed.ldif exists, it might lead to other problems also.