[Pkg-openldap-devel] Bug#594711: slapd: Migration of DB format fails during upgrade
Stefan Fritsch
sf at sfritsch.de
Sat Aug 28 15:34:37 UTC 2010
Package: slapd
Version: 2.4.23-4
Severity: grave
When upgrading from 2.4.23-2 to 2.4.23-4, I get a debconf message that
tells me that slapcat failed during upgrade. dpkg then aborts with a
failure.
Also, contrary to the debconf message, the database files are not moved
into /var/backup.
I am guessing that the problem could have to do with slapd not being
started on boot on my system.
#593550 has some info about how to resolve the problem, but I think this
information should be in slapd's README.Debian.
Here is the log from the attempted upgrade:
Preconfiguring packages ...
(Reading database ... 261556 files and directories currently installed.)
Preparing to replace slapd 2.4.23-2 (using .../slapd_2.4.23-4_i386.deb) ...
Stopping OpenLDAP: slapd.
Dumping to /var/backups/slapd-2.4.23-2:
- directory dc=loglevel,dc=info... bdb(dc=loglevel,dc=info): Program version 4.8 doesn't match environment version 4.7
hdb_db_open: database "dc=loglevel,dc=info" cannot be opened, err -30971. Restore from backup!
backend_startup_one (type=hdb, suffix="dc=loglevel,dc=info"): bi_db_open failed! (-30971)
slap_startup failed
failed.
dpkg: error processing /var/cache/apt/archives/slapd_2.4.23-4_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.23-4... done.
insserv: warning: current start runlevel(s) (3 4 5) of script `slapd' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 6) of script `slapd' overwrites defaults (0 1 6).
Errors were encountered while processing:
/var/cache/apt/archives/slapd_2.4.23-4_i386.deb
nothing to commit (working directory clean)
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages slapd depends on:
ii adduser 3.112 add and remove users and groups
ii coreutils 8.5-1 GNU core utilities
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdb4.8 4.8.30-1 Berkeley v4.8 Database Libraries [
ii libgnutls26 2.8.6-1 the GNU TLS library - runtime libr
ii libldap-2.4-2 2.4.23-4 OpenLDAP libraries
ii libltdl7 2.2.6b-2 A system independent dlopen wrappe
ii libperl5.10 5.10.1-14 shared Perl library
ii libsasl2-2 2.1.23.dfsg1-6 Cyrus SASL - authentication abstra
ii libslp1 1.2.1-7.8 OpenSLP libraries
ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers libra
ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip
ii perl [libmime-base64-perl 5.10.1-14 Larry Wall's Practical Extraction
ii psmisc 22.12-1 utilities that use the proc file s
ii unixodbc 2.2.14p2-2 ODBC tools libraries
Versions of packages slapd recommends:
ii libsasl2-modules 2.1.23.dfsg1-6 Cyrus SASL - pluggable authenticat
Versions of packages slapd suggests:
ii ldap-utils 2.4.23-4 OpenLDAP utilities
-- debconf information:
slapd/tlsciphersuite:
* shared/organization: lan
* slapd/upgrade_slapcat_failure:
slapd/backend: HDB
* slapd/allow_ldap_v2: false
* slapd/no_configuration: false
slapd/move_old_database: true
slapd/suffix_change: false
* slapd/dump_database_destdir: /var/backups/slapd-VERSION
* slapd/domain: loglevel.info
slapd/password_mismatch:
slapd/invalid_config: true
slapd/slurpd_obsolete:
* slapd/dump_database: when needed
slapd/purge_database: false
More information about the Pkg-openldap-devel
mailing list