Hi All,
I installed OpenLDAP 2.3.39 & BDB 4.4.20 backend. Loaded data with slapadd. After that when I restart , I get the below error.
Any pointers to help fix this would be great.
Apr 17 09:44:43 dsx1 slapd[10206]: bdb_db_open: unclean shutdown detected; attempting recovery. Apr 17 09:44:44 dsx1 slapd[10206]: bdb(o=root dn): Log file corrupt at LSN: [10][10485679]\nApr 17 09:44:44 dsx1 slapd[10206]: bdb(o=root dn): PANIC: Invalid argument\nApr 17 09:45:04 dsx1 slapd[10206]: bdb(o=root dn): unable to join the environment\nApr 17 09:45:04 dsx1 slapd[10206]: bdb_db_open: Database cannot be recovered, err -30974. Restore from backup!\nApr 17 09:45:04 dsx1 slapd[10206]: bdb(o=root dn): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem\nApr 17 09:45:04 dsx1 slapd[10206]: bdb(o=root dn): txn_checkpoint interface requires an environment configured for the transaction subsystem\nApr 17 09:45:04 dsx1 slapd[10206]: bdb_db_close: txn_checkpoint failed: Invalid argument (22)\nApr 17 09:45:04 dsx1 slapd[10206]: backend_startup_one: bi_db_open failed! (-30974)\nApr 17 09:45:04 dsx1 slapd[10206]: bdb_db_close: alock_close failed\nApr 17 09:45:04 dsx1 slapd[10206]: slapd stopped.\n
Thanks, Sumith.
"Restore from backup!" is staring you in the face. You make regular backups with slapcat, of course?
Stop slapd -- looks like that part is already done. Then rm all files except for DB_CONFIG in your data directory, and use
slapadd -q -b "o=root dn" -l /path/to/backup.slapcat
and you'll be up and running in no time...
On Thu, 17 Apr 2008, Sumith Narayanan wrote:
Hi All,
I installed OpenLDAP 2.3.39 & BDB 4.4.20 backend. Loaded data with slapadd. After that when I restart , I get the below error.
Any pointers to help fix this would be great.
Apr 17 09:44:43 dsx1 slapd[10206]: bdb_db_open: unclean shutdown detected; attempting recovery. Apr 17 09:44:44 dsx1 slapd[10206]: bdb(o=root dn): Log file corrupt at LSN: [10][10485679]\nApr 17 09:44:44 dsx1 slapd[10206]: bdb(o=root dn): PANIC: Invalid argument\nApr 17 09:45:04 dsx1 slapd[10206]: bdb(o=root dn): unable to join the environment\nApr 17 09:45:04 dsx1 slapd[10206]: bdb_db_open: Database cannot be recovered, err -30974. Restore from backup!\nApr 17 09:45:04 dsx1 slapd[10206]: bdb(o=root dn): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem\nApr 17 09:45:04 dsx1 slapd[10206]: bdb(o=root dn): txn_checkpoint interface requires an environment configured for the transaction subsystem\nApr 17 09:45:04 dsx1 slapd[10206]: bdb_db_close: txn_checkpoint failed: Invalid argument (22)\nApr 17 09:45:04 dsx1 slapd[10206]: backend_startup_one: bi_db_open failed! (-30974)\nApr 17 09:45:04 dsx1 slapd[10206]: bdb_db_close: alock_close failed\nApr 17 09:45:04 dsx1 slapd[10206]: slapd stopped.\n
Thanks, Sumith.
--On Thursday, April 17, 2008 3:24 PM -0400 Aaron Richton richton@nbcs.rutgers.edu wrote:
"Restore from backup!" is staring you in the face. You make regular backups with slapcat, of course?
Well, what caused it to corrupt in the first place? Perhaps this DB is being put into NFS? The "interface requires an environment configured for the locking subsystem" is a big red flag.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org