Hi,
i have a problem with rc19 (sorry, i have no time at the moment to uptime) and homedirs and maildirs mounted via NFS on Solaris10.
At the beginning of the following log file everything is ok. At the end it cannot access the index... and just deleted the whole mailbox! It was empty... so it was no problem.
Any ideas?
Thanks.
Bye, Kevin
dovecot: Feb 15 21:17:52 Info: auth(default): client in: AUTH 1 PLAIN service=POP3 secured lip=147.x.x.x rip=89.x.x.x resp=<hidden> dovecot: Feb 15 21:17:52 Info: auth(default): client out: CONT 1 dovecot: Feb 15 21:17:52 Info: auth(default): client in: CONT<hidden> dovecot: Feb 15 21:17:52 Info: auth(default): client out: OK 1 user=ssal0041 dovecot: Feb 15 21:17:52 Info: auth(default): master in: REQUEST 111 2754 1 dovecot: Feb 15 21:17:52 Info: auth(default): master out: USER 111 ssal0041 system_user=ssal0041 uid=3092 gid=1100 home=/home/ssal0041 dovecot: Feb 15 21:17:52 Info: pop3-login: Login: user=<ssal0041>, method=PLAIN, rip=89.x.x.x, lip=147.x.x.x, TLS dovecot: Feb 15 21:17:52 Info: POP3(ssal0041): Effective uid=3092, gid=1100 dovecot: Feb 15 21:17:52 Info: POP3(ssal0041): mbox: data=/home/ssal0041/mail/:INBOX=/var/mail/ssal0041 dovecot: Feb 15 21:17:52 Info: POP3(ssal0041): mbox: root=/home/ssal0041/mail, index=/home/ssal0041/mail, inbox=/var/mail/ssal0041 dovecot: Feb 15 21:17:55 Error: POP3(ssal0041): Timeout while waiting for shared lock for index file /home/ssal0041/mail/.imap/INBOX/dovecot.index dovecot: Feb 15 21:19:52 Error: POP3(ssal0041): Timeout while waiting for shared lock for index file /home/ssal0041/mail/.imap/INBOX/dovecot.index dovecot: Feb 15 21:19:55 Error: POP3(ssal0041): Timeout while waiting for shared lock for index file /home/ssal0041/mail/.imap/INBOX/dovecot.index dovecot: Feb 15 21:19:55 Error: POP3(ssal0041): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2007-02-15 21:15:55] dovecot: Feb 15 21:19:55 Info: POP3(ssal0041): No INBOX for user top=0/0, retr=0/0, del=0/0, size=0 dovecot: Feb 15 21:21:29 Info: POP3(ssal0041): Disconnected top=0/0, retr=0/0, del=0/0, size=0 dovecot: Feb 15 21:21:29 Info: POP3(ssal0041): Disconnected top=0/0, retr=0/0, del=0/0, size=0
On Thu, 2007-02-15 at 21:42 +0100, Kevin Richter wrote:
Hi,
i have a problem with rc19 (sorry, i have no time at the moment to uptime) and homedirs and maildirs mounted via NFS on Solaris10 .. dovecot: Feb 15 21:17:55 Error: POP3(ssal0041): Timeout while waiting for shared lock for index file /home/ssal0041/mail/.imap/INBOX/dovecot.index
So, index files are stored in NFS and it's timeouting. Do you have multiple computers accessing simultaneously the same users' mails?
I'm guessing the problem here has to do with NFS lockd, since normally dovecot.index file can't be write-locked very long. Try setting lock_method=dotlock. And you have mmap_disable=yes, right?
Timo Sirainen schrieb:
On Thu, 2007-02-15 at 21:42 +0100, Kevin Richter wrote:
Hi,
i have a problem with rc19 (sorry, i have no time at the moment to uptime) and homedirs and maildirs mounted via NFS on Solaris10 .. dovecot: Feb 15 21:17:55 Error: POP3(ssal0041): Timeout while waiting for shared lock for index file /home/ssal0041/mail/.imap/INBOX/dovecot.index
So, index files are stored in NFS and it's timeouting. Do you have multiple computers accessing simultaneously the same users' mails?
Yes, i have. But its only one Dovecot at all. So only one instance is trying to lock these dovecot index files. The older, other POP and IMAP daemons are using other index files.
It may be possible, that the INBOX (/var/mail/username) is accessed at the same time from two different locations via NFS.
I'm guessing the problem here has to do with NFS lockd, since normally dovecot.index file can't be write-locked very long. Try setting lock_method=dotlock. And you have mmap_disable=yes, right?
Yes, of course, mmap_disable=yes
The other config in that region is now (stripped all unimportant comments):
## ## Mail processes ##
mail_debug = yes #mail_log_prefix = "%Us(%u): " #mail_read_mmaped = no mmap_disable = yes #mmap_no_write = no #dotlock_use_excl = no lock_method = dotlock mail_drop_priv_before_exec = no #verbose_proctitle = no first_valid_uid = 500 #last_valid_uid = 0
It seems to work now. But lets wait and see.
Thanks :)
participants (2)
-
Kevin Richter
-
Timo Sirainen