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

Re: DB_NOTFOUND: No matching key/data pair found



Hi,

every time this method screwed up for me it was permissions on the
directory. You might like to check them.

dennis
> Hi,
>   I was playing with ldapadd and ldapadelete to add
> and remove entries in my directory, but as soon as my
> test entries began to grow, I decided to just "rm -rf"
> the whole /usr/local/openldap/var/openldap-data. Next,
> I will kill the slapd process, then create another
> openldap-data directory again and then rerun the
> slapd. For quite some time, this technique worked for
> me. After launching the slapd, it begins creating db
> files in openldap-data directory. Then I could just do
> the ldapadd -f my.ldif again and all entries will be
> added to the database. But then one time I did this
> technique again, I was surprise to findout that
> ldapadd failed giving this error message:
>
> gaheris# ldapadd -f camlann.ldif
> SASL/GSSAPI authentication started
> SASL username: matato@CAMLANN.PREGI.NET
> SASL SSF: 56
> SASL installing layers
> adding new entry "dc=camlann,dc=pregi,dc=net"
> ldap_add: No such object (32)
>
> Looking at my /var/log/debug, I can see some error
> messages like these:
>
> SASL [conn=2] Failure: Could not open db
>
>
> ber_get_next on fd 12 failed errno=35 (Resource
> temporarily unavailable)
>
> bdb_dn2id: get failed: DB_NOTFOUND: No matching
> key/data pair found (-30989)
>
>
> I tried fsck'ing the partition as I suspect it to have
> a corrupted filesystem but it didn't do anything.
>
> I have attached here my debug.log. I hope it can help
> you troubleshoot my problem.
>
> Thanks!
>
>
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Make Yahoo! your home page
> http://www.yahoo.com/r/hs
> -----------------
> Utiba Pty Ltd
> This message has been scanned for viruses and
> dangerous content by Utiba mail server and is
> believed to be clean.
>
>



-----------------
Utiba Pty Ltd 
This message has been scanned for viruses and
dangerous content by Utiba mail server and is 
believed to be clean.