[Date Prev][Date Next]
Re: losing database on shutdown
I ran the slapd with -d 255 and tried to do an ldapsearch like:
ldapsearch -b 'dc=myorg,dc=com' 'cn=*'
And I received a strange error on the debug output.:
=> dn2id( "DC=MYORG,DC=COM" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
<= ldbm_cache_open NULL "/usr/local/var/openldap-ldbm/dn2id.dbb" errno 17
reason "File exists")
<= dn2id could not open dn2id.dbb
What does this mean. Is it trying to overwrite it?
Another strange thing.:
On restarting the slapd, if I try to do a lookup nothing is returned.
So I tried to add the data again using:
ldapadd -f my_ldif_format.file -D "cn=Manager,dc=myorg,dc=com" -v -c -W
And I get :
ldap_add: Operations error
But then if I try to do a lookup , it succeeds!!
I am puzzled and lost.
----- Original Message -----
From: William L Anderson <firstname.lastname@example.org>
To: Ameet Chaubal <email@example.com>
Sent: Tuesday, June 20, 2000 11:16 AM
Subject: losing database on shutdown
> Ameet, I have the same environment as you, and have not seen this
> here are a couple of ideas of the top of my head:
> 1. you're sure that there is data in id2entry.dbb?
> 2. is schemacheck on in slapd.conf? this helps insure that added
> entries only have the attributes specified for defined objectclasses.
> 3. are you logging slapd activity? sometimes the logs can be very
> helpful. I have loglevel set to 256 in slapd.conf.
> 4. try running with full debug turned on in a scrolling shell window:
> /usr/local/libexec/slapd -d 255
> 5. try setting the database directory permissions to 755?
> Bill Anderson