[Dovecot] dsync duplicates messages/crashed if a 'large' number of messages has been deleted
Hi,
I try to mirror two dovecots with:
dsync -v -f -u login mirror ssh -o IdentityFile=/etc/dovecot/dsync.d/id_rsa root@shrike dsync -u login
This usually works, but if I delete a certain number of emails, I get this messages:
dsync-local(mailverwalter): Info: Posteingang: Ignored 178 modseq changes dsync-local(mailverwalter): Info: Posteingang: Couldn't keep all uids dsync-local(mailverwalter): Warning: Mailbox changes caused a desync. You may want to run dsync again.
after a second try I get:
dsync-local(mailverwalter): Panic: dsync brain state=10 dsync-local(mailverwalter): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0 [0xf7e44541] -> /usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x4e) [0xf7e4466e] -> /usr/local/lib/dovecot /libdovecot.so.0(i_error+0) [0xf7e44878] -> dsync [0x804f4d6] -> dsync [0x80537c7] -> dsync [0x8053a82] -
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xf5) [0xf7e50bc5] -> /usr/local/lib/dovecot /libdovecot.so.0(io_loop_run+0x30) [0xf7e4fc10] -> /usr/local/lib/dovecot/libdovecot.so.0(master_service_ run+0x2a) [0xf7e3d29a] -> dsync(main+0x732) [0x804db32] -> /lib/libc.so.6(__libc_start_main+0xe5) [0xf7cd 1455] -> dsync [0x804d0c1]
Regards, Matthias
On 10.7.2010, at 13.06, Matthias Rieber wrote:
dsync -v -f -u login mirror ssh -o IdentityFile=/etc/dovecot/dsync.d/id_rsa root@shrike dsync -u login
This usually works, but if I delete a certain number of emails, I get this messages:
dsync-local(mailverwalter): Info: Posteingang: Ignored 178 modseq changes dsync-local(mailverwalter): Info: Posteingang: Couldn't keep all uids dsync-local(mailverwalter): Warning: Mailbox changes caused a desync. You may want to run dsync again.
Did only one of the sides have changes or did both?
Hi,
On 10.07.2010 15:39, Timo Sirainen wrote:
On 10.7.2010, at 13.06, Matthias Rieber wrote:
dsync -v -f -u login mirror ssh -o IdentityFile=/etc/dovecot/dsync.d/id_rsa root@shrike dsync -u login
This usually works, but if I delete a certain number of emails, I get this messages:
dsync-local(mailverwalter): Info: Posteingang: Ignored 178 modseq changes dsync-local(mailverwalter): Info: Posteingang: Couldn't keep all uids dsync-local(mailverwalter): Warning: Mailbox changes caused a desync. You may want to run dsync again. Did only one of the sides have changes or did both?
just one side. It doesn't crash always. If it doesn't crash, all messages in that folder will be duplicated.
Matthias
On 10.7.2010, at 14.46, Matthias Rieber wrote:
dsync-local(mailverwalter): Info: Posteingang: Ignored 178 modseq changes dsync-local(mailverwalter): Info: Posteingang: Couldn't keep all uids dsync-local(mailverwalter): Warning: Mailbox changes caused a desync. You may want to run dsync again. Did only one of the sides have changes or did both?
just one side. It doesn't crash always. If it doesn't crash, all messages in that folder will be duplicated.
The crash is a separate problem from the duplication. I did a couple of fixes though, see if it does something different now?
http://hg.dovecot.org/dovecot-2.0/rev/56cf4f6261dd http://hg.dovecot.org/dovecot-2.0/rev/06e4a422aa91
Hi,
On 10.7.2010, at 14.46, Matthias Rieber wrote:
dsync-local(mailverwalter): Info: Posteingang: Ignored 178 modseq changes dsync-local(mailverwalter): Info: Posteingang: Couldn't keep all uids dsync-local(mailverwalter): Warning: Mailbox changes caused a desync. You may want to run dsync again. Did only one of the sides have changes or did both?
just one side. It doesn't crash always. If it doesn't crash, all messages in that folder will be duplicated. The crash is a separate problem from the duplication. I did a couple of fixes though, see if it does something different now?
http://hg.dovecot.org/dovecot-2.0/rev/56cf4f6261dd http://hg.dovecot.org/dovecot-2.0/rev/06e4a422aa91
On 10.07.2010 16:58, Timo Sirainen wrote: this time:
dsync-local(mailverwalter): Info: Posteingang: Ignored 500 modseq changes dsync-local(mailverwalter): Info: Posteingang: Couldn't keep all uids dsync-local(mailverwalter): Panic: file dsync-worker-local.c: line 1515 (dsync_worker_try_finish): assertion failed: (!worker->finished) dsync-local(mailverwalter): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0 [0xf7eb9541] -> /usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x4e) [0xf7eb966e] -> /usr/local/lib/dovecot/libdovecot.so.0(i_error+0) [0xf7eb9878] -> dsync [0x8055c0b] -> dsync [0x8056551] -> dsync(dsync_worker_msg_save+0x4e) [0x8055a3e] -> dsync [0x8050824] -> dsync [0x8053837] -> dsync [0x8053b42] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xf5) [0xf7ec5bc5] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x30) [0xf7ec4c10] -> /usr/local/lib/dovecot/libdovecot.so.0(master_service_run+0x2a) [0xf7eb229a] -> dsync(main+0x732) [0x804db32] -> /lib/libc.so.6(__libc_start_main+0xe5) [0xf7d46455] -> dsync [0x804d0c1]
Backtrace:
Program terminated with signal 6, Aborted.
[New process 2760]
#0 0xf7d5a556 in raise () from /lib/libc.so.6
#0 0xf7d5a556 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0xf7d5bd78 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0xf7eb9555 in default_fatal_finish (type=<value optimized out>,
status=0) at failures.c:164
backtrace = 0x9bd0bc0 "/usr/local/lib/dovecot/libdovecot.so.0
[0xf7eb9541] ->
/usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x4e)
[0xf7eb966e] -> /usr/local/lib/dovecot/libdovecot.so.0(i_error+0)
[0xf7eb9878]"...
#3 0xf7eb966e in default_fatal_handler (type=LOG_TYPE_PANIC, status=0,
format=0x8058c84 "file %s: line %d (%s): assertion failed: (%s)",
args=0xfffdc7f4 "Ԥ\005\b�005") at failures.c:176
No locals.
#4 0xf7eb9878 in i_panic (format=0x8058c84 "file %s: line %d (%s):
assertion failed: (%s)") at failures.c:230
No locals.
#5 0x08055c0b in dsync_worker_try_finish (worker=0x6) at
dsync-worker-local.c:1515
__FUNCTION__ = "dsync_worker_try_finish"
#6 0x08056551 in local_worker_msg_save (_worker=0x9bfd628,
msg=0xf7b8b490, data=0x9bf9784, callback=0x8050740
Matthias
On 10.7.2010, at 17.05, Matthias Rieber wrote:
dsync-local(mailverwalter): Panic: file dsync-worker-local.c: line 1515 (dsync_worker_try_finish): assertion failed: (!worker->finished)
Fixed this and some other bugs in hg.
participants (2)
-
Matthias Rieber
-
Timo Sirainen