[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: slapd service started but no one could enter in server
Hi,
Please give me a hand here. This should be easy. For sure I'm doing
something silly.
I've tried to do this:
1 - db_recover to the openLDAP since the files /usr/local/var/openldap-data
were intact.
>/usr/local/BerkeleyDB.4.4/bin/db_recover -c -h
/usr/local/var/openldap-data/
db_recover: unable to join the environment
( A ) Why does return this error?
( B ) The db_recover ends and the ldap starts to work even with that
error
2 - Starts the ldap server in debug mode and gives me these last lines
>"bdb_db_open: unclean shutdown detected; attempting recovery.
>bdb_db_open: dbenv_open(/usr/local/var/openldap-data)
>slapd starting
>daemon: added 4r
>daemon: added 7r
>daemon: added 8r
>daemon: select: listen=7 active_threads=0 tvp=zero
>daemon: select: listen=8 active_threads=0 tvp=zero
( C ) When the ldap server doesn't start didn't gives me the 6 last
lines. Why?
( D ) It continues to give me the error "bdb_db_open: unclean shutdown
detected; attempting recovery.".
Why? I didn't do nothing to corrupt the database. I only access
to it.
3 - How should we stop ldap server service.
I use the one that the manual indicates: kill the process
( E ) Is there any new method that stops the ldap correctly?
Please give me a hand here
Thks in advance
Ricardo Ferreira
ricardo.ferreira@cimsoft.pt write:
Hi,
Software Specifications
- OpenLDAP v2.3.20
- SleepyCat v4.4
1 - Use slapadd to restore ldap
2 - start ldap service OK
3 - use ldap server OK
4 - need to shutdown server
5 - restart ldap server in debug mode
ERROR:
6 - in the last lines gives me this
(...)
slapd startup: initiated.
backend_startup_one: starting "cn=config"
config_back_db_open
config_build_entry: "cn=config"
config_build_entry: "cn=include{0}"
config_build_entry: "cn=include{1}"
config_build_entry: "cn=include{2}"
config_build_entry: "cn=schema"
config_build_entry: "cn={0}mediadoc_vs2"
config_build_entry: "cn={1}cosine"
config_build_entry: "cn={2}inetorgperson"
config_build_entry: "olcDatabase={-1}frontend"
config_build_entry: "olcDatabase={0}config"
config_build_entry: "olcDatabase={1}bdb"
backend_startup_one: starting "dc=Cimsoft,dc=pt"
bdb_db_open: dc=Cimsoft,dc=pt
bdb_db_open: dbenv_open(/usr/local/var/openldap-data)
bdb(dc=Cimsoft,dc=pt): unable to join the environment
Questions
( A ) What is the error "unable to join the environment" ?
( B ) Why it works the first time ?
( C ) What I could do now? I've got all the files in
/usr/local/var/openldap-data/ intact and with all the logs.
Thks in advance
Ricardo Ferreira
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.859 / Virus Database: 585 - Release Date: 15-02-2005