1

Topic: Need Help

Iredmail 5.x on iRedOS 5.x using ldap

>/etc/init.d/ldap start

/var/lib/ldap/iredmail.org/__db.006 is not owned by "ldap" [WARNING]
/var/lib/ldap/iredmail.org/__db.005 is not owned by "ldap" [WARNING]
/var/lib/ldap/iredmail.org/__db.002 is not owned by "ldap" [WARNING]
/var/lib/ldap/iredmail.org/__db.001 is not owned by "ldap" [WARNING]
/var/lib/ldap/iredmail.org/__db.003 is not owned by "ldap" [WARNING]
/var/lib/ldap/iredmail.org/__db.004 is not owned by "ldap" [WARNING]
Checking configuration files for slapd:  bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered.
bdb_db_open: Database cannot be opened, err 13. Restore from backup!
bdb(dc=iredmail,dc=org): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
backend_startup_one: bi_db_open failed! (13)
slap_startup failed (test would succeed using the -u switch)
                                                           [FAILED]
stale lock files may be present in /var/lib/ldap/iredmail.o[WARNING]

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Need Help

Check the log:

/var/lib/ldap/iredmail.org/__db.006 is not owned by "ldap" [WARNING]

3

Re: Need Help

after chown -R ldap *

> /etc/init.d/ldap start
Checking configuration files for slapd:  bdb_db_open: unclean shutdown detected; attempting recovery.
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered.
bdb(dc=iredmail,dc=org): PANIC: fatal region error detected; run recovery
bdb_db_open: Database cannot be opened, err -30974. Restore from backup!
bdb(dc=iredmail,dc=org): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
backend_startup_one: bi_db_open failed! (-30974)
slap_startup failed (test would succeed using the -u switch)
                                                           [FAILED]
stale lock files may be present in /var/lib/ldap/iredmail.o[WARNING]

4

Re: Need Help

could you please start openldap in command line and paste all output messages?

# slapd -u ldap -g ldap -d 256

5

Re: Need Help

I solved:

slapd_db_recover -v
3 time


What do you think about schedule:

slapd_db_hotbackup -c -h /var/lib/ldap/iredmail.org -b /var/lib/ldap/bk_Iredmail_org