[Dovecot] 1.0alpha5: fcntl() locking problem
Hi,
My setup: Solaris 9, /var/mail is NFS mounted from another Solaris 9 box, home directories and dovecot index stuff is on local ufs filesystems. I upgraded from alpha4 to a5 about 36 hours ago. Dovecot is configured like so during the build:
VERSION=1.0.alpha5
CC=gcc CFLAGS="-g -O" CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib
./configure --prefix=/opt/dovecot.$VERSION --with-ssl=openssl
--with-ssldir=/opt/openssl/ssl > configure.out
This afternoon dovecot basically locked up where a lot of people (including me) were getting:
imap(user): fcntl() failed with mbox file /var/mail/user: No record locks available
for syslog messages, and their mailbox operations would fail. In my case pine just closed the mailbox with an internal error.
I did a quick fix by stopping dovecot, killing all dovecot processes, killing /usr/lib/nfs/lockd on the dovecot server, and restarting lockd.
Ideas? Suggestions?
Jeff Earickson Colby College
"Jeff A. Earickson" wrote:
Hi,
My setup: Solaris 9, /var/mail is NFS mounted from another Solaris 9 box, home directories and dovecot index stuff is on local ufs filesystems. I upgraded from alpha4 to a5 about 36 hours ago. Dovecot is configured like so during the build:
VERSION=1.0.alpha5 CC=gcc CFLAGS="-g -O" CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib
./configure --prefix=/opt/dovecot.$VERSION --with-ssl=openssl
--with-ssldir=/opt/openssl/ssl > configure.outThis afternoon dovecot basically locked up where a lot of people (including me) were getting:
imap(user): fcntl() failed with mbox file /var/mail/user: No record locks available
for syslog messages, and their mailbox operations would fail. In my case pine just closed the mailbox with an internal error.
I did a quick fix by stopping dovecot, killing all dovecot processes, killing /usr/lib/nfs/lockd on the dovecot server, and restarting lockd.
Ideas? Suggestions?
Jeff Earickson Colby College
Hello, maybe it's not a dovecot problem. We had once a similar problem with NFS mounted home directories. This message appeared with the directories mounted from one server. The others were ok (all with Solaris 9).
It was something with the NFS server (I don't remember the exact reason). Restarting the NFS server (or booting) should help.
Martin
Martin Preen, Universitaet Freiburg, Institut fuer Informatik Georges-Koehler-Allee 52, Raum 00-006, 79110 Freiburg, Germany
phone: ++49 761 203-8250 preen@informatik.uni-freiburg.de fax: ++49 761 203-8242 www.informatik.uni-freiburg.de
On Wed, 2005-12-14 at 16:20 -0500, Jeff A. Earickson wrote:
imap(user): fcntl() failed with mbox file /var/mail/user: No record locks available
This error comes from kernel, so Dovecot can't really help it. Either your lockd broke, or there were too many locks being used (stale locks maybe left lying around?).
Yes, stopping and restarting lockd fixed this problem. Anybody know how to clear out stale locks in Solaris without killing lockd? This problem only bit me once.
Jeff Earickson Colby College
On Sat, 31 Dec 2005, Timo Sirainen wrote:
Date: Sat, 31 Dec 2005 15:53:20 +0200 From: Timo Sirainen tss@iki.fi To: Jeff A. Earickson jaearick@colby.edu Cc: dovecot@dovecot.org Subject: Re: [Dovecot] 1.0alpha5: fcntl() locking problem
On Wed, 2005-12-14 at 16:20 -0500, Jeff A. Earickson wrote:
imap(user): fcntl() failed with mbox file /var/mail/user: No record locks available
This error comes from kernel, so Dovecot can't really help it. Either your lockd broke, or there were too many locks being used (stale locks maybe left lying around?).
participants (3)
-
Jeff A. Earickson
-
Martin Preen
-
Timo Sirainen