hello! on one of my servers (freebsd 7.0-R , Jail) I have a very strange problem I guess its something about LOCKing. some programs have issued with locking: saslauthd[38127] :main : could not lock pid lock file: /var/run/saslauthd/saslauthd.pid.lock saslauthd[38127] :main : fcntl: Invalid argument dovecot: 2009-05-29 03:45:50 Info: dovecot v1.1.15 starting up dovecot: 2009-05-29 03:45:50 Info: Generating Diffie-Hellman parameters for the first time. This may take a while.. dovecot: 2009-05-29 03:45:50 Error: ssl-build-param: fcntl(write-lock) locking failed for file /var/db/dovecot/ssl-parameters.dat.tmp: Invalid argument dovecot: 2009-05-29 03:45:50 Fatal: ssl-build-param: file_try_lock(/var/db/dovecot/ssl-parameters.dat.tmp) failed: Invalid argument deliver(user at example.com): 2009-05-29 03:43:24 Error: fcntl(write-lock) locking failed for file /data/maildirs/example.com/user/dovecot.index.log: Invalid argument deliver(user at example.com): 2009-05-29 03:43:24 Error: mail_index_wait_lock_fd() failed with file /data/maildirs/example.com/user/dovecot.index.log: Invalid argument deliver(user at example.com): 2009-05-29 03:43:24 Info: msgid=<BLU129-W212F3C73CDDC4C399CE338FD510 at phx.gbl>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2009-05-29 03:43:24] -rw------- 1 vmail vmail 24 May 29 03:43 /data/maildirs/example.com/user/dovecot.index.log all directorys are existent and wirtable I`m not sure if this only affects dovecot..maybe its a issue caused of the OS. anyone an idea? maybe its possible to run dovecot without these locking? thanks!! Oskar -- Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
On May 29, 2009, at 3:46 AM, Oskar Eyb wrote:> on one of my servers (freebsd 7.0-R , Jail) I have a very strange > problemNo NFS or any other weird filesystem?> I guess its something about LOCKing...> saslauthd[38127] :main : could not lock pid lock file: / > var/run/saslauthd/saslauthd.pid.lock > saslauthd[38127] :main : fcntl: Invalid argument..> dovecot: 2009-05-29 03:45:50 Error: ssl-build-param: fcntl(write- > lock) locking failed for file /var/db/dovecot/ssl- > parameters.dat.tmp: Invalid argument..> deliver(user at example.com): 2009-05-29 03:43:24 Error: fcntl(write- > lock) locking failed for file /data/maildirs/example.com/user/ > dovecot.index.log: Invalid argumentYeah. Clearly the fcntl locking isn't working. I've no idea why. Some FreeBSD list would probably be more helpful.
hi! thanks, with dotlock or flock it works - expect the ssl-stuff: dovecot: 2009-05-29 15:48:49 Info: dovecot v1.1.15 starting up dovecot: 2009-05-29 15:48:49 Info: Generating Diffie-Hellman parameters for the first time. This may take a while.. dovecot: 2009-05-29 15:48:49 Error: ssl-build-param: fcntl(write-lock) locking failed for file /var/db/dovecot/ssl-parameters.dat.tmp: Invalid argu dovecot: 2009-05-29 15:48:49 Fatal: ssl-build-param: file_try_lock(/var/db/dovecot/ssl-parameters.dat.tmp) failed: Invalid argument any idea for this - is it possible to change also in ssl-build-param the lock_method? Oskar -------- Original-Nachricht --------> Datum: Fri, 29 May 2009 04:14:33 -0400 > Von: Timo Sirainen <tss at iki.fi> > An: "Oskar Eyb" <fotoo at gmx.de> > CC: dovecot at dovecot.org > Betreff: Re: [Dovecot] locking fails> On May 29, 2009, at 4:12 AM, Oskar Eyb wrote: > > > until its solved, is there a way with dovecot to avoid fctnl? > > lock_method setting.-- Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
it works - after I start ssl-build-param from the host system. :) should I ( cron ) run this periodically (how often) or only once Oskar -- Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02