Marc Roos
2020-Oct-11 21:25 UTC
Preparing for replication: dsync-local(testaccount): Panic: file mbox-lock.c
I am preparing a bit for setting up replication. However when I manually try to dsync an account, the first time I execute this[1] command it seems to be ok. The 2nd time I am getting this error[2]. If I add -1 (one way syncing) the error disappears. Does this mean I will have problems with setting up replication between these two servers? [1] [@ ~]# doveadm sync -n inbox -u testaccount tcp:mail.local:542 [2] [@ ~]# doveadm sync -n inbox -u testaccount tcp:mail.local:542 dsync-local(testaccount): Panic: file mbox-lock.c: line 799 (mbox_lock): assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK) dsync-local(testaccount): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xa192e) [0x7fd4f827992e] -> /usr/lib64/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7fd4f827999a] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fd4f8209257] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mbox_lock+0xef) [0x7fd4f858feef] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mbox_save_begin+0x658) [0x7fd4f8591958] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_begin+0x83) [0x7fd4f855a573] -> doveadm(+0x4a6a3) [0x55e5ae8276a3] -> doveadm(dsync_mailbox_import_mail+0xca) [0x55e5ae82a9fa] -> doveadm(dsync_brain_sync_mails+0xb3) [0x55e5ae824963] -> doveadm(dsync_brain_run+0x551) [0x55e5ae820551] -> doveadm(+0x438e0) [0x55e5ae8208e0] -> doveadm(+0x5899f) [0x55e5ae83599f] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7fd4f828f672] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) [0x7fd4f8290d5f] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c) [0x7fd4f828f70c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fd4f828f8c8] -> doveadm(+0x297c9) [0x55e5ae8067c9] -> doveadm(+0x2bdcc) [0x55e5ae808dcc] -> doveadm(+0x2c9ca) [0x55e5ae8099ca] -> doveadm(doveadm_mail_try_run+0x215) [0x55e5ae80a325] -> doveadm(main+0x46a) [0x55e5ae7f949a] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fd4f7e2c555] -> doveadm(+0x1c605) [0x55e5ae7f9605] Aborted CentOS Linux release 7.8.2003 (Core) dovecot-pigeonhole-2.2.36-6.el7_8.1.x86_64 dovecot-2.2.36-6.el7_8.1.x86_64
Aki Tuomi
2020-Oct-12 08:14 UTC
Preparing for replication: dsync-local(testaccount): Panic: file mbox-lock.c
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div class="default-style"> Replication is not supported with mbox format. You can only do unidirectional sync out of mbox. </div> <div class="default-style"> <br> </div> <div class="default-style"> Aki </div> <blockquote type="cite"> <div> On 12/10/2020 00:25 Marc Roos <<a href="mailto:m.roos@f1-outsourcing.eu">m.roos@f1-outsourcing.eu</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> I am preparing a bit for setting up replication. However when I manually </div> <div> try to dsync an account, the first time I execute this[1] command it </div> <div> seems to be ok. The 2nd time I am getting this error[2]. </div> <div> If I add -1 (one way syncing) the error disappears. Does this mean I </div> <div> will have problems with setting up replication between these two </div> <div> servers? </div> <div> <br> </div> <div> <br> </div> <div> [1] </div> <div> [@ ~]# doveadm sync -n inbox -u testaccount tcp:mail.local:542 </div> <div> <br> </div> <div> [2] </div> <div> [@ ~]# doveadm sync -n inbox -u testaccount tcp:mail.local:542 </div> <div> dsync-local(testaccount): Panic: file mbox-lock.c: line 799 (mbox_lock): </div> <div> assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type ! </div> <div> F_RDLCK) </div> <div> dsync-local(testaccount): Error: Raw backtrace: </div> <div> /usr/lib64/dovecot/libdovecot.so.0(+0xa192e) [0x7fd4f827992e] -> </div> <div> /usr/lib64/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) </div> <div> [0x7fd4f827999a] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) </div> <div> [0x7fd4f8209257] -> </div> <div> /usr/lib64/dovecot/libdovecot-storage.so.0(mbox_lock+0xef) </div> <div> [0x7fd4f858feef] -> </div> <div> /usr/lib64/dovecot/libdovecot-storage.so.0(mbox_save_begin+0x658) </div> <div> [0x7fd4f8591958] -> </div> <div> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_begin+0x83) </div> <div> [0x7fd4f855a573] -> doveadm(+0x4a6a3) [0x55e5ae8276a3] -> </div> <div> doveadm(dsync_mailbox_import_mail+0xca) [0x55e5ae82a9fa] -> </div> <div> doveadm(dsync_brain_sync_mails+0xb3) [0x55e5ae824963] -> </div> <div> doveadm(dsync_brain_run+0x551) [0x55e5ae820551] -> doveadm(+0x438e0) </div> <div> [0x55e5ae8208e0] -> doveadm(+0x5899f) [0x55e5ae83599f] -> </div> <div> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x52) </div> <div> [0x7fd4f828f672] -> </div> <div> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10f) </div> <div> [0x7fd4f8290d5f] -> </div> <div> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c) </div> <div> [0x7fd4f828f70c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) </div> <div> [0x7fd4f828f8c8] -> doveadm(+0x297c9) [0x55e5ae8067c9] -> </div> <div> doveadm(+0x2bdcc) [0x55e5ae808dcc] -> doveadm(+0x2c9ca) [0x55e5ae8099ca] </div> <div> -> doveadm(doveadm_mail_try_run+0x215) [0x55e5ae80a325] -> </div> <div> doveadm(main+0x46a) [0x55e5ae7f949a] -> </div> <div> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fd4f7e2c555] -> </div> <div> doveadm(+0x1c605) [0x55e5ae7f9605] </div> <div> Aborted </div> <div> <br> </div> <div> <br> </div> <div> CentOS Linux release 7.8.2003 (Core) </div> <div> dovecot-pigeonhole-2.2.36-6.el7_8.1.x86_64 </div> <div> dovecot-2.2.36-6.el7_8.1.x86_64 </div> </blockquote> <div class="default-style"> <br> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
Marc Roos
2020-Oct-12 19:50 UTC
Preparing for replication: dsync-local(testaccount): Panic: file mbox-lock.c
Maybe a bug? I deleted the whole tree on the destination server, ran doveadm sync -D -1 -n inbox -u testacc tcp:mailxx.local:542 Only the directory structure of mdbox was created, no files. 2nd time I run: doveadm sync -D -1 -n inbox -u testacc tcp:mailxx.local:542 The files are created in storage. What makes the m.XXX reset? I thought this would start at m.001 after deleting the whole home dir [1] [@storage]# ls -cs1t 3928 m.737 4032 m.734 5868 m.735 5868 m.736 4100 m.733 4100 m.717 4100 m.718 4100 m.719 4100 m.720 4100 m.721 4100 m.722 4100 m.723 4100 m.724 4100 m.725 4100 m.726 4100 m.727 4100 m.728 4100 m.729 4100 m.730 4100 m.731 4100 m.732 4052 m.716 [2] [@]# ls -cs1t mdbox/storage/ total 93448 3928 m.759 4032 m.756 4100 m.741 4100 m.742 4100 m.743 4100 m.744 4100 m.745 4100 m.746 4100 m.747 4100 m.748 4100 m.749 4100 m.750 4100 m.751 4100 m.752 4100 m.753 4100 m.754 4100 m.755 5868 m.757 5868 m.758 4100 m.739 4100 m.740 4052 m.738 -----Original Message----- Subject: Re: Preparing for replication: dsync-local(testaccount): Panic: file mbox-lock.c Replication is not supported with mbox format. You can only do unidirectional sync out of mbox. Aki I am preparing a bit for setting up replication. However when I manually try to dsync an account, the first time I execute this[1] command it seems to be ok. The 2nd time I am getting this error[2]. If I add -1 (one way syncing) the error disappears. Does this mean I will have problems with setting up replication between these two servers? [1] [@ ~]# doveadm sync -n inbox -u testaccount tcp:mail.local:542 [2] [@ ~]# doveadm sync -n inbox -u testaccount tcp:mail.local:542 dsync-local(testaccount): Panic: file mbox-lock.c: line 799 (mbox_lock): assertion failed: (lock_type == F_RDLCK || mbox->mbox_lock_type != F_RDLCK) dsync-local(testaccount): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xa192e) [0x7fd4f827992e] -> /usr/lib64/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7fd4f827999a] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fd4f8209257] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mbox_lock+0xef) [0x7fd4f858feef] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mbox_save_begin+0x658) [0x7fd4f8591958] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_begin+0x83) [0x7fd4f855a573] -> doveadm(+0x4a6a3) [0x55e5ae8276a3] -> doveadm(dsync_mailbox_import_mail+0xca) [0x55e5ae82a9fa] -> doveadm(dsync_brain_sync_mails+0xb3) [0x55e5ae824963] -> doveadm(dsync_brain_run+0x551) [0x55e5ae820551] -> doveadm(+0x438e0) [0x55e5ae8208e0] -> doveadm(+0x5899f) [0x55e5ae83599f] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x7fd4f828f672] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x1 0f) [0x7fd4f8290d5f] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x3c) [0x7fd4f828f70c] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fd4f828f8c8] -> doveadm(+0x297c9) [0x55e5ae8067c9] -> doveadm(+0x2bdcc) [0x55e5ae808dcc] -> doveadm(+0x2c9ca) [0x55e5ae8099ca] -> doveadm(doveadm_mail_try_run+0x215) [0x55e5ae80a325] -> doveadm(main+0x46a) [0x55e5ae7f949a] -> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fd4f7e2c555] -> doveadm(+0x1c605) [0x55e5ae7f9605] Aborted CentOS Linux release 7.8.2003 (Core) dovecot-pigeonhole-2.2.36-6.el7_8.1.x86_64 dovecot-2.2.36-6.el7_8.1.x86_64