[Pkg-openldap-devel] Bug#595464: slapd: migration to new setup fails

Vincent Danjean vdanjean at debian.org
Wed Sep 8 20:15:55 UTC 2010


On 08/09/2010 21:40, Steve Langasek wrote:
> Hmm, that's strange.  Your bug report also didn't include the debconf
> settings for this system;

The system did not have mail nor reportbug, so I used my laptop (without
slapd installed) and manually corrected generated info (dependencies, ...)
but I forgot to add debconf entries

> can you please provide a copy of the full entry
> for move_old_database in /var/cache/debconf/config.dat?

Name: slapd/move_old_database
Template: slapd/move_old_database
Value: true
Owners: slapd

Note that I manually edited this file to change the value of "Value" from
false to true.
Looking at other entry around, the "seen" flags is *not* set for
slapd/move_old_database.

>>> It is possible to handle this migration by hand if you choose (not a good
>>> idea IMHO, but possible).  You just need to leave the directory in place, so
>>> slapadd has somewhere to write since it won't create the path for you.
> 
>> I do not understand what you say here. I tried to move away my subdirectory
>> (/var/lib/ldap/danjean) as the error message says. Then I got another error
>> message (see my bug report).
> 
> I'm saying that you need to move the *contents* of the directory, and leave
> the *directory* in place.  The error message does say this:  it tells you
> that the problem is "leftover files in <directory>" and to "move away stuff
> in there" (hmm, not a well-worded message, but it's accurate).

Ok, I did not really understand the error message. Moreover, the line before
tell me "Moving old database directories to /var/backups:", so I was thinking
it tried to move the directory itself and (for an unknown reason) failed and
asked me to move it manually.

> The fact that you ended up down this code path *without* explicitly opting
> for it is a problem.  The debconf data will help us determine if we have a
> bug that caused this problem for you.

I'm ok with your current analysis.

  Regards,
    Vincent





More information about the Pkg-openldap-devel mailing list