[Dovecot] time out error and email with attachments
I'm facing some problem with emails and attachments. I'm not sure it's dealing with MTU (it is set to the maximum number before a fragmentation occurs).
I have no errors from pop3, but the following message is the best I can show you just to understand my problem. The log shows this:
"imap(roberto.cipollini@allmediasolution.com): Oct 04 17:35:03 Error: Timeout while waiting for release of exclusive fcntl() lock for index file /mail/allmediasolution.com/roberto.cipollini/.INBOX/.imap.index "
I think that the pop3 process is locking the index file (thunderbird was waiting to download the file) and the imap (i tried to get the file from webmail) is going time out.
Can anyone tell me how to fix the time out? any suggestion? do you need more information/logs? can I try different setting in dovecot conf?
thanks for any kind of help. Roberto
Roberto Cipollini roberto.cipollini@allmediasolution.com writes:
"imap(roberto.cipollini@allmediasolution.com): Oct 04 17:35:03 Error: Timeout while waiting for release of exclusive fcntl() lock for index file /mail/allmediasolution.com/roberto.cipollini/.INBOX/.imap.index "
I have a similar problem with Dovecot 1.0.alpha3 on a Solaris 9 box. The only thing accessing my folders is a single imap process (i.e., the Dovecot imap binary). I haven't seen this log message but I do see hangs; gdb shows this stack trace:
#0 0xff11c32c in _private_fcntl () from /usr/lib/libc.so.1 #1 0xff1162c8 in s_fcntl () from /usr/lib/libc.so.1 #2 0x00038e80 in mbox_lock_fcntl () #3 0x00039094 in mbox_update_locking ()
mbox_lock_fcntl gets called inside a while loop; next time it hangs I'll see whether it's looping or the flock system call is just hanging. Switching to dotlocking might make the problem go away; flock is supposed to be faster.
Interestingly I'm the only one of our test users who has the problem. I'm also the only one using Gnus as my IMAP client.
Mark Plaksin happy@usg.edu writes:
Roberto Cipollini roberto.cipollini@allmediasolution.com writes:
"imap(roberto.cipollini@allmediasolution.com): Oct 04 17:35:03 Error: Timeout while waiting for release of exclusive fcntl() lock for index file /mail/allmediasolution.com/roberto.cipollini/.INBOX/.imap.index "
I have a similar problem with Dovecot 1.0.alpha3 on a Solaris 9 box. The only thing accessing my folders is a single imap process (i.e., the Dovecot imap binary). I haven't seen this log message but I do see hangs; gdb shows this stack trace:
#0 0xff11c32c in _private_fcntl () from /usr/lib/libc.so.1 #1 0xff1162c8 in s_fcntl () from /usr/lib/libc.so.1 #2 0x00038e80 in mbox_lock_fcntl () #3 0x00039094 in mbox_update_locking ()
I just got a different hang while downloading a large attachment:
#0 0xff11dbb4 in _poll () from /usr/lib/libc.so.1 #1 0x0006c784 in io_loop_handler_run (ioloop=0x9f330) at ioloop-poll.c:142 #2 0x0006c164 in io_loop_run (ioloop=0x9f330) at ioloop.c:230 #3 0x00028660 in main (argc=652080, argv=0x962c8, envp=0x0) at main.c:229
Again, I'm not skillful enough with gdb to tell whether this is poll() hanging or whether Dovecot is looping and calling poll multiple times. Next time I'll run truss before gdb!
After starting a new IMAP session, the large attachment downloaded fine.
Mark Plaksin happy@usg.edu writes:
I just got a different hang while downloading a large attachment:
#0 0xff11dbb4 in _poll () from /usr/lib/libc.so.1 #1 0x0006c784 in io_loop_handler_run (ioloop=0x9f330) at ioloop-poll.c:142 #2 0x0006c164 in io_loop_run (ioloop=0x9f330) at ioloop.c:230 #3 0x00028660 in main (argc=652080, argv=0x962c8, envp=0x0) at main.c:229
Again, I'm not skillful enough with gdb to tell whether this is poll() hanging or whether Dovecot is looping and calling poll multiple times. Next time I'll run truss before gdb!
It's looping and calling poll over and over. This hang is relatively easy to reproduce. If I leave Dovecot idle a while (hours) and then start using it again it (almost?) always gets into this loop when the first UID STORE happens.
participants (2)
-
Mark Plaksin
-
Roberto Cipollini