[Dovecot] 2.1: timeout waiting for lock?
Mar 15 09:46:11 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:46:11 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0 Mar 15 09:47:26 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:47:26 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0 Mar 15 09:51:01 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:51:01 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0
during that time, I wasn't able to access the mailbox using imap. I then issued
doveadm kick username
and all over sudden the mailbox was accessible (via IMAP)
# doveadm kick username kicked connections from the following users: username
# /usr/local/scripts/find_abnormal_imap
Mar 15 11:38:48 postamt dovecot: imap: Warning: Killed with signal 15 (by pid=24545 uid=0 code=kill)
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
On Thu, 2012-03-15 at 11:44 +0100, Ralf Hildebrandt wrote:
Mar 15 09:46:11 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:46:11 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0
during that time, I wasn't able to access the mailbox using imap. I then issued
Maildir?
doveadm kick username
and all over sudden the mailbox was accessible (via IMAP)
So one of them had the INBOX locked. Do you have pop3_lock_session=yes?
- Timo Sirainen <tss@iki.fi>:
On Thu, 2012-03-15 at 11:44 +0100, Ralf Hildebrandt wrote:
Mar 15 09:46:11 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:46:11 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0
during that time, I wasn't able to access the mailbox using imap. I then issued
Maildir?
Yep.
doveadm kick username
and all over sudden the mailbox was accessible (via IMAP)
So one of them had the INBOX locked. Do you have pop3_lock_session=yes?
Yes. # makes Dovecot lock the mailbox for the whole session pop3_lock_session = yes
Shouldn't be doing this I guess?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
On Thu, 2012-03-15 at 12:01 +0100, Ralf Hildebrandt wrote:
Mar 15 09:46:11 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:46:11 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0 So one of them had the INBOX locked. Do you have pop3_lock_session=yes?
Yes. # makes Dovecot lock the mailbox for the whole session pop3_lock_session = yes
Shouldn't be doing this I guess?
If you do it then a single POP3 session can keep the mailbox locked pretty much forever. If you don't do it, you're violating POP3 RFC, but I don't think anyone really cares about that..
I guess this setting should really use a separate POP3-only lock when it's enabled.
- Timo Sirainen <tss@iki.fi>:
On Thu, 2012-03-15 at 12:01 +0100, Ralf Hildebrandt wrote:
Mar 15 09:46:11 postamt dovecot: pop3(username): Error: Couldn't open INBOX: Timeout while waiting for lock Mar 15 09:46:11 postamt dovecot: pop3(username): Couldn't open INBOX top=0/0, retr=0/0, del=0/0, size=0 So one of them had the INBOX locked. Do you have pop3_lock_session=yes?
Yes. # makes Dovecot lock the mailbox for the whole session pop3_lock_session = yes
Shouldn't be doing this I guess?
If you do it then a single POP3 session can keep the mailbox locked pretty much forever. If you don't do it, you're violating POP3 RFC, but I don't think anyone really cares about that..
Indeed. All I care about is that the user gets his/her mail. Which he didn't.
I disabled it.
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
participants (2)
-
Ralf Hildebrandt
-
Timo Sirainen