Koozali.org: home of the SME Server

Rebuild LDAP database

Offline osc

  • *
  • 13
  • +0/-0
Rebuild LDAP database
« on: August 12, 2013, 10:19:26 AM »
hi,
my slapd cant start because database failed.
I search already in forum and bugzilla but did not find a solution for SME 8.

I found /etc/e-smith/events/actions/ldap-contacts-rebuild is there something similar in sme 8?

LDAP log
@4000000052052cc438f61994 bdb_db_open: unclean shutdown detected; attempting recovery.
@4000000052052cc438f62164 bdb(x): unable to join the environment
@4000000052052cc438f62934 bdb(x): /var/log/bdb/log.0000000001: No such file or directory
@4000000052052cc438f62d1c bdb(x: PANIC: No such file or directory
@4000000052052cc438f63104 bdb(dx: unable to join the environment
@4000000052052cc438f634ec bdb_db_open: Database cannot be recovered, err -30974. Restore from backup!
@4000000052052cc438f9ea24 bdb(x): DB_ENV->lock_id_free interface requires an environment configured for the locking subsystem
@4000000052052cc438f9f1f4 bdb(x): txn_checkpoint interface requires an environment configured for the transaction subsystem
@4000000052052cc438f9f5dc bdb_db_close: txn_checkpoint failed: Invalid argument (22)
@4000000052052cc438f9f9c4 backend_startup_one: bi_db_open failed! (-30974)
@4000000052052cc438fb0364 slap_startup failed

messages current
IO::Socket::INET: connect:  /var/service/ldap/ldif-fix line 400.

Thx Felix

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Rebuild LDAP database
« Reply #1 on: August 12, 2013, 10:36:42 AM »
you should tell us what you did/what happened..
do you have a backup?

Offline osc

  • *
  • 13
  • +0/-0
Re: Rebuild LDAP database
« Reply #2 on: August 12, 2013, 03:11:56 PM »
hi,
thats my problem I dont know what happened.

Yes I have a Backup but it is 6 months old.
We have some newer backup but it looks like we cant get them to run (Acronis vmprotect).

Thx Felix

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Rebuild LDAP database
« Reply #3 on: August 12, 2013, 05:21:47 PM »
read carefully the man page and try with
/usr/sbin/slapd_db_recover

regarding backup.. you now know that you must change approach.. use, if possible, the standard backup feature.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Rebuild LDAP database
« Reply #4 on: August 13, 2013, 02:10:26 AM »
my slapd cant start because database failed.
I search already in forum and bugzilla but did not find a solution for SME 8.

You should report your problem via bugzilla.