Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#654591: dovecot-core: race condition in init script restart action

55 views
Skip to first unread message

Marc Dequènes (Duck)

unread,
Jan 4, 2012, 9:20:02 AM1/4/12
to
Package: dovecot-core
Version: 1:2.0.15-1
Severity: minor

Coin,

I got this failure:
# /etc/init.d/dovecot restart
Restarting IMAP/POP3 mail server: dovecotError: service(imap-login):
listen(*, 143) failed: Address already in use
Error: service(imap-login): listen(::, 143) failed: Address already in use
Error: service(imap-login): listen(*, 993) failed: Address already in use
Error: service(imap-login): listen(::, 993) failed: Address already in use
Error: service(config): Socket already exists: /var/run/dovecot/config
Error: service(auth): Socket already exists: /var/run/dovecot/auth-login
Error: service(auth): Socket already exists: /var/run/dovecot/auth-client
Error: service(auth): Socket already exists: /var/run/dovecot/auth-userdb
Error: service(auth): Socket already exists: /var/run/dovecot/auth-master
Error: service(auth): Socket already exists: /var/spool/postfix/private/auth
Error: service(anvil): Socket already exists: /var/run/dovecot/anvil
Error: service(anvil): Socket already exists:
/var/run/dovecot/anvil-auth-penalty
Fatal: Failed to start listeners
failed!

A few seconds later:
# /etc/init.d/dovecot restart
Restarting IMAP/POP3 mail server: dovecot.

When this happened, i just added the antispam plugin and restarted to
take it into account. The configuration (dovecot -n) is attached, but
this is not a configuration problem, as it starts without any complaint.

I tried to reproduce, switching back and forth between the old to the
new configuration multiple times without success. This is probably
related to waiting for connections and child processes to finish, even
if the init script seems to have some code for the later.

As restarting a few seconds later solves this issue, i downgraded the
severity, but the problem remains and should be solved.

Regards.

--
Marc Dequènes (Duck)
dovecot_conf.txt

Timo Sirainen

unread,
Jan 4, 2012, 10:00:02 AM1/4/12
to
On Wed, 2012-01-04 at 15:13 +0100, Marc Dequènes (Duck) wrote:
> I got this failure:
> # /etc/init.d/dovecot restart
> Restarting IMAP/POP3 mail server: dovecotError: service(imap-login):
> listen(*, 143) failed: Address already in use
> Error: service(imap-login): listen(::, 143) failed: Address already in use
> Error: service(imap-login): listen(*, 993) failed: Address already in use
..
> I tried to reproduce, switching back and forth between the old to the
> new configuration multiple times without success. This is probably
> related to waiting for connections and child processes to finish, even
> if the init script seems to have some code for the later.

Yes. This is properly fixed in v2.1.
http://hg.dovecot.org/dovecot-2.1/rev/6894298ae5fd





--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Marc Dequènes (Duck)

unread,
Jan 4, 2012, 11:40:01 PM1/4/12
to
tags 654591 + fixed-upstream
thanks

Quoting Timo Sirainen <t...@iki.fi>:

> Yes. This is properly fixed in v2.1.
> http://hg.dovecot.org/dovecot-2.1/rev/6894298ae5fd

Thanks for your quick reply :-).
Happy new year btw.

--
Marc Dequènes (Duck)
0 new messages