Hello,
I've been going crazy over this, but I could not find any reason for this:
I have a backup script which uses slapcat to backup OpenLDAP objects and directories. But, after rebooting any one of my servers, it faces the following error:
The only solution is to restart slapd service once, then slapcat works fine after that.
Note that querying LDAP directories work just fine even when slapcat doesn't.
I did not have this problem with bdb backend. This problem appeared after replacing it with mdb since it was deprecated.
Any ideas or experience on this?
I've been going crazy over this, but I could not find any reason for this:
I have a backup script which uses slapcat to backup OpenLDAP objects and directories. But, after rebooting any one of my servers, it faces the following error:
Code:
55bf0d2c mdb_db_open: database "dc=domain,dc=net" cannot be opened: No such file or directory (2). Restore from backup!
55bf0d2c backend_startup_one (type=mdb, suffix="dc=domain,dc=net"): bi_db_open failed! (2)
slap_startup failed
The only solution is to restart slapd service once, then slapcat works fine after that.
Note that querying LDAP directories work just fine even when slapcat doesn't.
I did not have this problem with bdb backend. This problem appeared after replacing it with mdb since it was deprecated.
Any ideas or experience on this?