[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapindex corrupt my db :=(



Hi all,

I have a rather small db with arround 2000 entries.

1. After running slapindex, my db was corrupt and slapd can not startup,
here's error log :

Jul  5 15:58:38 ventura slapd[3707]: bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
Jul  5 15:58:38 ventura slapd[3707]: bdb_db_init: Initializing BDB database
Jul  5 15:58:38 ventura slapd[3708]: bdb(dc=example,dc=com): fatal region error detected; run recovery
Jul  5 15:58:38 ventura slapd[3708]: bdb_db_open: dbenv_open failed: DB_RUNRECOVERY: Fatal error, run database recovery (-30982)
Jul  5 15:58:38 ventura slapd[3708]: backend_startup: bi_db_open(0) failed! (-30982)
Jul  5 15:58:38 ventura slapd[3708]: bdb(dc=example,dc=com): txn_checkpoint interface requires an environment configured for the transaction subsystem
Jul  5 15:58:38 ventura slapd[3708]: bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)

This is not an accident, because i run it 4 times and still receiving
the same error when i run slapindex.

2. When i have this in slapd.conf:
# Indices to maintain
index  objectClass,uid,uidNumber,gidNumber,memberUid,mailExternalAccess   eq
index  mail,mailAlternateAddress,mailLocalAddress eq,subinitial
index  cn,surname,givenname,fileAs       eq,subinitial

should i run slapindex manually or openldap will automatically do
indexing of every entries? if yes, when?

Tks.

--beast