Topic: OpenLDAP BDB startup issues/crashes after installing in fbsd 9.1 jail
==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: FreeBSD 9.1 / i386 / ZFS / Jail
- Related log if you're reporting an issue:
bdb_db_open: database "dc=...,dc=.." cannot be opened, err 22. Restore from backup!
txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_close: database "dc=...,dc=..": txn_checkpoint failed: Invalid argument (22).
backend_startup_one (type=bdb, suffix="dc=...,dc=.."): bi_db_open failed! (22)
bdb_db_close: database "dc=...,dc=..": alock_close failed
slapd stopped.
sometimes thares another line:
bdb(dc=...,dc=..): unable to allocate memory for mutex; resize mutex region
====
Hello
I have a strange issue with OpenLDAP configured by iRedMail installation.
After the setup finishes, I am able to restart the jail and connect to every web interface, create users, connect to port 25 etc etc.
But after stopping and starting the jail again, I'm getting the slapd issue above.
I'm new to bdb, so if this is not the right place, please direct me to some different list, anyway it happened second time.
At first, I was thinking that I made some mistake during install, so I reinstalled iRedMail, but it happened again.
When I install OpenLdap separately in another jail, I have no issues.
Seems to me like BDB issue, but I don't know how to resize the mustex region (if needed) or restore the db from backup.
Thank you
P.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.