Re: reconstruction problems

2006-12-18 Thread stas khromoy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

that worked
but you need to be logged in as cyrus
(actually holds true for all the cyrus related apps.
i.e.:sync_client, etc)


 
 Maybe try 'man 8 quota'.
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRYarj9bpM15f9s9nAQKQJQQAgxb08Z6Pg0SWLJvUw+Xc6PHfMPcAaQ4c
DyIC/CV5z81NnbYkEga0CNJ6jX/eNsTppATRK3omizMAT6kA/Wn76oNXKmHRgzqA
kWbyH3Zyiox28xfEld2oWJXhhpBFmcHN1Co+jPDdpQCHVyh95gEBP61LQYBXAcac
G7C+XJhhZYY=
=du5F
-END PGP SIGNATURE-

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


problem eith db4 delivery database

2006-12-18 Thread RJ45



Dec 13 10:11:18 iris lmtpunix[15690]: DBERROR: opening 
/var/lib/imap/deliver.db: Cannot allocate memory
Dec 13 10:11:18 iris lmtpunix[15690]: DBERROR: opening 
/var/lib/imap/deliver.db: cyrusdb error
Dec 13 10:11:18 iris lmtpunix[15690]: FATAL: lmtpd: unable to init 
duplicate delivery database
Dec 13 10:11:18 iris master[20540]: service lmtpunix pid 15690 in READY 
state: terminated abnormally
Dec 13 10:11:18 iris lmtpunix[15691]: DBERROR db4: Logging region out of 
memory; you may need to increase its s

ize

I have these problems and I did not figure out how to solve them
lookign in the past threads.
Anyoen has a hint ?

thanks

Rick


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


cyr_expire error

2006-12-18 Thread Joseph Brennan


cyr_expire has started failing with this error:

 cyr_expire[4729]: IOERROR: bboard zero index/expunge record 4/1591

This is 2.3.  Here's the info from cyradm:

localhost.columbia.edu info bboard
{bboard}:
 expire: 180
 lastpop:
 lastupdate: 17-Dec-2006 20:42:17 -0500
 partition: default
 size: 8733755

So this is a top-level shared folder, not under user/, and articles
should expire after 180 days.

The error is this in mailbox.c:

   /* Copy over records for nondeleted messages */
   for (msgno = 1; msgno = exists; msgno++) {
   /* Copy index record for this message */
   memcpy(buf,
  index_base + mailbox-start_offset +
  (msgno - 1) * mailbox-record_size, mailbox-record_size);

   /* Sanity check */
   if (*((bit32 *)(buf+OFFSET_UID)) == 0) {
   syslog(LOG_ERR, IOERROR: %s zero index/expunge record %u/%lu,
  mailbox-name, msgno, exists);
   return IMAP_IOERROR;
   }


But bboard contains messages 309. to 704., not 4 to 1591.  We are using
delayed expunge.

What should I look at?


Joseph Brennan
Columbia University Information Technology


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: cyr_expire error

2006-12-18 Thread Joseph Brennan



Earlier I wrote:



cyr_expire has started failing with this error:

  cyr_expire[4729]: IOERROR: bboard zero index/expunge record 4/1591




D'oh.  I did reconstruct bboard and that fixed whatever it was.

But this was repeatedly stopping cyr_expire from continuing.  It is
now running through all of the mailboxes it had missed since bboard got
corrupted.

Joseph Brennan
Lead Email Systems Engineer
Columbia University Information Technology


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: problem eith db4 delivery database

2006-12-18 Thread Wolfgang Hennerbichler

On 18.12.2006, at 15:53, RJ45 wrote:

Dec 13 10:11:18 iris lmtpunix[15690]: DBERROR: opening /var/lib/ 
imap/deliver.db: Cannot allocate memory


Do you have enough free space and user rights on this file?

--
[EMAIL PROTECTED]
http://www.wogri.com
http://www.einradfilm.at


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: cyr_expire error

2006-12-18 Thread Wesley Craig
I've seen this behavior (and resolution) as well.  Not sure what the  
cause is.


:wes

On 18 Dec 2006, at 12:06, Joseph Brennan wrote:

Earlier I wrote:

cyr_expire has started failing with this error:

  cyr_expire[4729]: IOERROR: bboard zero index/expunge record 4/1591


D'oh.  I did reconstruct bboard and that fixed whatever it was.

But this was repeatedly stopping cyr_expire from continuing.  It is
now running through all of the mailboxes it had missed since bboard  
got

corrupted.


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: cyr_expire error

2006-12-18 Thread Bron Gondwana

On Mon, 18 Dec 2006 14:27:12 -0500, Wesley Craig [EMAIL PROTECTED] said:
 I've seen this behavior (and resolution) as well.  Not sure what the  
 cause is.
 
 :wes
 
 On 18 Dec 2006, at 12:06, Joseph Brennan wrote:
  Earlier I wrote:
  cyr_expire has started failing with this error:
 
cyr_expire[4729]: IOERROR: bboard zero index/expunge record 4/1591
 
  D'oh.  I did reconstruct bboard and that fixed whatever it was.
 
  But this was repeatedly stopping cyr_expire from continuing.  It is
  now running through all of the mailboxes it had missed since bboard  
  got
  corrupted.

Attached is a patch we apply at FastMail (I really should mail the
list with our full patch list again some time)...

While this doesn't solve the underlying problem, it does stop a single
corrupted mailbox from killing the entire cyr_expire run!

Regards,

Bron.
-- 
  Bron Gondwana
  [EMAIL PROTECTED]

diff -ur --new-file cyrus-imapd-2.3.3.orig/imap/cyr_expire.c cyrus-imapd-2.3.3/imap/cyr_expire.c
--- cyrus-imapd-2.3.3.orig/imap/cyr_expire.c	2005-12-15 08:21:16.0 -0500
+++ cyrus-imapd-2.3.3/imap/cyr_expire.c	2006-05-22 01:52:12.0 -0400
@@ -225,7 +225,9 @@
 	mailbox_close(mailbox);
 }
 
-return r;
+/* Even if we had a problem with one mailbox, keep going
+ * with all other mailboxes. */
+return 0;
 }
 
 int main(int argc, char *argv[])

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