[Dovecot] maildir_file_do(/var/admhome/user/Maildir) racing

Timo Sirainen tss at iki.fi
Tue May 15 12:41:31 EEST 2007


On 14.5.2007, at 17.54, Ralf Hildebrandt wrote:

> One, just one (!) of our users gets:
>
> May 14 16:47:17 postamt dovecot: imap-login: Login:  
> user=<username>, method=PLAIN, rip=141.42.x.y, lip=ip.of.the.server
> May 14 16:47:17 postamt dovecot: imap-login: Login:  
> user=<username>, method=PLAIN, rip=141.42.x.y, lip=ip.of.the.server
> May 14 16:47:17 postamt dovecot: IMAP(username): maildir_file_do(/ 
> var/admhome/username/Maildir) racing

This happens at every login? I thought I'd never see this racing  
error. It means that Dovecot tried to some operation to a maildir  
file. But the operation failed, because the file was just renamed  
(eg. flag changed). So it located the file again, and found it. Then  
it tried the operation again, but it failed the same way. This was  
tried 10 times until it gave this "racing" error.

I think it's a bit unlikely that the filename was changing that fast.  
So there's probably a bug somewhere.. Could get strace output from  
those two logins and send them to me? You can do this with eg.:

mail_executable = /usr/local/bin/run-imap.sh

run-imap.sh:

#!/bin/sh
exec strace -tt -s 1000 -o /tmp/imap.$USER.`time +%u`.$$.log /usr/ 
local/libexec/dovecot/imap

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070515/f4817819/attachment.pgp 


More information about the dovecot mailing list