DBERROR - how do I recover?

Blake Hudson blake at ispn.net
Mon Jun 23 13:28:39 EDT 2008


You should be able to delete the deliver, annotations, and tls_sessions 
db files along with the files in /var/lib/imap/db and restart without 
any loss of data.

If this does not fix the problem you likely have issue with the 
mailboxes db file. In that case, you will likely have to replace it with 
a file from /var/lib/imap/db.backup1 You will lose any new 
folders/mailboxes created since the backup was created. You can use 
reconstruct -rf to find these though....

--Blake

-------- Original Message  --------
Subject: DBERROR - how do I recover?
From: Shelley Waltz <shwaltz at cabm.rutgers.edu>
To: info-cyrus at lists.andrew.cmu.edu
Date: Monday, June 23, 2008 12:08:51 PM
> I just restarted my cyrus-imapd 2.2 and got a DBERROR.  I removed the
> duplicate db since the error persisted and this has worked in the past.
>
> I am still in trouble on my production system - help
>
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR db4: fatal region error
> detected; run recovery
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: dbenv->open
> '/var/lib/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database
> recovery
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: init() on berkeley
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: executed
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR db4: environment not yet
> opened
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: opening
> /var/lib/imap/deliver.db: Invalid argument
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: opening
> /var/lib/imap/deliver.db: cyrusdb error
> Jun 23 12:57:34 chipmunk lmtpunix[4948]: FATAL: lmtpd: unable to init
> duplicate delivery database
> Jun 23 12:57:34 chipmunk master[1691]: process 4948 exited, status 75
> Jun 23 12:57:34 chipmunk master[1691]: service lmtpunix pid 4948 in READY
> state: terminated abnormally
> Jun 23 12:57:34 chipmunk master[4949]: about to exec
> /usr/lib/cyrus-imapd/lmtpd
>
> what can i do to recover from this problem - no mail is going through.
>
> thanks S
>
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>   



More information about the Info-cyrus mailing list