Bug#419222: [Pkg-openldap-devel] Bug#419222: it crashed again

Quanah Gibson-Mount quanah at zimbra.com
Thu May 3 20:45:42 UTC 2007



--On May 3, 2007 9:53:25 PM +0200 Gyuris Szabolcs <szimszon at oregpreshaz.eu> 
wrote:

> Quanah Gibson-Mount wrote:
>>
>>
>> --On May 3, 2007 8:57:10 PM +0200 Gyuris Szabolcs
>> <szimszon at oregpreshaz.eu> wrote:
>>
>>> I shouted from the rooftops.
>>>
>>> The slapd made some big mistake and the nagios plugin said: "Could not
>>> search/find objectclasses in dc=domain,dc=tld"
>>>
>>> I stopped the slapd, then started and tried to run slapcat:
>>>
>>> bdb_db_open: unclean shutdown detected; attempting recovery.
>>> bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if
>>> errors are encountered.
>>
>> This says that you are running in read-only mode, so it will not try and
>> recover the database.  And it appears to believe you have had an unclean
>> shutdown.  How was slapd and/or the system last stopped?
> It wasn't stopped at all. I think after the master slapd try to make an
> update to the slave then something horrible happens and the database
> will be corrupt.

There's something really odd about your environment.  The error about an 
unclean shutdown only occurs if slapd has been stopped in an unclean 
fashion.  Now you note that you stopped slapd and then ran slapcat.  It 
sounds then like slapd faulted on shutdown rather than shutting down 
cleanly, which means you would have to run db_recover prior to running 
slapcat.  I recall having an issue on slapd shutdown recently, let me see 
if I can go dig that up.

--Quanah


--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration




More information about the Pkg-openldap-devel mailing list