On 5/22/10, Ward Poelmans <wpoely86@gmail.com> wrote:
> On Sat, May 22, 2010 at 21:26, Christopher Kurtis Koeber
> <ckoeber@gmail.com> wrote:
>
>> XXXXXXXXXX~ # slaptest
>>
>> hdb_db_open: warning - no DB_CONFIG file found in directory
>> /var/lib/openldap-data: (2).
>>
>> Expect poor performance for suffix "dc= XXXXXXXXXXXX,dc=XXX".
>>
>> hdb_db_open: database "dc= XXXXXXXXXXXX,dc=XXX":
>> db_open(/var/lib/openldap-data/id2entry.bdb) failed: No such file or
>> directory (2).
>>
>> backend_startup_one (type=hdb, suffix="dc=XXXXXXXXXXXX,dc=XXX"):
>> bi_db_open
>> failed! (2)
>>
>> slap_startup failed (test would succeed using the -u switch)
>>
>> So, I am guessing I need to initialize somehow? Is that right?
>
> Normally, if the directory /var/lib/openldap-data/ exists and is
> read-writeable for the user under which slapd is running, slapd
> creates the database for you. But you beter copy a DB_CONFIG to there
> for good perfomance.
>
> Ward
>
>
I tried running the service as root with the same results below, so I
don't think this is a permissions issue, especially since I am
attempting to run this straight from a standard emerge with no
customizations beyond what was given in the guide.
Here is the latest:
hdb_db_open: warning - no DB_CONFIG file found in directory
/var/lib/openldap-data: (2).
Expect poor performance for suffix "dc=XXXXXXXXX,dc=XXX".
hdb_db_open: database "dc=XXXXXXXXX,dc=XXX":
db_open(/var/lib/openldap-data/id2entry.bdb) failed: No such file or
directory (2).
backend_startup_one (type=hdb, suffix="dc=XXXXXXXXX,dc=XXX"):
bi_db_open failed! (2)
slap_startup failed (test would succeed using the -u switch)
--
Regards,
Christopher Koeber
05-26-2010, 05:52 PM
"Christopher Kurtis Koeber"
Cannot start Slapd (OpenLDAP)
OK, I have tried everything and while I made some progress I still can't get
the Open-LDAP server to start.
I loaded the initial entry, I believe and ran slaptest, which came back
clean.
However, I STILL can't get the server to start. And now I don't know what
may be the issue, as slaptest is coming back OK. Any ideas?
Christopher Kurtis Koeber
(W): (202) 885-8654
(C): (301) 467-8417
http://www.chriskoeber.com
-----Original Message-----
From: Christopher Koeber [mailto:ckoeber@gmail.com]
Sent: Monday, May 24, 2010 11:49 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cannot start Slapd (OpenLDAP)
On 5/22/10, Ward Poelmans <wpoely86@gmail.com> wrote:
> On Sat, May 22, 2010 at 21:26, Christopher Kurtis Koeber
> <ckoeber@gmail.com> wrote:
>
>> XXXXXXXXXX~ # slaptest
>>
>> hdb_db_open: warning - no DB_CONFIG file found in directory
>> /var/lib/openldap-data: (2).
>>
>> Expect poor performance for suffix "dc= XXXXXXXXXXXX,dc=XXX".
>>
>> hdb_db_open: database "dc= XXXXXXXXXXXX,dc=XXX":
>> db_open(/var/lib/openldap-data/id2entry.bdb) failed: No such file or
>> directory (2).
>>
>> backend_startup_one (type=hdb, suffix="dc=XXXXXXXXXXXX,dc=XXX"):
>> bi_db_open
>> failed! (2)
>>
>> slap_startup failed (test would succeed using the -u switch)
>>
>> So, I am guessing I need to initialize somehow? Is that right?
>
> Normally, if the directory /var/lib/openldap-data/ exists and is
> read-writeable for the user under which slapd is running, slapd
> creates the database for you. But you beter copy a DB_CONFIG to there
> for good perfomance.
>
> Ward
>
>
I tried running the service as root with the same results below, so I don't
think this is a permissions issue, especially since I am attempting to run
this straight from a standard emerge with no customizations beyond what was
given in the guide.
Here is the latest:
hdb_db_open: warning - no DB_CONFIG file found in directory
/var/lib/openldap-data: (2).
Expect poor performance for suffix "dc=XXXXXXXXX,dc=XXX".
hdb_db_open: database "dc=XXXXXXXXX,dc=XXX":
db_open(/var/lib/openldap-data/id2entry.bdb) failed: No such file or
directory (2).
backend_startup_one (type=hdb, suffix="dc=XXXXXXXXX,dc=XXX"):
bi_db_open failed! (2)
slap_startup failed (test would succeed using the -u switch)
--
Regards,
Christopher Koeber
05-26-2010, 05:57 PM
Ward Poelmans
Cannot start Slapd (OpenLDAP)
On Wed, May 26, 2010 at 19:52, Christopher Kurtis Koeber
<ckoeber@gmail.com> wrote:
> However, I STILL can't get the server to start. And now I don't know what
> may be the issue, as slaptest is coming back OK. Any ideas?
Try running slapd -d 65535 and tell us what it says.
Ward
05-26-2010, 06:36 PM
"Christopher Kurtis Koeber"
Cannot start Slapd (OpenLDAP)
Ran the command: /usr/lib/openldap/slapd -F /etc/openldap/ -d 65535
See attached as the output was long.
Not sure what is going on. Any help would be appreciated.
Regards,
Christopher Kurtis Koeber
(W): (202) 885-8654
(C): (301) 467-8417
http://www.chriskoeber.com
On Wed, May 26, 2010 at 19:52, Christopher Kurtis Koeber <ckoeber@gmail.com> wrote:
> However, I STILL can't get the server to start. And now I don't know
> what may be the issue, as slaptest is coming back OK. Any ideas?
Try running slapd -d 65535 and tell us what it says.
Ward
05-26-2010, 06:53 PM
Ward Poelmans
Cannot start Slapd (OpenLDAP)
On Wed, May 26, 2010 at 20:36, Christopher Kurtis Koeber
<ckoeber@gmail.com> wrote:
> Ran the command: /usr/lib/openldap/slapd -F /etc/openldap/ -d 65535
>
> See attached as the output was long.
>
> Not sure what is going on. Any help would be appreciated.
Are you sure you specified a rootdn and rootpw and that they are correct?
I cann't tell what goes wrong, it starts correctly and that it goes
wrong and terminates.
Maybe you should post this on the openldap mailing list?
Ward
05-26-2010, 07:42 PM
"Christopher Kurtis Koeber"
Cannot start Slapd (OpenLDAP)
Sure. I guess that is the best. Thank you so much for your time.
Regards,
Christopher Kurtis Koeber
(W): (202) 885-8654
(C): (301) 467-8417
http://www.chriskoeber.com
On Wed, May 26, 2010 at 20:36, Christopher Kurtis Koeber <ckoeber@gmail.com> wrote:
> Ran the command: /usr/lib/openldap/slapd -F /etc/openldap/ -d 65535
>
> See attached as the output was long.
>
> Not sure what is going on. Any help would be appreciated.
Are you sure you specified a rootdn and rootpw and that they are correct?
I cann't tell what goes wrong, it starts correctly and that it goes wrong and terminates.
Maybe you should post this on the openldap mailing list?