[Dovecot] Error: NO Mailbox is locked
Hi to all,
i migrate an imap server from courier-imap to dovecot 1.1.13. After the migration i have often this error in imap communication:
- NO Mailbox is locked, will abort in 122 seconds
- NO Mailbox is locked, will abort in 92 seconds
- NO Mailbox is locked, will abort in 62 seconds
- NO Mailbox is locked, will abort in 32 seconds
I use maildir and all data are in nfs server.
My dovecot configuration is:
protocols = imap pop3 imaps pop3s log_timestamp = "%Y-%m-%d %H:%M:%S " ssl_cert_file = /opt/dovecot/certs/imapd.pem ssl_key_file = /opt/dovecot/certs/imapd.pem login_user = dovecot mail_location = maildir:%h/Maildir mail_uid = 104 mail_gid = 102 mail_privileged_group = vmail first_valid_uid = 0 last_valid_uid = 0 first_valid_gid = 0 last_valid_gid = 0 ssl_disable = no disable_plaintext_auth = no mail_drop_priv_before_exec=yes log_path = /opt/dovecot/logs/dovecot.log mail_nfs_index = yes mail_nfs_storage = yes mmap_disable = yes
protocol imap { listen = *:143 mail_plugins = quota imap_quota ssl_listen = *:993 mail_executable = /opt/dovecot/libexec/dovecot/automigrateimap }
protocol pop3 { listen = *:110 pop3_uidl_format = UID%u-%v ssl_listen = *:995 mail_executable = /opt/dovecot/libexec/dovecot/automigratepop3 mail_plugins = quota }
auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain # passdb pam { # } passdb ldap { args = /opt/dovecot/etc/dovecot-ldap.conf } # userdb passwd { # } userdb ldap { args = /opt/dovecot/etc/dovecot-ldap.conf } user = root }
dict { }
plugin { quota = maildir quota_rule2 = Trash:storage=100M }
namespace private { separator = . prefix = INBOX. inbox = yes }
Have You any idea?
Thanks
On Tue, 2009-10-13 at 14:55 +0200, Giovanni Mancuso wrote:
i migrate an imap server from courier-imap to dovecot 1.1.13. After the migration i have often this error in imap communication:
- NO Mailbox is locked, will abort in 122 seconds
- NO Mailbox is locked, will abort in 92 seconds
Anything in Dovecot's error logs (http://wiki.dovecot.org/Logging)? How large are these maildirs where it happens?
In dovecot log, i have:
Error: IMAP(email@domain.com): nfs_flush_fcntl: fcntl(/maildirs/domain.com/user/Maildir/dovecot.index.cache, F_RDLCK) failed: Interrupted system call
The maildirs are relatively small (200MB approximately), but they have many messages (6000-7000 for each one)
My dovecot version is 1.1.13.
Thanks
Timo Sirainen wrote:
On Tue, 2009-10-13 at 14:55 +0200, Giovanni Mancuso wrote:
i migrate an imap server from courier-imap to dovecot 1.1.13. After the migration i have often this error in imap communication:
- NO Mailbox is locked, will abort in 122 seconds
- NO Mailbox is locked, will abort in 92 seconds
Anything in Dovecot's error logs (http://wiki.dovecot.org/Logging)? How large are these maildirs where it happens?
On Fri, 2009-10-16 at 13:48 +0200, Giovanni Mancuso wrote:
In dovecot log, i have:
Error: IMAP(email@domain.com): nfs_flush_fcntl: fcntl(/maildirs/domain.com/user/Maildir/dovecot.index.cache, F_RDLCK) failed: Interrupted system call
If your NFS lockd doesn't work fast enough or well enough I guess NFS cache flushes can cause problems like these.. Do you have more than one Dovecot instance accessing the mailboxes in NFS server? If not, just remove mail_nfs_*=yes settings and this should go away.
participants (2)
-
Giovanni Mancuso
-
Timo Sirainen