$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.
--On Friday, June 01, 2007 12:01 PM -0300 lauro@npd.ufsc.br wrote:
$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.
Deleting id2entry.bdb means you deleted your database. Next time, I'd advise you contact the list before you go deleting files that you don't understand the significance of. I'd also upgrade, many significant bugs have been fixed since 2.3.19 was released.
--Quanah
-- Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-software@openldap.org