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

db_archive: DB_ENV->log_archive: DB_NOTFOUND: No matching key/data pair found



Hi all,

I'm running OpenLDAP 2.4.11 on a debian lenny box and it seems that I'm
having trouble with the log files. I had a corrupt database some days ago
and needed to restore the database from the backup. The log said:

Jun 28 01:16:59 old slapd[17374]: bdb_db_open: database
"dc=intern,dc=domain,dc=de": unclean shutdown detected; attempting recovery.

Jun 28 01:16:59 old slapd[17374]: bdb_db_open: database
"dc=intern,dc=domain,dc=de": dbenv_open(/var/lib/ldap). 
Jun 28 01:16:59 old slapd[17374]: bdb(dc=intern,dc=domain,dc=de): Ignoring
log file: /var/lib/ldap/log.0000000005: magic number 0, not 40988 
Jun 28 01:16:59 old slapd[17374]: bdb(dc=intern,dc=domain,dc=de): Invalid
log file: log.0000000005: Invalid argument 
Jun 28 01:16:59 old slapd[17374]: bdb(dc=intern,dc=domain,dc=de): PANIC:
Invalid argument 
Jun 28 01:16:59 old slapd[17374]: bdb(dc=intern,dc=domain,dc=de): PANIC:
DB_RUNRECOVERY: Fatal error, run database recovery 
Jun 28 01:16:59 old slapd[17374]: bdb_db_open: database
"dc=intern,dc=domain,dc=de" cannot be recovered, err -30978. Restore from
backup! 
Jun 28 01:16:59 old slapd[17374]: ====> bdb_cache_release_all 
Jun 28 01:16:59 old slapd[17374]: bdb(dc=intern,dc=domain,dc=de):
txn_checkpoint interface requires an environment configured for the
transaction subsystem 
Jun 28 01:16:59 old slapd[17374]: bdb_db_close: database
"dc=intern,dc=domain,dc=de": txn_checkpoint failed: Invalid argument (22). 
Jun 28 01:16:59 old slapd[17374]: backend_startup_one: bi_db_open failed!
(-30978)

So I installed a new OpenLDAP server with the same versions and the same
configuration. The first thing what I found out was that db_archive has some
trouble:

On the new box I get the following results from db_archive:

root@new:/var/lib/ldap# db4.2_archive -sa
/var/lib/ldap/cn.bdb
/var/lib/ldap/dn2id.bdb
/var/lib/ldap/gidNumber.bdb
/var/lib/ldap/givenName.bdb
/var/lib/ldap/id2entry.bdb
/var/lib/ldap/loginShell.bdb
/var/lib/ldap/objectClass.bdb
/var/lib/ldap/sn.bdb
/var/lib/ldap/uid.bdb
/var/lib/ldap/uidNumber.bdb
root@new:/var/lib/ldap# db4.2_archive -la
/var/lib/ldap/log.0000000001
root@new:/var/lib/ldap#

Looks good so far. On the old box I get the following results (there are the
same databases)

root@new:/var/lib/ldap# db4.2_archive -sa
root@new:/var/lib/ldap# db4.2_archive -la
db_archive: DB_ENV->log_archive: DB_NOTFOUND: No matching key/data pair
found
root@new:/var/lib/ldap#

I searched the archive and googled this message, but found nothing that fits
my case.

Hope that someone can give me a hint, solving this issue.

Thanks and kind regards,
				Andreas