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

After a db corruption LDAP (db recovered) starts, then dies.




$OpenLDAP: slapd 2.3.19 (Jul 28 2006 17:19:27) - opensuse 10.1


Hi,

Yesterday my LDAP was working, today I tried to connect, no success, and after a few tries, decided to check, it was not running. I was not able to start it, logs said bdb was corrupted. I used db_recover, no success again. Then I read several documents and got the bdb working again, with the ldap service stopped I rebuilt the indexes with no error messages (slapindex -v). What I did was to remove every file from /var/lib/ldap/, except for DB_CONFIG and id2entry.bdb. The problem was after a machine reboot the ldap service started, then stopped, with no hints (at least to me) on the log files. Now I made another dumb thing, deleted the old id2entry.bdb and I can't even rebuild indexes with slapindex.


Before, when LDAP was working:

May 29 11:14:58 host slapd[4036]: backend_startup_one: starting "dc=sub,dc=domain,dc=xxx"
May 29 11:14:58 host slapd[4036]: bdb_db_open: dc=sub,dc=domain,dc=xxx
May 29 11:14:58 host slapd[4036]: bdb_db_open: dbenv_open(/var/lib/ldap)
May 29 11:14:58 host slapd[4036]: slapd starting
May 29 11:14:59 host slapd[4036]: connection_get(12)
May 29 11:14:59 host slapd[4036]: connection_get(12): got connid=0


----

Today, after reboot and all said above (it starts, then shuts down with no hints):

Jun 1 11:31:28 host slapd[3234]: backend_startup_one: starting "dc=sub,dc=domain,dc=xxx"
Jun 1 11:31:28 host slapd[3234]: bdb_db_open: dc=sub,dc=domain,dc=xxx
Jun 1 11:31:28 host slapd[3234]: bdb_db_open: dbenv_open(/var/lib/ldap)
Jun 1 11:31:29 host slapd[3234]: slapd starting
Jun 1 11:31:29 sono slapd[3234]: daemon: added 4r
Jun 1 11:31:29 sono slapd[3234]: daemon: added 7r
Jun 1 11:31:29 sono slapd[3234]: daemon: added 8r
----


 thanks for you time,

 lauro

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.