panic: dsync and imapc

Alex Ha alex.handle at gmail.com
Thu Aug 14 14:11:12 UTC 2014


Hi Dovecot list!

I try to sync from a remote imap server to my local dovecot server via the
dsync tool with imapc.

Here is my command:

# /usr/local/dovecot/bin/dsync -c
/usr/local/dovecot/etc/dovecot/dovecot.conf -D -o imapc_user=
test at example.com -o imapc_password=pwd backup -R -u test at example.com imapc:

Here the error message:

dsync(test at example.com): Panic: file quota-maildir.c: line 827: unreached

Please see the attached debug.txt for a full debug messages and stacktrace.

System info
OS: Ubuntu 14.04 Server 64 Bit
Dovecot: 2.2.13

Thanks,

Alex
-------------- next part --------------
# 2.2.13: /usr/local/dovecot/etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-27-generic x86_64 Ubuntu 14.04 LTS 
auth_default_realm = example.com
auth_mechanisms = plain login
auth_verbose = yes
default_client_limit = 10000
default_process_limit = 2000
disable_plaintext_auth = no
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
imapc_features = rfc822.size fetch-headers
imapc_host = external-imap.example.com
imapc_list_prefix = INBOX
imapc_user = %u
mail_location = maildir:~/Maildir
mail_plugins = " quota"
mail_prefetch_count = 20
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = maildir:User quota
  quota_warning = storage=90%% quota-warning 90 %u
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_save_uidl = yes
postmaster_address = postmaster at example.com
service anvil {
  client_limit = 12560
}
service auth {
  inet_listener {
    port = 12345
  }
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    user = vmail
  }
  user = vmail
}
ssl_ca = </etc/ssl/certs/SSL_Thawte_CA_Bundle.pem
ssl_cert = </etc/ssl/certs/example.com.crt
ssl_key = </etc/ssl/private/example.com.key
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
verbose_proctitle = yes
protocol lmtp {
  mail_plugins = " quota"
}
protocol lda {
  mail_plugins = " quota"
}
protocol imap {
  mail_max_userip_connections = 150
  mail_plugins = " quota imap_quota"
}
protocol pop3 {
  mail_max_userip_connections = 150
}
-------------- next part --------------
# /usr/local/dovecot/bin/dsync -c /usr/local/dovecot/etc/dovecot/dovecot.conf -D -o imapc_user=test at example.com -o imapc_password=pwd backup -R -u test at example.com imapc:
doveadm(root): Debug: Loading modules from directory: /usr/local/dovecot/lib/dovecot
doveadm(root): Debug: Module loaded: /usr/local/dovecot/lib/dovecot/lib10_quota_plugin.so
doveadm(root): Debug: Loading modules from directory: /usr/local/dovecot/lib/dovecot/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: /usr/local/dovecot/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so: undefined symbol: acl_user_module (this is usually intentional, so just ignore this message)
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/local/dovecot/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message)
doveadm(root): Debug: Module loaded: /usr/local/dovecot/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/local/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_backend_rescan (this is usually intentional, so just ignore this message)
doveadm(test at example.com): Debug: Added userdb setting: mail=maildir:/data/vmail/e/example.com/t/test/Maildir/
doveadm(test at example.com): Debug: Added userdb setting: plugin/quota_rule=*:bytes=0
doveadm(test at example.com): Debug: Effective uid=8000, gid=8000, home=/data/vmail/m/mailtest.kufnet.at/m/mynet
doveadm(test at example.com): Debug: Quota root: name=User quota backend=maildir args=
doveadm(test at example.com): Debug: Quota rule: root=User quota mailbox=* bytes=0 messages=0
doveadm(test at example.com): Debug: Quota warning: bytes=0 (90%) messages=0 reverse=no command=quota-warning 90 test at example.com
doveadm(test at example.com): Debug: Quota grace: root=User quota bytes=0 (10%)
doveadm(test at example.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/data/vmail/e/example.com/t/test/Maildir/
doveadm(test at example.com): Debug: maildir++: root=/data/vmail/e/example.com/t/test/Maildir, index=, indexpvt=, control=, inbox=/data/vmail/e/example.com/t/test/Maildir, alt=
doveadm(test at example.com): Debug: Namespace : Using permissions from /data/vmail/e/example.com/t/test/Maildir: mode=0700 gid=default
dsync(test at example.com): Debug: Effective uid=8000, gid=8000, home=/data/vmail/m/mailtest.kufnet.at/m/mynet
dsync(test at example.com): Debug: Quota root: name=User quota backend=maildir args=
dsync(test at example.com): Debug: Quota rule: root=User quota mailbox=* bytes=0 messages=0
dsync(test at example.com): Debug: Quota warning: bytes=0 (90%) messages=0 reverse=no command=quota-warning 90 test at example.com
dsync(test at example.com): Debug: Quota grace: root=User quota bytes=0 (10%)
dsync(test at example.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=imapc:
dsync(test at example.com): Debug: imapc(external-imap.example.com:143): Looking up IP address
dsync(test at example.com): Debug: imapc(external-imap.example.com:143): Connecting to external-imap.example.com:143
dsync(test at example.com): Debug: imapc(external-imap.example.com:143): Server capabilities: IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS
dsync(test at example.com): Debug: imapc(external-imap.example.com:143): Authenticating as test at example.com
dsync(test at example.com): Debug: imapc(external-imap.example.com:143): Authenticated successfully
dsync(test at example.com): Debug: imapc: root=, index=, indexpvt=, control=, inbox=, alt=
dsync(test at example.com): Panic: file quota-maildir.c: line 827: unreached
dsync(test at example.com): Error: Raw backtrace: /usr/local/dovecot/lib/dovecot/libdovecot.so.0(+0x682a0) [0x7f514ec0e2a0] -> /usr/local/dovecot/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7f514ec0e30a] -> /usr/local/dovecot/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f514ebc8a5e] -> /usr/local/dovecot/lib/dovecot/lib10_quota_plugin.so(+0x9888) [0x7f514e3d4888] -> /usr/local/dovecot/lib/dovecot/lib10_quota_plugin.so(quota_add_user_namespace+0x143) [0x7f514e3d08f3] -> /usr/local/dovecot/lib/dovecot/lib10_quota_plugin.so(quota_mailbox_list_created+0x19a) [0x7f514e3d710a] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(hook_mailbox_list_created+0x61) [0x7f514eed0f51] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(mailbox_list_create+0x345) [0x7f514eed43c5] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(mail_storage_create_full+0x44d) [0x7f514eecd36d] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(mail_storage_create+0x1e) [0x7f514eecd62e] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(+0x4c8f8) [0x7f514eec78f8] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(mail_namespaces_init+0xef) [0x7f514eec859f] -> /usr/local/dovecot/lib/dovecot/libdovecot-storage.so.0(mail_storage_service_next+0x54d) [0x7f514eedac5d] -> /usr/local/dovecot/bin/dsync() [0x429501] -> /usr/local/dovecot/bin/dsync() [0x412123] -> /usr/local/dovecot/bin/dsync(doveadm_mail_try_run+0x257) [0x412dd7] -> /usr/local/dovecot/bin/dsync(main+0x3d8) [0x411d18] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f514e801ec5] -> /usr/local/dovecot/bin/dsync() [0x411f2f]
Aborted (core dumped)


More information about the dovecot mailing list