[Pkg-openldap-devel] Bug#598361: slapd: slapcat gives "unclean shutdown detected; attempting recovery" after squeeze upgrade

Matthijs Mohlmann matthijs at cacholong.nl
Tue Sep 28 13:58:23 UTC 2010


On Sep 28, 2010, at 3:47 PM, Bryan K. Walton wrote:

> Package: slapd
> Version: 2.4.23-6
> Severity: normal
> 
> 
> I've recently upgraded slapd from Lenny to Squeeze.  Nightly, I run
> a slapcat to dump to directory to an LDIF file for backup.  Since
> the upgrade, I now get the following error:
> 
> bdb_db_open: database "dc=i-clic,dc=uihc,dc=uiowa,dc=edu": unclean
> shutdown detected; attempting recovery.
> bdb_db_open: database "dc=i-clic,dc=uihc,dc=uiowa,dc=edu": recovery
> skipped in read-only mode. Run manual recovery if errors are
> encountered.
> 
> I get this error every time.  I also get this error when I run slaptest.
> 
> After doing some research online, I have installed db4.8-util and have
> run:
> 
> db4.8-recover
> db4.8-checkpoint -1
> 
> These commands seem to run fine.  I have verified that my slapd instance
> is using 4.8 (4.8.30).  However, I can immediately run the slapcat or
> slaptest after running the above commands and the same error repeats 
> itself.

Hi,

Do you before you backup, shutdown the slapd process ?

/etc/init.d/slapd stop
slapcat ...
/etc/init.d/slapd start

If you don't, then this is probably the reason for this error.

Regards,

Matthijs Möhlmann






More information about the Pkg-openldap-devel mailing list