Replication fails with dsync-server(admin at asergis.com): Error: Couldn't create lock /home/admin/.dovecot-sync.lock: No such file or directory
Aki Tuomi
aki.tuomi at dovecot.fi
Sat Mar 31 08:02:55 EEST 2018
Your userdb is returning user 'admin' on either site. For the segfault would be useful to get gdb backtrace (or equivalent).
Aki
> On 30 March 2018 at 21:04 Vladimir Tiukhtin <vladimir.tiukhtin at asergis.com> wrote:
>
>
> Hello
>
>
> I have configured replication using dsync. It fails with a message
>
> Error: Couldn't create lock /home/admin/.dovecot-sync.lock: No such file
> or directory
>
> This directory predictably does not exist - all my users are supposed to
> be virtual. I can not find an option to switch this off. At the same
> time if I try manual replication I get segfault error
>
>
> Mar 30 17:17:24 localhost.localdomain dovecot[29063]:
> dsync-server(admin at asergis.com): Error: Couldn't create lock
> /home/admin/.dovecot-sync.lock: No such file or directory
> Mar 30 17:17:54 localhost.localdomain dovecot[29063]:
> dsync-server(admin at asergis.com): Error: sieve-storage: couldn't find
> storage root directory; sieve_dir was left unconfigured and
> autodetection failed
> Mar 30 17:17:54 localhost.localdomain dovecot[29063]:
> dsync-server(admin at asergis.com): Fatal: master: service(doveadm): child
> 29133 killed with signal 11 (core dumps disabled)
> Mar 30 17:17:54 localhost.localdomain kernel: doveadm-server[29133]:
> segfault at 58 ip 00007fa0608c9ca1 sp 00007fffbf349480 error 4 in
> lib10_doveadm_sieve_plugin.so[7fa0608c2000+b000]
> Mar 30 17:22:25 localhost.localdomain dovecot[29063]:
> dsync-server(admin at asergis.com): Error: Couldn't create lock
> /home/admin/.dovecot-sync.lock: No such file or directory
> Mar 30 17:27:58 localhost.localdomain kernel: doveadm[29153]: segfault
> at 58 ip 00007fc1e65baca1 sp 00007ffd1a78b020 error 4 in
> lib10_doveadm_sieve_plugin.so[7fc1e65b3000+b000]
>
> **
>
> *My OS*:
>
> # cat /etc/os-release
> NAME="CentOS Linux"
> VERSION="7 (Core)"
> ID="centos"
> ID_LIKE="rhel fedora"
> VERSION_ID="7"
> PRETTY_NAME="CentOS Linux 7 (Core)"
> ANSI_COLOR="0;31"
> CPE_NAME="cpe:/o:centos:centos:7"
> HOME_URL="https://www.centos.org/"
> BUG_REPORT_URL="https://bugs.centos.org/"
>
> CENTOS_MANTISBT_PROJECT="CentOS-7"
> CENTOS_MANTISBT_PROJECT_VERSION="7"
> REDHAT_SUPPORT_PRODUCT="centos"
> REDHAT_SUPPORT_PRODUCT_VERSION="
>
> *My dovecot:*
>
> # dovecot --version
> 2.2.10
>
> *My config*:
>
> auth_cache_size = 12 M
> auth_cache_ttl = 1 days
> auth_debug = yes
> auth_mechanisms = plain login
> auth_username_chars = abcdefghijklmnopqrstuvwxyz.@
> auth_verbose = yes
> base_dir = /var/run/dovecot/
> default_client_limit = 1024
> default_process_limit = 128
> doveadm_password = mysecretpasswordsharedamongservers
> first_valid_uid = 1000
> instance_name = powergate
> login_greeting = with a great power comes great responsibility
> mail_location = mdbox:/var/mail/%d/%n
> mail_plugins = replication notify
> mail_privileged_group = mail
> mbox_write_locks = fcntl
> namespace inbox {
> inbox = yes
> location =
> mailbox Drafts {
> auto = no
> special_use = \Drafts
> }
> mailbox Junk {
> special_use = \Junk
> }
> mailbox Sent {
> auto = subscribe
> special_use = \Sent
> }
> mailbox "Sent Messages" {
> auto = no
> special_use = \Sent
> }
> mailbox Spam {
> auto = create
> special_use = \Junk
> }
> mailbox Trash {
> auto = no
> special_use = \Trash
> }
> mailbox virtual/All {
> auto = no
> special_use = \All
> }
> prefix =
> }
> passdb {
> args = /etc/dovecot/dovecot-sql.conf.ext
> driver = sql
> }
> plugin {
> mail_replica = tcp:192.168.100.11:54321
> }
> protocols = imap lmtp
> service aggregator {
> fifo_listener replication-notify-fifo {
> mode = 0666
> user = $default_internal_user
> }
> unix_listener replication-notify {
> mode = 0666
> user = $default_internal_user
> }
> }
> service auth {
> client_limit = 512
> inet_listener auth-client {
> port = 12345
> }
> unix_listener auth-userdb {
> mode = 0666
> }
> }
> service doveadm {
> inet_listener {
> port = 54321
> }
> }
> service imap-login {
> inet_listener imap {
> port = 0
> }
> inet_listener imaps {
> port = 993
> ssl = yes
> }
> process_min_avail = 2
> service_count = 1
> }
> service imap {
> service_count = 1
> }
> service lmtp {
> unix_listener lmtp {
> group = postfix
> mode = 0600
> user = postfix
> }
> }
> ssl = required
> ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
> ssl_dh_parameters_length = 2048
> ssl_key = </etc/pki/dovecot/private/dovecot.pem
> userdb {
> args = /etc/dovecot/dovecot-sql.conf.ext
> driver = sql
> }
>
More information about the dovecot
mailing list