OpenLDAP: ldap clients cannot find entries because of database corruption

Solution In Progress - Updated -

Issue

  • The ldap clients like ldapsearch command cannot find entries.
  • The following error messages happen in the slapd/ldap log file.
Jan 25 12:05:24 exampledb slapd[8219]: bdb(): PANIC: fatal region error detected; run recovery 
Jan 25 12:05:24 exampledb slapd[8219]: bdb_db_close: close failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30974) 
Feb  8 16:33:24 exampledb slapd[11088]: bdb(): page 0: illegal page type or format
Feb  8 16:33:24 exampledb slapd[11088]: bdb(): PANIC: Invalid argument
Feb  8 16:33:24 exampledb slapd[11088]: bdb(): PANIC: fatal region error detected; run recovery
  • slapd_db_recover command fixes the errors temporarily. The problem happens again after a while. How should we fix the corruption?

Environment

Red Hat Enterprise Linux
- 5
OpenLDAP
- 2.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content