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

Re: Slapd Not getting started after changing the "directory" value in slapd.conf!!!!!!!



On Thursday 27 March 2008 14:18:19 Padmavathi Dt wrote:
> Hii List,
>
> I have changed the value of " directory" directive under database section
> of my slapd.conf file of openldap-2.2.13 (/var/lib/ldap) to the one
> previously used by our openldap-2.4.7(/usr/local/var/openldap-data).
> My berkeley db version is 4.6.21...

While that may be true, the OpenLDAP binaries you have installed are linked 
against 4.2 (and I'm guessing you're running RHEL4 then).

> I am not sure if the machine has some other versions of berkeley db
> already installed.(rpm -qa|grep berkeleydb*    has not returned any value)

$ rpm -qR openldap-servers|grep db
libgdbm.so.2
libslapd_db-4.2.so
$ rpm -q --whatprovides libslapd_db-4.2.so
openldap-servers-2.2.13-4


> The error when i start slapd is:( A part)
> /usr/sbin/slapd -d127 -h "ldap:///";
>
> slapd startup: initiated.
> bdb_db_open: dc=bsnl,dc=com
> bdb_db_open: dbenv_open(/usr/local/var/openldap-data)
> bdb(dc=bsnl,dc=com): Program version 4.2 doesn't match environment version
> bdb_db_open: dbenv_open failed: Invalid argument (22)
> backend_startup: bi_db_open(0) failed! (22)
> slapd shutdown: initiated
> ====> bdb_cache_release_all
> bdb(dc=bsnl,dc=com): DB_ENV->lock_id_free interface requires an
> environment conf
> igured for the locking subsystem
> slapd shutdown: freeing system resources.
> bdb(dc=bsnl,dc=com): txn_checkpoint interface requires an environment
> configured
>  for the transaction subsystem
> bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
> slapd stopped.
> connections_destroy: nothing to destroy.


Anyway, regardless of the database versions, the database format changed 
between 2.2 and 2.3, you should reload from ldif (which is the recommended 
method between major versions).

Regards,
Buchan