I can't restart openldap => "bdb_db_open:
dbenv_open failed: DB_RUNRECOVERY: Fatal error, run database
recovery (-30982)"
So, as you told me, I tried to run the "db_recover -v" in my
2 database directories (cf.
my slapd.conf)
Some details concerning the context of this pb:
This RUN_RECOVERY problem occures when I try to make a "cold"
restore
(slapadd command) of my 2 databases (cf. my restore script:
dbRestore.txt)
"cold" restore => It means I stopped openldap before
starting restore
BUT I have always my client API which is running and
which try
to contact openldap for a query (load tests)
I precise that my ldif files are correct too.
Here are the traces concerning my "cold" restore:
....
bdb(ou=INDEXES,o=alcatel,c=fr): txn_begin interface requires an environment
configured for the transaction subsystem
=> bdb_tool_entry_put: txn_begin failed: Invalid argument (22)
slapadd: could not add entry
dn="mail=\2B84903955507/type=PLMN@mms.mobifone.vn,ou=range24,ou=mail,ou=INDEXES,o=alcatel,c=fr"
(line=254383):
txn_begin failed: Invalid argument (22)
bdb(ou=INDEXES,o=alcatel,c=fr): txn_begin interface requires an environment
configured for the transaction subsystem
=> bdb_tool_entry_put: txn_begin failed: Invalid argument (22)
slapadd: could not add entry
dn="maillogin=\2B84903955507/type=PLMN@mms.mobifone.vn,ou=range24,ou=imaplogin,ou=INDEXES,o=alcatel,c=fr"
(line=254392):
txn_begin failed: Invalid argument (22)
bdb(ou=INDEXES,o=alcatel,c=fr): txn_checkpoint interface requires an
environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
Note: I never have this pb when my client API is stopped.
Moreover, follow this pb of restore, in order to restore correctly
my databases, I have to stop my client API and empty my directory
dedicated to my databases else my restore can't work:
=>cd $openldapDir/var/openldap-data
=>\rm -rf *
So my question is:
why my restore can't correctly work in this particular case ??
Thanks a lot
Helene
Working Environment :
Linux redhat 7.3
Berkley4.1.24
openldap2.1.12
Attachment:
slapd.conf
Description: application/unknown-content-type-conf_auto_file
mv $openldapDir/var/openldap-data/bdb1 $openldapDir/var/openldap-data/bdb1.old mkdir $openldapDir/var/openldap-data/bdb1 mv $openldapDir/var/openldap-data/bdb2 $openldapDir/var/openldap-data/bdb2.old mkdir $openldapDir/var/openldap-data/bdb2 $openldapDir/sbin/slapadd -l /tmp/index-backup.ldif -f $openldapDir/etc/openldap/slapd.conf -d 256 -b "ou=CONTENT,o=alcatel,c=fr" $openldapDir/sbin/slapadd -l /tmp/content-backup.ldif -f $openldapDir/etc/openldap/slapd.conf -d 256 -b "ou=INDEXES,o=alcatel,c=fr"