=^.^=

ClearOS Complains of Down or Missing LDAP Service

karma

If you find yourself unable to load certain parts of the ClearOS webconfig because they complain of LDAP problems, or if you experience inconsistent results authenticating with one or more services, check slapd:

service ldap restart Stopping slapd: [FAILED] /var/lib/ldap/log.0000000005 is not owned by "ldap"[WARNING] Checking configuration files for slapd: [FAILED] bdb_db_open: database "cn=accesslog": unclean shutdown detected; attempting recovery. bdb_db_open: database "cn=accesslog": recovery skipped in read-only mode. Run manual recovery if errors are encountered. bdb(dc=router,dc=domain,dc=com): /var/lib/ldap/log.0000000005: log file unreadable: Permission denied bdb(dc=router,dc=domain,dc=com): PANIC: Permission denied bdb(dc=router,dc=domain,dc=com): Invalid log file: log.0000000005: DB_RUNRECOVERY: Fatal error, run database recovery bdb(dc=router,dc=domain,dc=com): PANIC: DB_RUNRECOVERY: Fatal error, run database recovery bdb(dc=router,dc=domain,dc=com): unable to join the environment bdb_db_open: database "dc=router,dc=domain,dc=com" cannot be opened, err -30975. Restore from backup! backend_startup_one: bi_db_open failed! (-30975) slap_startup failed (test would succeed using the -u switch) stale lock files may be present in /var/lib/ldap/accesslog[WARNING] ls -lsah /var/lib/ldap/log.0000000005 11M -rw-r----- 1 root root 10M Dec 12 09:18 /var/lib/ldap/log.0000000005 ls -lsah /var/lib/ldap log.0000000004 log.0000000005 ls -lsah /var/lib/ldap/log.0000000004 11M -rw------- 1 ldap ldap 10M Oct 4 2021 /var/lib/ldap/log.0000000004 chown ldap:ldap /var/lib/ldap/log.0000000005 service ldap restart Stopping slapd: [FAILED] Checking configuration files for slapd: [WARNING] bdb_db_open: database "cn=accesslog": unclean shutdown detected; attempting recovery. bdb_db_open: database "cn=accesslog": recovery skipped in read-only mode. Run manual recovery if errors are encountered. config file testing succeeded Starting slapd: [ OK ] service ldap restart Stopping slapd: [ OK ] Starting slapd: [ OK ]

Comments

There are no comments for this item.