[Dovecot] Restarting dovecot periodically fails with "Socket already exists: /var/run/dovecot/anvil"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hello
restarting dovecot regularly fails with version 2.0.13 on Ubuntu 11.10 due to a running child process exiting after the main dovecot process.
Oct 13 15:04:58 ubuntu dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil Oct 13 15:04:58 ubuntu dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil-auth-penalty Oct 13 15:04:58 ubuntu dovecot: master: Fatal: Failed to start listeners Oct 13 15:04:58 ubuntu kernel: [11132.825253] init: dovecot main process (8668) terminated with status 89
The dovecot/anvil process appears to be the cause of the problem (snapshot of running dovecot processes just after main dovecot process stops):
root 8418 8080 0 15:02 pts/0 00:00:00 stop dovecot root 8419 1 0 15:02 ? 00:00:00 dovecot/anvil root 8422 8420 0 15:02 ? 00:00:00 grep dovecot
This is an Ubuntu specific issue as we use upstart to manage dovecot which monitors the status of the main dovecot process; the Debian init script appears to make provision for this happening.
I can work around this in the upstart configuration but it does look like a potential bug in the sub-process handling in dovecot.
Any help much appreciated - please feel free to comment on https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/873390 as well.
Regards
James Page Ubuntu Core Developer
dovecot -n
# 2.0.13: /etc/dovecot/dovecot.conf # OS: Linux 3.0.0-12-generic-pae i686 Ubuntu 11.10 mail_location = maildir:~/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 sieve ssl_cert = was automatically rejected:%n%r }
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJOlwAJAAoJEL/srsug59jD1e4QAIB0/OhBhgr7HYqJNh3d1f69 8vGl6LSb2jjJb6bI+GX8QRHDDHXs6g3RadpHTEnDngJPLRPJxnnmr/mqcG+sAeYa 92shRyWnZQFEHJkl9hE1t1OS7skpLezWgSl6nOtzkRxm3yB0+w81PyQZVH2QArKf dATww3t0hMd3ybPEJnZwSlIQ/82i79qd8RZd1orERdIKN1wIyhb2uOi1XXBvGHZo hZKhO1sv3vz1RLpJXeWIVUNK8RQHJcvAOdqvTeT7kzx1gdxy3ycr7WOTUFY3Nc83 SYFyV9/miSNc45n+eDnsoknwggn0JWMkMA1jzRQz9OGCWFkJVFIuOE9jwJcFP6HY +8OnWwgdu5qNQ6nrn4+M1dB1MrFV5aFQmSuXsuAFXkCYywajdVhNyTkC8wERUBf1 NMv4PQRP0tA/UOOy9qNnNf9y3kQ1ItJ5ZhBTOO5WctnowYHDTWtnoxD7m0aEM1rA NH1TFolUgeiT6B9xFcreq42qEVYItKV60o2gv8fMDXwtkSjfDfJ2/88/45dcTOuK t+qUZnpI+AgCak7AfYShj1SjYN80BbpPpQ0WtG6MObXBZZl84paNpAUibUfN0tPy cEscYqUhkkptbfenJe3ldz0S2AhlrDTFk3cWGKwwlKY+29vBsoZtbgIamgrOKLX9 AbdvqFx8gnYe5af1k3eL =6Mfk -----END PGP SIGNATURE-----
On Thu, 2011-10-13 at 16:13 +0100, James Page wrote:
restarting dovecot regularly fails with version 2.0.13 on Ubuntu 11.10 due to a running child process exiting after the main dovecot process.
Oct 13 15:04:58 ubuntu dovecot: master: Error: service(anvil): Socket already exists: /var/run/dovecot/anvil
This is an Ubuntu specific issue as we use upstart to manage dovecot which monitors the status of the main dovecot process; the Debian init script appears to make provision for this happening.
http://hg.dovecot.org/dovecot-2.1/rev/6894298ae5fd should apply to v2.0 as well, but since it's a bit large change I don't know if I should backport it, at least without some more testing.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 05/11/11 17:20, Timo Sirainen wrote:
http://hg.dovecot.org/dovecot-2.1/rev/6894298ae5fd should apply to v2.0 as well, but since it's a bit large change I don't know if I should backport it, at least without some more testing.
Thanks for this pointer Timo
I've patched this into dovecot in the latest Ubuntu development release - it appears to resolve the issue and we are a good 6 months from release so plenty of time to a) flush out any problems or b) upgrade to 2.1.
Cheers
James
James Page Ubuntu Core Developer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJOvU4gAAoJEL/srsug59jD7fYQAIy+wnPiYuv58wazO23V4nyA ut2D6iaChsNG7XrySNtgY/RajOu9O8dIOnLuLTD9DmxbRZEaH2Tzd/7n6I0P3i7t h3PyI3tW7GPFyII/VOnAsTjfmncjF/ug7ohyUw2CYc1z2D7lQE0zTFlQeEWCqDCz mxKEHg37TvPlRZzfSvzgjn2hoTJ/vmhQPM11I8uEVYOnWWwahCZxkA2rgBmkjtEG mhCZfgoaJ6BZ5fH0BbjChN5Vr4zuQVEws8fkbGX/7/JPUxKHkz7jdxhVuZr7YN5o xy0HfGRr4sqa1v6qqTAFvFmZu6n3V6dVvn64SkjDLPECnOH80HxPzwMKN9+/cnYi d54/xIYH5N0pPhnSah+/caYCJp5FqDeAmim7xpMLExMzRdqvfbaI7ggGILecN3cH iJiWyj32jCArlAFRFKbxrin8VMRFhU4i+S7zigDp3jFuMotMnL5e1Wk+qrDjKRvt XhairFpT9po5rSvJp/J6qJxWrb+1vznBQkKgl91o570AjBBbRfmYvhxtnU5j2FZ9 MwA8pAD9+n7dc5aGY3o8ABa+5/0wqkAt8qGQ8HYuq+I86NwUbjTadvFLZcfy1Vy5 OOSoMPeruz2tQTCb0/PIHM35MFCmm45Lo0ZamqFmCi4iRKcKwx4tVesJHZY51lGu f29+i9iDlLmofPvhUQkF =hTb+ -----END PGP SIGNATURE-----
participants (2)
-
James Page
-
Timo Sirainen