[Pkg-openldap-devel] Bug#419560: Different problem, same effect

Maximiliano Curia maxy at rivero.com.ar
Wed Apr 18 16:22:53 UTC 2007


Hi,

As I've had problems with slapd before, I upgraded slapd and nothing else.
The problem I've encountered is that slapd did the upgrade, did the chown of
the ldap database files to the new user "openldap". But it didn't do the chown
of the configuration files. So, the postinst script failed as it could not
start the slapd server.

I then did dpkg --configure -a, and slapd stopped when it was trying to backup
the ldap db in /var/backups/dc\=gnuservers\,dc\=com\,dc\=ar-2.2.23-8.ldapdb
(the location of the backup done during the first try).

After moving the backup away, and trying to complete the slapd installation it
failed, once again, because the __db* and the log00001* files had root as owner.
After fixing that, again, it worked.

I then did a full upgrade, and rebooted the machine to see if everything
worked. After the reboot the slapd didn't start. I ran slapd from the command
line and the debug messages were indicating that the log file was broken. So I
removed it, and then I started slapd again. It failed once more because of the
files in the ldap database belonging to root. After chowning, it worked fine
again.

I believe at some stage slapd is running a db4.x_recover -h /var/lib/ldap as
root, and therefore the __db* files get an erroneous owner.

-- 
"EIEIO	Go home and have a glass of warm, dairy-fresh milk"
The GNU C Library Reference Manual, Chapter 2.2, Error Codes
Saludos /\/\ /\ >< `/




More information about the Pkg-openldap-devel mailing list