[Pkg-openldap-devel] Bug#487211: Bug#487211: slapd: upgrade from 2.3.35 fails looking for ldif

Steve Langasek vorlon at debian.org
Sun Aug 31 18:08:38 UTC 2008


On Sun, Aug 31, 2008 at 04:09:19PM +0200, Giuseppe Sacco wrote:

> Il giorno sab, 28/06/2008 alle 01.37 -0700, Steve Langasek ha scritto:
> [...]
> > Is there any chance you would be able to provide the logs from the earlier
> > part of the upgrade, to show what went wrong?

> I found the very same bug today on updating a machine from etch to
> lenny. The upgrade procedure didn't worked correctly, so aptitude
> stopped and I had to use "apt-get -f install" and "dpkg --configure
> --pending" a few times.

Ok, can *you* show us the log output from the initial upgrade, which is the
information I'm missing to try to understand what happened here?

> Currently I am stuck at this point: old slapd has been removed, ldif was
> not created, I cannot reinstall the old slapd since I cannot downgrade
> libldap to libldap-2.3-0. The new version won't find any ldif and will
> not correctly get configured.

> I cannot downgrade libldap since removing the new version will remove a
> lot of packages I need:

> sgi:~# LC_ALL=C apt-get remove libldap-2.4-2

Why did you not simply run "apt-get install libldap-2.3-0"?  These are
different library SONAMEs, the packages don't conflict.

> I think the bug I found is in preinst: if the dump does not work (in my
> case it doesn't work because a library is missing) then it should fails,
> while it keep going, trying to upgrade, and failing because of missing
> LDIF file.

Please show us the log output.  The preinst script runs with set -e, and
there is code to return a failure if any of the database dumps fail.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org





More information about the Pkg-openldap-devel mailing list