Rafael Alcalde | 9 Aug 19:57

Deliver.db error: DBERROR db4:

I have found a lot of problems with all the databases from cyrus: 
deliver.db, etc.

In /var/log/maillog we see:
 DBERROR db4: Logging region out of memory; you may need to increase its 
size

Aug  6 11:18:42 mail1 lmtpunix[27875]: DBERROR: opening 
/var/lib/imap/deliver.db: Cannot allocate memory

The only solution I have found right now to restore the system is:

/etc/init.d/cyrus-imapd stop
/etc/init.d/postfix  stop
mv /var/lib/imap/deliver.db /var/lib/imap/deliver.db_old
mv /var/lib/imap/tls_sessions.db /var/lib/imap/tls_sessions.db_old
mv /var/lib/imap/db/* /var/lib/imap/db/temp
postsuper -s
/etc/init.d/cyrus-imapd start
/etc/init.d/postfix  start
postsuper -r ALL

But this only fix the problem temporaly... Can you help me?

----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

(Continue reading)

Wil Cooley | 9 Aug 22:24
Favicon

Re: Deliver.db error: DBERROR db4:

On Wed, 2006-08-09 at 19:57 +0200, Rafael Alcalde wrote:
> I have found a lot of problems with all the databases from cyrus: 
> deliver.db, etc.
> 
> In /var/log/maillog we see:
>  DBERROR db4: Logging region out of memory; you may need to increase its 
> size
> 
> Aug  6 11:18:42 mail1 lmtpunix[27875]: DBERROR: opening 
> /var/lib/imap/deliver.db: Cannot allocate memory

I'm working vaguely from memory, but I think it's something like this:

 o As root or cyrus, run 'db_stat -l -d /var/lib/imap/db' and look at 
   the "Log region size".  Mine is set to 96K, which is higher than the 
   documented default of 60K, so I assume it's increased automatically.
 o Create a /var/lib/imap/db/DB_CONFIG file
 o Put in it an entry like: "set_lg_regionmax 262144" (this sets it to 
   256K)
 o I think you need to run 'db_recover' after this; at least, with the 
   BDB backend for Subversion you have to run 'svnadmin recover' after 
   changing it.  I think Cyrus should be shutdown when you run 
   db_recover.

Unfortunately, the documentation for BDB is written for programmers, not
sys admins, and unless you've spent much time looking at the rest of the
docs, it can be pretty impenetrable.  Oddly enough, the sample DB_CONFIG
files that Subversion and OpenLDAP ship with and their docs seem to be
the best resources I've found.

(Continue reading)

Rafael Alcalde | 10 Aug 15:04

Re: Deliver.db error: DBERROR db4:

Thanks Will,
It seems to fix the problem but only the recover action take effect. The 
changes on DB_CONFIG file seems not to work, because the "Log region 
size"  is the same than before the changes.

Wil Cooley wrote:
> On Wed, 2006-08-09 at 19:57 +0200, Rafael Alcalde wrote:
>   
>> I have found a lot of problems with all the databases from cyrus: 
>> deliver.db, etc.
>>
>> In /var/log/maillog we see:
>>  DBERROR db4: Logging region out of memory; you may need to increase its 
>> size
>>
>> Aug  6 11:18:42 mail1 lmtpunix[27875]: DBERROR: opening 
>> /var/lib/imap/deliver.db: Cannot allocate memory
>>     
>
> I'm working vaguely from memory, but I think it's something like this:
>
>  o As root or cyrus, run 'db_stat -l -d /var/lib/imap/db' and look at 
>    the "Log region size".  Mine is set to 96K, which is higher than the 
>    documented default of 60K, so I assume it's increased automatically.
>  o Create a /var/lib/imap/db/DB_CONFIG file
>  o Put in it an entry like: "set_lg_regionmax 262144" (this sets it to 
>    256K)
>  o I think you need to run 'db_recover' after this; at least, with the 
>    BDB backend for Subversion you have to run 'svnadmin recover' after 
>    changing it.  I think Cyrus should be shutdown when you run 
(Continue reading)


Gmane