Re: DBERROR - how do I recover?

2008-06-26 Thread Shelley Waltz

Blake Hudson wrote:
> 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  

>> 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
>>
>
> 
> 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
>

Thanks for this concise information, I am keeping it on file for next
time(hopefully never).

What I did and what did repair the problem was

db_recover -v -h /var/lib/imap/db




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


Re: DBERROR - how do I recover?

2008-06-23 Thread Alain Spineux
On Mon, Jun 23, 2008 at 7:08 PM, Shelley Waltz <[EMAIL PROTECTED]> wrote:
> 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

Do the dliver.db file exists ?
What are the unix right ? What are the unix right for the directory ?

> 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
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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


Re: DBERROR - how do I recover?

2008-06-23 Thread Blake Hudson
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 <[EMAIL PROTECTED]>
To: info-cyrus@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
>   


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