ldap server restore failed during upgrade to jaunty
Bug #371023 reported by
MarianoAbsatz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I was doing a release upgrade on a remote server (actually a kvm virtual machine within a remote server).
The virtual machine is only an openldap server with very few packages installed (was created with vmbuilder).
During the update it asked about keeping my modified configuration or installing the mantainer's. Since I had extensively modified the default configuration I opted to keep mine.
It did backup the configuration, but couldn't restore it.
My guess is that this is because, rather than the new cn=config directory type of configuration, I'm using the old slapd.conf method, when the upgrade couldn't find the slapd.d/cn=config directory in the backup, it messed everything up.
affects: | update-manager (Ubuntu) → openldap (Ubuntu) |
To post a comment you must log in.
Some more info. The following was the output I saw in my terminal which helped me to fix the server (fix in next comment):
Configuration file `/etc/default/ slapd' slapd.conf in /var/backups/ slapd-2. 4.11-0ubuntu6. 1... done. slapd-2. 4.11-0ubuntu6. 1:
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** slapd (Y/I/N/O/D/Z) [default=N] ? n
Installing new version of config file /etc/init.d/slapd ...
Backing up /etc/ldap/
Moving old database directories to /var/backups:
- directory o=cejil... done.
Loading from /var/backups/
- directory o=cejil... failed.
Loading the database from the LDIF dump failed with the following slapd.conf/ cn=config. ldif" accessor- perl (0.31-2) ... debianchangelog -perl (1.1.1-2ubuntu1) ... prerm.d/ last-good- boot ...
error while running slapadd:
ldif_read_file: Not a directory for "/etc/ldap/
slapadd: bad configuration directory!
dpkg: error processing slapd (--configure):
subprocess post-installation script returned error exit status 1
Setting up libclass-
Setting up libio-string-perl (1.08-2) ...
Setting up libtimedate-perl (1.1600-9) ...
Setting up libparse-
Setting up ubuntu-minimal (1.140) ...
Setting up grub (0.97-29ubuntu53) ...
Installing new version of config file /etc/kernel/
Setting up linux-image-server (2.6.28.11.15) ... img-2.6. 28-11-server
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
Errors were encountered while processing:
slapd
Could not install the upgrades
The upgrade is now aborted. Your system could be in an unusable
state. A recovery will run now (dpkg --configure -a).
Please report this bug against the 'update-manager' package and dist-upgrade/ in the bug report.
include the files in /var/log/
E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up slapd (2.4.15-1ubuntu3) ... slapd.conf in /var/backups/ slapd-2. 4.11-0ubuntu6. 1... done. slapd-2. 4.11-0ubuntu6. 1:
Backing up /etc/ldap/
Moving old database directories to /var/backups:
Loading from /var/backups/
- directory o=cejil... failed.
Loading the database from the LDIF dump failed with the following slapd.conf/ cn=config. ldif"
error while running slapadd:
ldif_read_file: Not a directory for "/etc/ldap/
slapadd: bad configuration directory!
dpkg: error processing slapd (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
slapd
Upgrade complete
The upgrade has completed but there were errors during the upgrade
process.
Could not install the upgrades
The upgrade is now aborted. Your system could be in an unusable
state. A recovery will run now (dpkg --configure -a).
...