[Date Prev][Date Next]
RE: index based search does not work correctly (ITS#2088)
I tried to run db_upgrade, but got errors there, too (perhaps I already
corrupted my data?). Anyway, this was a test setup, so I created a new
data directory and populated LDAP with my test data. Everything seems
to work fine now (i.e. the open error from 2.1.5 is gone and also the
index error from 2.1.4). I still haven't reconstructed the identical
test data. Once I did this, I will rerun the same ldapsearch queries.
This "db_upgrade" is a bit puzzling, though. I read the changelog of
BerkeleyDB and this mentioned that the new format is backward
Database or Log File On-Disk Format Changes:
1. All of the access method database formats changed in the Berkeley
DB 4.1 release (Btree/Recno: version 8 to version 9, Hash: version 7 to
version 8, and Queue: version 3 to version 4). The format changes are
entirely backward compatible, and no database upgrades are needed.
Where is the "you need to run db_upgrade" mentioned?
On Thu, 2002-09-19 at 17:21, Howard Chu wrote:
> I didn't ask you to upgrade BDB. The upgrade from BDB 4.0 to 4.1 involves a
> database format change. You need to run db_upgrade now. Read the Berkeley
> docs before you do anything else or you're likely to lose the database
> Note that OpenLDAP 2.1.5 was just released, so you should use that instead of
> the REL_ENG_2_1 tree (although they were probably identical at the time you
> retrieved them).
> -- Howard Chu
> Chief Architect, Symas Corp. Director, Highland Sun
> http://www.symas.com http://highlandsun.com/hyc
> Symas: Premier OpenSource Development and Support
> > -----Original Message-----
> > From: owner-openldap-bugs@OpenLDAP.org
> > [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
> > firstname.lastname@example.org
> > Sent: Thursday, September 19, 2002 4:42 PM
> > To: openldap-its@OpenLDAP.org
> > Subject: Re: index based search does not work correctly (ITS#2088)
> > Ok, I did a cvs co -r OPENLDAP_REL_ENG_2_1 and built with bdb-4.1.24.
> > However, now I can't even run a single query because slapd dies saying:
> > bdb_open: Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)
> > bdb_db_init: Initializing BDB database
> > bdb(o=tbdnetworks.com): unable to join the environment
> > bdb_db_open: dbenv_open failed: Resource temporarily unavailable (11)
> > backend_startup: bi_db_open(0) failed! (11)
> > bdb(o=tbdnetworks.com): txn_checkpoint interface requires an environment
> > configured for the transaction subsystem
> > bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
> > slapd stopped.
> > Any ideas? Would building against bdb-4.0.14 help?
> > On Wed, 2002-09-18 at 21:40, Howard Chu wrote:
> > > Please try pulling the OpenLDAP 2.1.5 release candidate out of
> > CVS and see if it
> > > has the same problem. There have been a number of index-related
> > fixes since the
> > > 2.1.4 release. Check out the OPENLDAP_REL_ENG_2_1 source from the CVS
> > > repository.
> > >