Replication between different versions of dovecot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Replication between different versions of dovecot

Dmitry Nezhevenko
Hi,

Can't find any notes about this  in documentation. Is replication supposed
to work between different versions of dovecot?

I've just found that dovecot 2.2.33.1 was uploaded to debian unstable and
it crashes on every replication with older dovecot 2.2.27. (version
2.2.32.1 was probably ok)

Summary:
        - 2.2.33.1 crashes when replicating from/to 2.2.27
        - 2.2.32.1 probably ok when replicating from/to 2.2.27

I was able to capture backtrace of crashed doveadm-server:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  i_stream_next_line (stream=stream@entry=0x0) at istream.c:428
428     istream.c: No such file or directory.
(gdb) bt
#0  i_stream_next_line (stream=stream@entry=0x0) at istream.c:428
#1  0x00007f60244306df in i_stream_read_next_line (stream=0x0) at istream.c:449
#2  0x0000560304f22e79 in server_connection_print_log (conn=0x560305e930f8) at server-connection.c:305
#3  0x0000560304f238af in server_connection_input_one (conn=<optimized out>) at server-connection.c:405
#4  server_connection_input (conn=<optimized out>) at server-connection.c:390
#5  0x00007f602443a572 in io_loop_call_io (io=0x560305e81e30) at ioloop.c:600
#6  0x00007f602443bc1e in io_loop_handler_run_internal (ioloop=ioloop@entry=0x560305e59ad0) at ioloop-epoll.c:223
#7  0x00007f602443a606 in io_loop_handler_run (ioloop=ioloop@entry=0x560305e59ad0) at ioloop.c:649
#8  0x00007f602443a7b8 in io_loop_run (ioloop=0x560305e59ad0) at ioloop.c:624
#9  0x0000560304f0de5a in dsync_connect_tcp (ctx=ctx@entry=0x560305e7e9e8, mail_set=mail_set@entry=0x560305e8ad50, target=0x560305e8b94c "inhex.vpn.local:9993", ssl=ssl@entry=false,
    error_r=error_r@entry=0x7fff8e40b9e8) at doveadm-dsync.c:850
#10 0x0000560304f0fbe3 in parse_location (error_r=0x7fff8e40b9e8, remote_cmd_args_r=0x7fff8e40b858, location=<optimized out>, mail_set=0x560305e8ad50, ctx=0x560305e7e9e8) at doveadm-dsync.c:875
#11 cmd_dsync_prerun (_ctx=0x560305e7e9e8, service_user=<optimized out>, error_r=0x7fff8e40b9e8) at doveadm-dsync.c:947
#12 0x0000560304f10891 in doveadm_mail_next_user (ctx=ctx@entry=0x560305e7e9e8, cctx=cctx@entry=0x7fff8e40b9f0, error_r=error_r@entry=0x7fff8e40b9e8) at doveadm-mail.c:414
#13 0x0000560304f11473 in doveadm_mail_single_user (ctx=ctx@entry=0x560305e7e9e8, cctx=cctx@entry=0x7fff8e40b9f0, error_r=error_r@entry=0x7fff8e40b9e8) at doveadm-mail.c:460
#14 0x0000560304f262fb in doveadm_mail_cmd_server_run (cctx=0x7fff8e40b9f0, mctx=0x560305e7e9e8, conn=0x560305e7a878) at client-connection.c:246
#15 doveadm_cmd_handle (cctx=0x7fff8e40b9f0, argv=<optimized out>, argc=<optimized out>, cmd_name=<optimized out>, conn=0x560305e7a878) at client-connection.c:329
#16 client_handle_command (args=<optimized out>, conn=0x560305e7a878) at client-connection.c:399
#17 client_connection_input (conn=<optimized out>) at client-connection.c:541
#18 0x00007f602443a572 in io_loop_call_io (io=0x560305e58c40) at ioloop.c:600
#19 0x00007f602443bc1e in io_loop_handler_run_internal (ioloop=ioloop@entry=0x560305e529a0) at ioloop-epoll.c:223
#20 0x00007f602443a606 in io_loop_handler_run (ioloop=ioloop@entry=0x560305e529a0) at ioloop.c:649
#21 0x00007f602443a7b8 in io_loop_run (ioloop=0x560305e529a0) at ioloop.c:624
#22 0x00007f60243bf893 in master_service_run (service=0x560305e52840, callback=<optimized out>) at master-service.c:719
#23 0x0000560304f011d5 in main (argc=<optimized out>, argv=<optimized out>) at main.c:143

--
WBR, Dmitry

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Replication between different versions of dovecot

Aki Tuomi-2
Hi!

This is a issue that has been fixed in master, thank you for reporting.

See
https://github.com/dovecot/core/commit/187fbf157d5c42f9f06ce52884fefbb4f66c070d.patch

Aki


On 17.10.2017 21:12, Dmitry Nezhevenko wrote:

> Hi,
>
> Can't find any notes about this  in documentation. Is replication supposed
> to work between different versions of dovecot?
>
> I've just found that dovecot 2.2.33.1 was uploaded to debian unstable and
> it crashes on every replication with older dovecot 2.2.27. (version
> 2.2.32.1 was probably ok)
>
> Summary:
> - 2.2.33.1 crashes when replicating from/to 2.2.27
> - 2.2.32.1 probably ok when replicating from/to 2.2.27
>
> I was able to capture backtrace of crashed doveadm-server:
>
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  i_stream_next_line (stream=stream@entry=0x0) at istream.c:428
> 428     istream.c: No such file or directory.
> (gdb) bt
> #0  i_stream_next_line (stream=stream@entry=0x0) at istream.c:428
> #1  0x00007f60244306df in i_stream_read_next_line (stream=0x0) at istream.c:449
> #2  0x0000560304f22e79 in server_connection_print_log (conn=0x560305e930f8) at server-connection.c:305
> #3  0x0000560304f238af in server_connection_input_one (conn=<optimized out>) at server-connection.c:405
> #4  server_connection_input (conn=<optimized out>) at server-connection.c:390
> #5  0x00007f602443a572 in io_loop_call_io (io=0x560305e81e30) at ioloop.c:600
> #6  0x00007f602443bc1e in io_loop_handler_run_internal (ioloop=ioloop@entry=0x560305e59ad0) at ioloop-epoll.c:223
> #7  0x00007f602443a606 in io_loop_handler_run (ioloop=ioloop@entry=0x560305e59ad0) at ioloop.c:649
> #8  0x00007f602443a7b8 in io_loop_run (ioloop=0x560305e59ad0) at ioloop.c:624
> #9  0x0000560304f0de5a in dsync_connect_tcp (ctx=ctx@entry=0x560305e7e9e8, mail_set=mail_set@entry=0x560305e8ad50, target=0x560305e8b94c "inhex.vpn.local:9993", ssl=ssl@entry=false,
>     error_r=error_r@entry=0x7fff8e40b9e8) at doveadm-dsync.c:850
> #10 0x0000560304f0fbe3 in parse_location (error_r=0x7fff8e40b9e8, remote_cmd_args_r=0x7fff8e40b858, location=<optimized out>, mail_set=0x560305e8ad50, ctx=0x560305e7e9e8) at doveadm-dsync.c:875
> #11 cmd_dsync_prerun (_ctx=0x560305e7e9e8, service_user=<optimized out>, error_r=0x7fff8e40b9e8) at doveadm-dsync.c:947
> #12 0x0000560304f10891 in doveadm_mail_next_user (ctx=ctx@entry=0x560305e7e9e8, cctx=cctx@entry=0x7fff8e40b9f0, error_r=error_r@entry=0x7fff8e40b9e8) at doveadm-mail.c:414
> #13 0x0000560304f11473 in doveadm_mail_single_user (ctx=ctx@entry=0x560305e7e9e8, cctx=cctx@entry=0x7fff8e40b9f0, error_r=error_r@entry=0x7fff8e40b9e8) at doveadm-mail.c:460
> #14 0x0000560304f262fb in doveadm_mail_cmd_server_run (cctx=0x7fff8e40b9f0, mctx=0x560305e7e9e8, conn=0x560305e7a878) at client-connection.c:246
> #15 doveadm_cmd_handle (cctx=0x7fff8e40b9f0, argv=<optimized out>, argc=<optimized out>, cmd_name=<optimized out>, conn=0x560305e7a878) at client-connection.c:329
> #16 client_handle_command (args=<optimized out>, conn=0x560305e7a878) at client-connection.c:399
> #17 client_connection_input (conn=<optimized out>) at client-connection.c:541
> #18 0x00007f602443a572 in io_loop_call_io (io=0x560305e58c40) at ioloop.c:600
> #19 0x00007f602443bc1e in io_loop_handler_run_internal (ioloop=ioloop@entry=0x560305e529a0) at ioloop-epoll.c:223
> #20 0x00007f602443a606 in io_loop_handler_run (ioloop=ioloop@entry=0x560305e529a0) at ioloop.c:649
> #21 0x00007f602443a7b8 in io_loop_run (ioloop=0x560305e529a0) at ioloop.c:624
> #22 0x00007f60243bf893 in master_service_run (service=0x560305e52840, callback=<optimized out>) at master-service.c:719
> #23 0x0000560304f011d5 in main (argc=<optimized out>, argv=<optimized out>) at main.c:143
>
Reply | Threaded
Open this post in threaded view
|

Re: Replication between different versions of dovecot

Dmitry Nezhevenko
On Wed, Oct 18, 2017 at 09:45:32AM +0300, Aki Tuomi wrote:
> Hi!
>
> This is a issue that has been fixed in master, thank you for reporting.
>
> See
> https://github.com/dovecot/core/commit/187fbf157d5c42f9f06ce52884fefbb4f66c070d.patch

Thanks a lot for path. But could you please state explicitly, is such kind
of replication (between different versions of dovecot) supported and
expected to work?
 
--
WBR, Dmitry
Reply | Threaded
Open this post in threaded view
|

Re: Replication between different versions of dovecot

Aki Tuomi-2


On 18.10.2017 09:50, Dmitry Nezhevenko wrote:

> On Wed, Oct 18, 2017 at 09:45:32AM +0300, Aki Tuomi wrote:
>> Hi!
>>
>> This is a issue that has been fixed in master, thank you for reporting.
>>
>> See
>> https://github.com/dovecot/core/commit/187fbf157d5c42f9f06ce52884fefbb4f66c070d.patch
> Thanks a lot for path. But could you please state explicitly, is such kind
> of replication (between different versions of dovecot) supported and
> expected to work?
>  
Yes, it's supposed to and expected to work, at least within major
release. So 2.2.x <-> 2.2.x should work.

Aki
Reply | Threaded
Open this post in threaded view
|

Re: Replication between different versions of dovecot

Dmitry Nezhevenko
On Wed, Oct 18, 2017 at 09:51:49AM +0300, Aki Tuomi wrote:
> >> https://github.com/dovecot/core/commit/187fbf157d5c42f9f06ce52884fefbb4f66c070d.patch
> > Thanks a lot for path. But could you please state explicitly, is such kind
> > of replication (between different versions of dovecot) supported and
> > expected to work?
> >  
> Yes, it's supposed to and expected to work, at least within major
> release. So 2.2.x <-> 2.2.x should work.

Thanks!

--
WBR, Dmitry