[Kolab-devel] openldap database corrupted

Bernhard Reiter bernhard at intevation.de
Thu Apr 6 17:22:11 CEST 2006


Am Mittwoch, 5. April 2006 16:41 schrieb Daniel Coletti:
> Hi,
> 	The server where kolab (kolab-server-2.1-beta-1 / OpenPKG version) is
> running shutdown uncleanly yesterday, and the ldap database got corrupted.
> 	I couldn't start ldap server again, it kept saying that the automatic
> recovery couldn't be done because the environment wasn't correct
> (something about wrong versiones of the berkley db - 4.3.29).
> 	I tried a /opt/kolab-2.1/bin/db_recover standing on the
> /kolab/var/openldap/openldap-data directory and the same message of
> ``wrong environment´´ appeared again.
> 	I tried to run ldap again with a greater debug level to post a detail
> mail, but the LDAP started correctly.
>
> Unfortunally, I don't have the error messages, but the problem does
> worries me.
> - If LDAP can't recover its db automaticly, is db_recover (standing at
> the openldap-data directory) the correct way of recovering it manually?

Yes.
Give or take a few options.
You might need to run it as a special user.

> - Is this "wrong environment" message an error or a warning?

I cannot say.
Maybe the corruption was so bad that you should better go with the backup.
At least this is thinkable.




More information about the devel mailing list