Your message dated Tue, 23 Feb 2016 16:37:03 +0200
with message-id <[email protected]>
and subject line Fixed in 2.1
has caused the Debian Bug report #654591,
regarding dovecot-core: race condition in init script restart action
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
654591: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654591
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)
# 2.0.15: /etc/dovecot/dovecot.conf
# OS: Linux 3.1.0-1-amd64 x86_64 Debian wheezy/sid 
auth_cache_negative_ttl = 15 mins
auth_cache_size = 4 k
auth_mechanisms = plain login
auth_username_format = %Lu
auth_verbose = yes
auth_worker_max_count = 50
default_client_limit = 100
first_valid_gid = 5000
first_valid_uid = 5000
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_access_groups = vmail
mail_debug = yes
mail_gid = vmail
mail_location = maildir:~/Maildir
mail_plugins = " quota zlib fts fts_squat acl virtual"
mail_privileged_group = mail
mail_uid = vmail
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 ihave
namespace {
  hidden = no
  inbox = yes
  list = yes
  location = 
  prefix = 
  separator = .
  subscriptions = yes
  type = private
}
namespace {
  hidden = no
  list = children
  location = maildir:%%h/Maildir:INDEX=~/shared/%%u
  prefix = "#Shared.%%u."
  separator = .
  subscriptions = no
  type = shared
}
namespace {
  hidden = no
  list = children
  location = maildir:/vmail/public/milkypond:INDEX=~/public/milkypond
  prefix = "#MilkyPond."
  separator = .
  subscriptions = no
  type = public
}
namespace {
  hidden = no
  list = children
  location = virtual:~/virtual/:LAYOUT=maildir++
  prefix = "#Virtual."
  separator = .
  subscriptions = no
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile::cache_secs=300
  acl_shared_dict = file:/vmail/shared-mailboxes.db
  antispam_backend = spool2dir
  antispam_signature = X-DSPAM-Signature
  antispam_signature_missing = move
  antispam_spam = Z-Spam
  antispam_spool2dir_notspam = /var/spool/dovecot-antispam/ham_%%020lu-%u-%%05lu
  antispam_spool2dir_spam = /var/spool/dovecot-antispam/spam_%%020lu-%u-%%05lu
  fts = squat
  fts_squat = partial=4 full=10
  quota = maildir:User quota
  quota_rule = *:storage=512M
  recipient_delimiter = +
  sieve = ~/sieve/active.sieve
  sieve_dir = ~/sieve/scripts
  sieve_global_dir = /etc/dovecot/global-sieve/scripts
  sieve_max_actions = 32
  sieve_max_redirects = 4
  sieve_max_script_size = 1M
  sieve_quota_max_scripts = 64
  sieve_quota_max_storage = 30M
}
postmaster_address = [email protected]
protocols = " imap sieve pop3"
quota_full_tempfail = yes
service anvil {
  client_limit = 500
}
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = mail
    mode = 0660
    user = vmail
  }
  user = $default_internal_user
}
service imap-login {
  process_min_avail = 12
  service_count = 1
  vsz_limit = 64 M
}
service imap-postlogin {
  executable = script-login /usr/local/sbin/srv_imap_post_login
}
service imap {
  executable = imap imap-postlogin
  process_limit = 128
  vsz_limit = 512 M
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  service_count = 1
  vsz_limit = 64 M
}
service managesieve {
  process_limit = 32
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service pop3 {
  process_limit = 32
}
ssl_cert = </etc/dovecot/certs/server.crt
ssl_key = </etc/dovecot/certs/server.key
ssl_parameters_regenerate = 24
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
valid_chroot_dirs = /vmail
verbose_proctitle = yes
protocol lda {
  mail_plugins = " quota zlib fts fts_squat acl virtual sieve"
}
protocol imap {
  mail_max_userip_connections = 10
  mail_plugins = " quota zlib fts fts_squat acl virtual imap_quota imap_zlib 
imap_acl antispam"
}
protocol sieve {
  mail_max_userip_connections = 10
}
protocol pop3 {
  mail_max_userip_connections = 10
  pop3_uidl_format = %08Xu%08Xv
}

Attachment: pgpf9bzo9fQdY.pgp
Description: PGP Digital Signature


--- End Message ---
--- Begin Message ---
Version: 1:2.1.3-1

Hi,

This bug was fixed upstream in 2.1, so I'm marking it as done in 
1:2.1.3-1 (the first 2.1 version in Debian).

Regards,
Apollon

--- End Message ---

Reply via email to