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

Re: slapd couldn't start



2005/10/13, Quanah Gibson-Mount <quanah@stanford.edu>:
>
>
> --On Wednesday, October 12, 2005 10:33 PM +0800 Gazali <gazali@gmail.com>
> wrote:
>
> > Hi,all.
> >     I'm using openldap2.2.20&Berkeley DB4.2.52 at RH7.3.It had worked
> > well some months,but now,something had happened.slapd couldn't start.
> >    When I typed 'slapd -d 5',it showed:
> > --------------------------------------
> >     slapd startup: initiated.
> > backend_startup: starting "o=testca"
> > bdb_db_open: o=testca
> > bdb_db_open: dbenv_open(/var/lib/ldap)
> > bdb(o=testca): Ignoring log file: /var/lib/ldap/log.0000000020: magic
> > number 0, not 40988
> > bdb(o=testca): DB_ENV->log_put: 20: Invalid argument
> > bdb_db_open: db_open(/var/lib/ldap) failed: Invalid argument (22)
> > backend_startup: bi_db_open failed! (22)
> > slapd shutdown: initiated
> > ====> bdb_cache_release_all
> > slapd shutdown: freeing system resources.
> > bdb(o=testca): Ignoring log file: /var/lib/ldap/log.0000000020: magic
> > number 0, not 40988
> > bdb(o=testca): DB_ENV->log_put: 20: Invalid argument
> > bdb(o=testca): txn_checkpoint: failed to flush the buffer cache Invalid
> > argument bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
> > bdb(o=testca): Database handles open during environment close
> > bdb(o=testca): Ignoring log file: /var/lib/ldap/log.0000000020: magic
> > number 0, not 40988
> > bdb(o=testca): DB_ENV->log_put: 20: Invalid argument
> > bdb_db_destroy: close failed: Invalid argument (22)
> > slapd stopped.
> > connections_destroy: nothing to destroy.
> > -------------------------------------------------------------
> >     Is there something wrong with the DB? Can anyone tell me how to
> > fix it and let slapd start?
> >     thank you.
>
> Try running db_recover, but this looks somewhat like you have different BDB
> libraries than before.
>
> --Quanah
>
> --
> Quanah Gibson-Mount
> Principal Software Developer
> ITSS/Shared Services
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
>
> "These censorship operations against schools and libraries are stronger
> than ever in the present religio-political climate. They often focus on
> fantasy and sf books, which foster that deadly enemy to bigotry and blind
> faith, the imagination." -- Ursula K. Le Guin
>
>

when I used 'db_recover',then:
------------
db_recover: unable to join the environment
db_recover: Ignoring log file: log.0000000020: unsupported log version 8
db_recover: Invalid log file: log.0000000001: Invalid argument
db_recover: PANIC: Invalid argument
and the cursor was blinking
------------
It seemed that 'db_recover' is dead,and openldap can't be start also.
I'm crazying,there are more than 10,000 entries,I can't delete the db.
Can I use 'slapcat' to backup the ldif?