[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP 2.3.12 runtime problem with BerkeleyDB Library



I, too, experienced the same problem and discovered it to be that slapd was getting linked against libdb-4.2.a and not libdb-4.2.so. hyc (Howard Chu) told me it was a bug in libtool.

Check out ITS#3977, apply Howard's diff (from response #11).
Re-run configure and rebuild, all should be well.

Quanah Gibson-Mount wrote:


--On Wednesday, November 23, 2005 11:26 AM -0600 Sudhakar <sudhakar@co.brazos.tx.us> wrote:

I have both OpenLDAP 2.3.11 and OpenLDAP 2.3.12 compiled on a Suse 9.3
box with the same configure line. 2.3.11 compiles and runs fine without
any problems. 2.3.12 on the other hand compiles fine too but when I try
to run it it throws the following error in the logs.

Nov 23 11:22:00 dev1 slapd[22700]: bdb_db_open: unclean shutdown
detected; attem pting recovery.
Nov 23 11:22:00 dev1 slapd[22700]: bdb_db_open:
dbenv_open(/opt/openldap/2.3.12/ var/openldap-data)
Nov 23 11:22:00 dev1 slapd[22700]: bdb(o=mycompany): Berkeley DB li brary
configured to support only private environments
Nov 23 11:22:00 dev1 slapd[22700]: bdb_db_open: Recovery needed but
environment  is missing - assuming recovery was done manually...
Nov 23 11:22:00 dev1 slapd[22700]: bdb(o=mycompany): Berkeley DB li brary
configured to support only private environments
Nov 23 11:22:00 dev1 slapd[22700]: bdb_db_open: dbenv_open failed:
Invalid argum ent (22)
Nov 23 11:22:00 dev1 slapd[22700]: backend_startup_one: bi_db_open
failed! (22)
Nov 23 11:22:00 dev1 slapd[22700]: slapd shutdown: initiated
Nov 23 11:22:00 dev1 slapd[22700]: ==> unique_close
Nov 23 11:22:00 dev1 slapd[22700]: slapd destroy: freeing system
resources.
Nov 23 11:22:00 dev1 slapd[22700]: slapd stopped.
Nov 23 11:22:00 dev1 slapd[22700]: connections_destroy: nothing to
destroy.


Looks like you possibly compiled against a different BDB library.

You may try this:

Shut down slapd
cd to the database directory
run "db_recover" (using the db_recover binary that matches the version of BDB you are using)
remove the "alock file"
Start slapd (2.3.12)


--Quanah


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html