Re: locking attempts fails in FreeBSD (jail)
anonymous wrote you don't get an answer probably because nobody knows. it's completely strange for me too, as you said that directories are writable. the lock-errors from dovecot-deliver I ve solved my lock_method=dotlock (or flock). But I cant change it in ssl-build-param * The lock-issue is ONLY in jails! Efcntl(write-lock) locking failed for file /tmp.tmp: Invalid argument Ffile_try_lock(/tmp.tmp) failed: Invalid argument So, what does that mean? What is limiting the locking in jails, howto avoid? Cheers, Oskar Original-Nachricht Datum: Fri, 29 May 2009 09:44:43 +0200 Von: Oskar Eyb fo...@gmx.de An: freebsd-questions@freebsd.org Betreff: locking attempts fails in FreeBSD (jail) 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(u...@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 -- 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: locking attempts fails in FreeBSD (jail)
it's completely strange for me too, as you said that directories are writable. the lock-errors from dovecot-deliver I ve solved my lock_method=dotlock (or flock). anyway it should work :( * The lock-issue is ONLY in jails! i do use jails, i do use dovecot for IMAP/POP and everything works. anyway i don't use dovecot-deliver. So, what does that mean? What is limiting the locking in jails, howto avoid? no idea. as far as we are in jail it should work the same at least in theory. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: locking attempts fails in FreeBSD (jail)
So, what does that mean? What is limiting the locking in jails, howto avoid? other question - what filesystem do you use for directory when locks are placed? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: locking attempts fails in FreeBSD (jail)
hi, other question - what filesystem do you use for directory when locks are placed? in-jail# mount /dev/mirror/gm0s1d on / (ufs, local, soft-updates) host-view: /dev/mirror/gm0s1d on /var (ufs, local, soft-updates) the jail is in /var/jails/mail/ ... additionally procfs on /var/jails/mail/proc (procfs, local) devfs on /var/jails/mail/dev (devfs, local) /usr on /var/jails/mail/usr (nullfs, local, read-only) /usr/vol1/maildirs on /var/jails/mail/maildirs (nullfs, local) I tested dovecot/ssl-build-param on another server: in host ok, in all jails the same error. ?!?!? 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: locking attempts fails in FreeBSD (jail)
other question - what filesystem do you use for directory when locks are placed? in-jail# mount /dev/mirror/gm0s1d on / (ufs, local, soft-updates) me too UFS. no other questions, and no other ideas. sorry. procfs on /var/jails/mail/proc (procfs, local) devfs on /var/jails/mail/dev (devfs, local) /usr on /var/jails/mail/usr (nullfs, local, read-only) looks like you administer jails the same way as me (/usr shared). Probably your /usr/local/etc is a symlink to have different configs both places. But i will ask - is it? AND - make sure dovocot-deliver does not try writing anything into /usr. Most programs don't but some do, if so you have to move that directory out of /usr and make symlink. squid proxy do this. I tested dovecot/ssl-build-param on another server: in host ok, in all jails the same error. ?!?!? The only idea left is that it writes to /usr someplace. BTW do you need /proc in jails. i never used it, maybe it doesn't work properly in jail, and ssl-build-param make use it when it's available. But for sure it do run without /proc mounted. what version of dovecot you use? mine is dovecot-1.1.11 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org