Hello,

We have a openldap running on version 2.4, recently we started seeing these kind of error messages in ldap.log.

Jan 14 04:03:03 ldap-cl-node02-vm slapd2.4[32455]: bdb(o=foo): pthread lock failed: Resource deadlock avoided
Jan 14 04:03:03 ldap-cl-node02-vm slapd2.4[32455]: bdb(o=foo): PANIC: Resource deadlock avoided
Jan 14 04:03:03 ldap-cl-node02-vm slapd2.4[32455]: => bdb_idl_insert_key: c_put id failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)
Jan 14 04:03:03 ldap-cl-node02-vm slapd2.4[32455]: bdb(o=foo): PANIC: fatal region error detected; run recovery
Jan 14 04:03:03 ldap-cl-node02-vm slapd2.4[32455]: conn=23402078 op=6: attribute "entryCSN" index add failure

This happened today morning and after restarting, it's started working fine for few hours. And then we saw these error messages in the logs, and crashed again.

Jan 14 13:35:15 ldap-cl-node02-vm slapd2.4[1397]: bdb(o=foo): PANIC: Invalid argument
Jan 14 13:35:15 ldap-cl-node02-vm slapd2.4[1397]: => bdb_idl_insert_key: c_put id failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)
Jan 14 13:35:15 ldap-cl-node02-vm slapd2.4[1397]: bdb(o=foo): PANIC: fatal region error detected; run recovery

Did anybody face this issue, and what will be the resolution. Please help me.

Regards,

chandu