Quote:
Originally Posted by talen888 Hi,
bdb_db_open: dbenv_open(/opt/zimbra/openldap-data)
bdb(): Program version 4.2 doesn't match environment version
bdb_db_open: Database cannot be opened, err 22. Restore from backup!
====> bdb_cache_release_all
bdb(): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
bdb(): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_close: txn_checkpoint failed: Invalid argument (22)
backend_startup_one: bi_db_open failed! (22)
slapd shutdown: initiated
====> bdb_cache_release_all
bdb_db_close: alock_close failed |
The above errors indicate the following:
(a) You are having a conflict for some reason with the BDB version found vs the BDB version used. Zimbra uses BDB 4.2 for its openldap DB.
(b) The alock package is rather unhappy.
Was slapd started accidently as root, perhaps? That may have led to some of the issues, although it is hard to be certain. Do you have any backups (slapcat) of the openldap DB?
Basically at this point, you need to recover the database environment: one would run /opt/zimbra/sleepycat/bin/db_recover as the zimbra user, while slapd is not running, from inside the openldap-data directory. You may also have to remove the "alock" file from inside that directory. Make sure everything in the directory is owned by zimbra:zimbra. Make sure there are no stray slapd processes running. And I'd highly suggest updating your release.

Note that the steps noted here could result in permanent loss of the OpenLDAP DB as it currently exists, which is why I ask about the backup.
--Quanah