[Dovecot] Error: Index file too large ? 904 bytes ?

Timo Sirainen tss at iki.fi
Wed Aug 18 17:28:44 EEST 2010


On Tue, 2010-08-17 at 23:44 -0400, Dennis Clarke wrote:
> My 1.2.13 build is giving me errors based on the same conf file that was working perfectly for 1.2.12 : 
> 
> Aug 18 03:28:27 IMAP(dclarke): Error: Index file too large: /var/mail/dclarke/dovecot.index

This happens when index file is larger than SSIZE_T_MAX, i.e. 2^31 in
32bit systems.

> Aug 18 03:28:27 IMAP(dclarke): Fatal: block_alloc(2147483648): Out of memory

This is also 2^31..

> The file in question is 904 bytes in size : 
> 
> bash-4.1# ls -l /export/home/dclarke/mail/.Sent/dovecot.index
> -rw-------   1 dclarke  csw          904 Aug  4 16:05 /export/home/dclarke/mail/.Sent/dovecot.index
> 
> So this seems insane. 

Yeah. Something's very wrong. It's as if stat() reports wrong file size
to Dovecot.

> Aug 18 03:37:07 IMAP(dclarke): Warning: Created dotlock file's timestamp is different than current time (837089755 vs 1282102627): /export/home/dclarke/mail/.Sent/dovecot-uidlist

837089755 is Thu Jul 11 13:55:55 WEST 1996. That's way wrong.

> bash-4.1# date
> Wed Aug 18 03:39:24 GMT 2010
> 
> bash-4.1# ls -lapE /export/home/dclarke/mail/.Sent/dovecot-uidlist
> -rw-------   1 dclarke  csw         1806 2010-08-16 13:52:16.442510077 +0000 /export/home/dclarke/mail/.Sent/dovecot-uidlist

It's not about dovecot-uidlist, but about newly created
dovecot-uidlist.lock file (which it since deleted).

Something's just completely broken in your install.



More information about the dovecot mailing list