wuwei
2015-Jul-17 07:09 UTC
migrate via dsync error Panic: file mail-transaction-log.c: line 271 (mail_transaction_log_rotate): assertion failed: (file->locked)
hi all when I use dsync migrate users from dovecot2.0.14(maildir Solaris10) to dovecot2.2.15(mdbox debian7) , most of the users migrated well, only one user has a error. migrate cmd: "$dovecotHome"bin/doveadm -Dv -o mail_fsync=never -o imapc_host=$ip backup -R -u $user imapc: dovecot2.2.15 log: doveadm(root): Debug: Loading modules from directory: /home/mail/dovecot/lib/dovecot doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/lib10_quota_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/lib15_notify_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/lib20_fts_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/lib20_mail_log_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/lib20_zlib_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/lib21_fts_lucene_plugin.so doveadm(root): Debug: Loading modules from directory: /home/mail/dovecot/lib/dovecot/doveadm doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: /home/mail/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: /home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_expire_plugin.so: undefined s ymbol: expire_set_deinit (this is usually intentional, so just ignore this message) doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_lucene_plugin.so doveadm(root): Debug: Module loaded: /home/mail/dovecot/lib/dovecot/doveadm/lib20_doveadm_fts_plugin.so doveadm(chenwenguang at eachnet.com): Debug: auth input: chenwenguang at eachnet.com home=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com uid=1010 gid=1010 mail=mdbox:/ data/02/eachnet.com/281/721/chenwenguang at eachnet.com quota_rule=*:storage=1024MB sieve_dir=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com sieve=/data/02/eachnet. com/281/721/chenwenguang at eachnet.com/dovecot.sieve doveadm(chenwenguang at eachnet.com): Debug: Added userdb setting: mail=mdbox:/data/02/eachnet.com/281/721/chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Added userdb setting: plugin/quota_rule=*:storage=1024MB doveadm(chenwenguang at eachnet.com): Debug: Added userdb setting: plugin/sieve=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com/dovecot.sieve doveadm(chenwenguang at eachnet.com): Debug: Added userdb setting: plugin/sieve_dir=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Effective uid=1010, gid=1010, home=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Quota root: name=chenwenguang at eachnet.com backend=dict args=:redis:host=172.24.202.60:prefix=user_quota/ doveadm(chenwenguang at eachnet.com): Debug: Quota rule: root=chenwenguang at eachnet.com mailbox=* bytes=1073741824 messages=0 doveadm(chenwenguang at eachnet.com): Debug: Quota rule: root=chenwenguang at eachnet.com mailbox=Trash bytes=+858993459 (80%) messages=0 doveadm(chenwenguang at eachnet.com): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Quota warning: bytes=858993459 (80%) messages=0 reverse=no command=quota-warning 80 chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Quota warning: bytes=751619276 (70%) messages=0 reverse=no command=quota-warning 70 chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Quota warning: bytes=644245094 (60%) messages=0 reverse=no command=quota-warning 60 chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: Quota grace: root=chenwenguang at eachnet.com bytes=107374182 (10%) doveadm(chenwenguang at eachnet.com): Debug: dict quota: user=chenwenguang at eachnet.com, uri=redis:host=172.24.202.60:prefix=user_quota/, noenforcing=0 doveadm(chenwenguang at eachnet.com): Debug: Namespace inbox: type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:/data/02/eachn et.com/281/721/chenwenguang at eachnet.com doveadm(chenwenguang at eachnet.com): Debug: fs: root=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com, index=, indexpvt=, control=, inbox=, altdoveadm(chenwenguang at eachnet.com): Debug: Namespace : Using permissions from /data/02/eachnet.com/281/721/chenwenguang at eachnet.com: mode=0700 gid=default dsync(chenwenguang at eachnet.com): Debug: Effective uid=1010, gid=1010, home=/data/02/eachnet.com/281/721/chenwenguang at eachnet.com dsync(chenwenguang at eachnet.com): Debug: Quota root: name=chenwenguang at eachnet.com backend=dict args=:redis:host=172.24.202.60:prefix=user_quota/ dsync(chenwenguang at eachnet.com): Debug: Quota rule: root=chenwenguang at eachnet.com mailbox=* bytes=1073741824 messages=0 dsync(chenwenguang at eachnet.com): Debug: Quota rule: root=chenwenguang at eachnet.com mailbox=Trash bytes=+858993459 (80%) messages=0 dsync(chenwenguang at eachnet.com): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 chenwenguang at eachnet.com dsync(chenwenguang at eachnet.com): Debug: Quota warning: bytes=858993459 (80%) messages=0 reverse=no command=quota-warning 80 chenwenguang at eachnet.com dsync(chenwenguang at eachnet.com): Debug: Quota warning: bytes=751619276 (70%) messages=0 reverse=no command=quota-warning 70 chenwenguang at eachnet.com dsync(chenwenguang at eachnet.com): Debug: Quota warning: bytes=644245094 (60%) messages=0 reverse=no command=quota-warning 60 chenwenguang at eachnet.com dsync(chenwenguang at eachnet.com): Debug: Quota grace: root=chenwenguang at eachnet.com bytes=107374182 (10%) dsync(chenwenguang at eachnet.com): Debug: dict quota: user=chenwenguang at eachnet.com, uri=redis:host=172.24.202.60:prefix=user_quota/, noenforcing=0 dsync(chenwenguang at eachnet.com): Debug: Namespace inbox: type=private, prefix=, sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=imapc: dsync(chenwenguang at eachnet.com): Debug: imapc(172.24.202.201:143): Looking up IP address dsync(chenwenguang at eachnet.com): Debug: imapc(172.24.202.201:143): Connecting to 172.24.202.201:143 dsync(chenwenguang at eachnet.com): Debug: imapc(172.24.202.201:143): Server capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN dsync(chenwenguang at eachnet.com): Debug: imapc(172.24.202.201:143): Authenticating as chenwenguang at eachnet.com dsync(chenwenguang at eachnet.com): Debug: imapc(172.24.202.201:143): Server capabilities: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THRE AD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST -STATUS QUOTA dsync(chenwenguang at eachnet.com): Debug: imapc(172.24.202.201:143): Authenticated successfully dsync(chenwenguang at eachnet.com): Debug: imapc: root=, index=, indexpvt=, control=, inbox=, altdsync(chenwenguang at eachnet.com): Debug: fts: Indexes disabled for namespace '' dsync(chenwenguang at eachnet.com): Debug: brain M: Local mailbox tree: Drafts guid=e0187b65e763143666d22094cedfe6a4 uid_validity=1279693072 uid_next=1 subs=no last_change =0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Local mailbox tree: INBOX guid=c92f64f79f0d1ed01e6d5b314f04886c uid_validity=1279693068 uid_next=134807 subs=no last_ch ange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Local mailbox tree: Trash guid=7f5af7ba291b2df1a11d573bdb55d7e9 uid_validity=1279693071 uid_next=1 subs=no last_change0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Local mailbox tree: Drafts guid=e0187b65e763143666d22094cedfe6a4 uid_validity=1279693072 uid_next=1 subs=no last_change =0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Local mailbox tree: Sent Items guid=34b8141947b9372e94589bd35a54dac5 uid_validity=1279693070 uid_next=1 subs=no last_ch ange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Local mailbox tree: Trash guid=7f5af7ba291b2df1a11d573bdb55d7e9 uid_validity=1279693071 uid_next=1 subs=no last_change0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Local mailbox tree: INBOX guid=c92f64f79f0d1ed01e6d5b314f04886c uid_validity=1279693068 uid_next=1 subs=no last_change0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Local mailbox tree: Sent Items guid=34b8141947b9372e94589bd35a54dac5 uid_validity=1279693070 uid_next=1 subs=no last_ch ange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Local mailbox tree: Junk E-mail guid=9e1a7b3d0b113405571152c94fcf1154 uid_validity=1279693069 uid_next=1 subs=no last_c hange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Local mailbox tree: Junk E-mail guid=9e1a7b3d0b113405571152c94fcf1154 uid_validity=1279693069 uid_next=1 subs=no last_c hange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Remote mailbox tree: INBOX guid=c92f64f79f0d1ed01e6d5b314f04886c uid_validity=1279693068 uid_next=134807 subs=no last_c hange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Remote mailbox tree: Drafts guid=e0187b65e763143666d22094cedfe6a4 uid_validity=1279693072 uid_next=1 subs=no last_chang e=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Remote mailbox tree: Trash guid=7f5af7ba291b2df1a11d573bdb55d7e9 uid_validity=1279693071 uid_next=1 subs=no last_change =0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Remote mailbox tree: Sent Items guid=34b8141947b9372e94589bd35a54dac5 uid_validity=1279693070 uid_next=1 subs=no last_c hange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain M: Remote mailbox tree: Junk E-mail guid=9e1a7b3d0b113405571152c94fcf1154 uid_validity=1279693069 uid_next=1 subs=no last_ change=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Remote mailbox tree: Drafts guid=e0187b65e763143666d22094cedfe6a4 uid_validity=1279693072 uid_next=1 subs=no last_chang e=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Remote mailbox tree: Trash guid=7f5af7ba291b2df1a11d573bdb55d7e9 uid_validity=1279693071 uid_next=1 subs=no last_change =0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Remote mailbox tree: Sent Items guid=34b8141947b9372e94589bd35a54dac5 uid_validity=1279693070 uid_next=1 subs=no last_c hange=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Remote mailbox tree: INBOX guid=c92f64f79f0d1ed01e6d5b314f04886c uid_validity=1279693068 uid_next=1 subs=no last_change =0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Remote mailbox tree: Junk E-mail guid=9e1a7b3d0b113405571152c94fcf1154 uid_validity=1279693069 uid_next=1 subs=no last_ change=0 last_subs=0 dsync(chenwenguang at eachnet.com): Debug: brain S: Skipping unchanged mailbox e0187b65e763143666d22094cedfe6a4 dsync(chenwenguang at eachnet.com): Panic: file mail-transaction-log.c: line 271 (mail_transaction_log_rotate): assertion failed: (file->locked) dsync(chenwenguang at eachnet.com): Error: Raw backtrace: /home/mail/dovecot/lib/dovecot/libdovecot.so.0(+0x750bf) [0x7fe817a980bf] -> /home/mail/dovecot/lib/dovecot/libdo vecot.so.0(default_fatal_handler+0x2a) [0x7fe817a9819a] -> /home/mail/dovecot/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fe817a4a335] -> /home/mail/dovecot/lib/dovecot/ libdovecot-storage.so.0(+0xd499f) [0x7fe817ddb99f] -> /home/mail/dovecot/lib/dovecot/libdovecot-storage.so.0(mail_index_write+0x1e6) [0x7fe817ddac46] -> /home/mail/dove cot/lib/dovecot/libdovecot-storage.so.0(mail_index_sync_commit+0x2db) [0x7fe817dd2f2b] -> /home/mail/dovecot/lib/dovecot/libdovecot-storage.so.0(imapc_mailbox_sync_init +0x20d) [0x7fe817d7690d] -> /home/mail/dovecot/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x35) [0x7fe817d89e05] -> /home/mail/dovecot/lib/dovecot/libdovecot -storage.so.0(mailbox_sync+0x27) [0x7fe817d89f27] -> /home/mail/dovecot/bin/doveadm(dsync_brain_slave_recv_mailbox+0x7b) [0x430aeb] -> /home/mail/dovecot/bin/doveadm(ds ync_brain_run+0x256) [0x42e726] -> /home/mail/dovecot/bin/doveadm() [0x414ec0] -> /home/mail/dovecot/bin/doveadm() [0x416a7d] -> /home/mail/dovecot/bin/doveadm(doveadm_ mail_try_run+0x231) [0x417721] -> /home/mail/dovecot/bin/doveadm(main+0x3a8) [0x413bf8] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7fe8176b5ead] -> / home/mail/dovecot/bin/doveadm() [0x413e11] dovecot2.2.15 conf # 2.2.15: /home/mail/dovecot/etc/dovecot/dovecot.conf doveconf: Warning: service auth { client_limit=80960 } is lower than required under max. load (300000) doveconf: Warning: service anvil { client_limit=60000 } is lower than required under max. load (240003) # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 auth_cache_negative_ttl = 1 days auth_cache_size = 1000 k auth_cache_ttl = 1 days auth_debug = yes auth_debug_passwords = yes auth_master_user_separator = * auth_mechanisms = plain login debug_log_path = /data/logs/dovecot/logs/dovecot.log default_client_limit = 60000 default_internal_user = vmail default_login_user = dovecotauth default_process_limit = 60000 disable_plaintext_auth = no first_valid_gid = 1007 first_valid_uid = 1007 imapc_features = rfc822.size fetch-headers imapc_host = 172.24.173.212 imapc_password = 111111 imapc_user = %u info_log_path = /data/logs/dovecot/logs/dovecot.log log_path = /data/logs/dovecot/logs/dovecot.log mail_debug = yes mail_fsync = never mail_plugins = fts fts_lucene mail_log notify quota zlib mail_prefetch_count = 1 maildir_very_dirty_syncs = yes 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 inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox "Junk E-mail" { auto = subscribe special_use = \Junk } mailbox "Sent Items" { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = separator = . } passdb { args = /home/mail/dovecot/etc/dovecot/passwd.masterusers driver = passwd-file master = yes } passdb { args = /home/mail/dovecot/bin/CheckPassword driver = checkpassword } plugin { fts = lucene fts_lucene = whitespace_chars=@. mail_debug = yes mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename append mail_log_fields = uid box msgid size quota = dict:%u::redis:host=172.24.202.60:prefix=user_quota/ quota_rule2 = Trash:storage=+80%% quota_warning = storage=90%% quota-warning 90 %u quota_warning2 = storage=80%% quota-warning 80 %u quota_warning3 = storage=70%% quota-warning 70 %u quota_warning4 = storage=60%% quota-warning 60 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve welcome_letter_path = /home/mail/dovecot/etc/welcome welcome_letter_url = http://202.108.252.162:8080/domainmail zlib_save = gz zlib_save_level = 6 } pop3_fast_size_lookups = yes pop3_no_flag_updates = yes postmaster_address = postmastar@%d protocols = imap pop3 sieve lmtp service auth-worker { user = dovecotauth } service auth { client_limit = 80960 unix_listener /home/mail/postfix/var/spool/postfix/private/auth-client { group = postfix mode = 0660 user = postfix } } service imap-login { inet_listener imap { port = 143 } service_count = 0 vsz_limit = 2 G } service imap { process_limit = 60240 } service lmtp { inet_listener { port = 11000 } } service managesieve-login { inet_listener sieve { port = 4190 } service_count = 0 vsz_limit = 2 G } service managesieve { process_limit = 80960 } service pop3-login { inet_listener pop3 { port = 110 } service_count = 0 vsz_limit = 2 G } service quota-warning { executable = script /home/mail/dovecot/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = vmail } ssl = no submission_host = 172.24.203.8:25 userdb { driver = prefetch } userdb { args = /home/mail/dovecot/etc/dovecot/dovecot-dict-auth.conf.ext driver = dict } protocol imap { imap_logout_format = bytes=%i/%o mail_plugins = fts fts_lucene mail_log notify quota zlib imap_quota imap_zlib } protocol pop3 { pop3_logout_format = bytes=%i/%o, top=%t/%p, retr=%r/%b, del=%d/%m, size=%s } protocol sieve { mail_max_userip_connections = 1000 mail_plugins = fts fts_lucene mail_log notify quota zlib quota managesieve_implementation_string = Dovecot Pigeonhole managesieve_logout_format = bytes=%i/%o managesieve_max_compile_errors = 10 managesieve_max_line_length = 65536 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 } need you help!thank you! -- View this message in context: http://dovecot.2317879.n4.nabble.com/migrate-via-dsync-error-Panic-file-mail-transaction-log-c-line-271-mail-transaction-log-rotate-asser-tp53328.html Sent from the Dovecot mailing list archive at Nabble.com.
Possibly Parallel Threads
- (re-) dsync: INBOX Can't be deleted
- Trouble using reverse dsync backup (log in successful but almost nothing happens)
- dsync issues due to Prefix difference?
- Issue with mailbox conversion using dsync in v2.2.32 (maildir <-> mdbox)
- [dovecot-2.2.18] dsync error: Error: Can't delete mailbox INBOX: INBOX can't be deleted. Problem with name of folders?