Univention Bugzilla – Bug 35667
Upgrade to UCS 4.0 OpenLDAP fails on database dump&restore
Last modified: 2014-11-26 06:54:24 CET
In experimental upgrades from UCS 3.2-3 tu UCS 4.0-0 the slapd upgrade fails, see log messages below. Looks like we have to adjust something to make the slapd.preinst dump (slapcat) the directory data for the migration from bdb 4.8 to bdb 5.1: ====================================================== slapd (2.4.35-1.164.201407151025) wird eingerichtet ... File: /etc/init.d/slapd Multifile: /etc/ldap/slapd.conf Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.35-1.163.201407092121... done Check database: ... back-bdb was linked against [NOTE: empty string here!], but db-util package does not seem to be installed. Skipping /usr/bin/db_recover. Starting ldap server(s): slapd... FAIL failed. OVER: Loading Translog Overlay OVER: db_init OVER: Configuring Translog Overlay OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener" bdb(dc=ar320i1,dc=qa): Program version 5.1 doesn't match environment version 4.8 bdb_db_open: database "dc=ar320i1,dc=qa" cannot be opened, err -30969. Restore from backup! backend_startup_one (type=bdb, suffix="dc=ar320i1,dc=qa"): bi_db_open failed! (-30969) slap_startup failed. invoke-rc.d: initscript slapd, action "start" failed. dpkg: Fehler beim Bearbeiten von slapd (--configure): Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück ====================================================== But even if I force bdb migration via echo "set slapd/dump_database always" | debconf-communicate univention-upgrade the slapd.preinst aborts with: ====================================================== Dumping to /var/backups/slapd-2.4.35-1.163.201407092121: - directory dc=ar320i1,dc=qa... 52cc4763 slap_sasl_init: auxprop add plugin failed slapcat: slap_init failed! ====================================================== +++ This bug was initially created as a clone of Bug #35359 +++ The OpenLDAP patches should be migrate to UCS 4.
The second issue looks a bit like this here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628237 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665473
There is a incompatibility between the new cyrus-sasl and the old openldap version. Added Breaks: slapd (<= 2.4.38) to libsasl2-2. update works now (i had to install debian-archive-keyring from ucs-4.0 before the update to make the update work)
Ok works, bug affects only development version, so an entry for the release changelog is not required.
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".