Gentoo Archives: gentoo-user

From: Naga <nagatoro@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Fail to start slapd after reboot
Date: Tue, 25 Sep 2007 10:06:08
Message-Id: 200709251152.39499.nagatoro@gmail.com
In Reply to: Re: [gentoo-user] Fail to start slapd after reboot by Mick
1 On Tuesday 25 September 2007 09:34:58 Mick wrote:
2 > On Sunday 23 September 2007, Dan Johansson wrote:
3 > > Today I rebooted one of my servers and now slapd won't start (it's been
4 > > running OK until this reboot). The is what the slapd.log says:
5 > > -------------------8<-------------------------
6 > > Sep 23 16:31:07 polar slapd[8763]: @(#) $OpenLDAP: slapd 2.3.35 (Sep 23
7 > > 2007 16:28:27) $
8 > > root@polar:/var/tmp/portage/net-nds/openldap-2.3.35-r1/work/openldap-2.3.
9 > >35 /servers/slapd Sep 23 16:31:08 polar slapd[8764]: bdb_db_open: Warning
10 > > - No DB_CONFIG file found in directory /var/lib/openldap-data: (2) Expect
11 > > poor performance for suffix dc=dmj,dc=nu.
12 > > Sep 23 16:31:08 polar slapd[8764]: bdb(dc=dmj,dc=nu): Program version 4.5
13 > > doesn't match environment version 0.11
14 > > Sep 23 16:31:08 polar slapd[8764]: bdb_db_open: Database cannot be
15 > > opened, err -30972. Restore from backup!
16 > > Sep 23 16:31:08 polar slapd[8764]: bdb(dc=dmj,dc=nu):
17 > > DB_ENV->lock_id_free interface requires an environment configured for the
18 > > locking subsystem Sep 23 16:31:08 polar slapd[8764]: bdb(dc=dmj,dc=nu):
19 > > txn_checkpoint interface requires an environment configured for the
20 > > transaction subsystem Sep 23 16:31:08 polar slapd[8764]: bdb_db_close:
21 > > txn_checkpoint failed: Invalid argument (22)
22 > > Sep 23 16:31:08 polar slapd[8764]: backend_startup_one: bi_db_open
23 > > failed! (-30972)
24 > > Sep 23 16:31:08 polar slapd[8764]: bdb_db_close: alock_close failed
25 > > Sep 23 16:31:08 polar slapd[8764]: slapd stopped.
26 > > Sep 23 16:31:08 polar slapd[8764]: connections_destroy: nothing to
27 > > destroy. -------------------8<-------------------------
28 > >
29 > > I've tried to restore a backup from before the reboot - but I still have
30 > > the same problem. Any suggestions on what to do to solve this?
31 >
32 > Not sure if this will help, but if I recall correctly a new slot of
33 > sys-libs/db was brought out recently. Have you run etc-update and
34 > revdep-rebuild since your last update?
35
36
37 Had the same problem, had to revert db + dump database from ldap then upgrade
38 db + rebuild ldap and then import database into ldap.
39
40 --
41 Naga
42 --
43 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Fail to start slapd after reboot Dan Johansson <Dan.Johansson@×××.nu>