I have a client copying server data for backup using rsync over ssh rsync --numeric-ids --partial -az --rsh=ssh --del --compress root.3.4:/home_server_path/ /path_to_local_backup/ the problem: if server rsync is compiled from rsync-3.0.9-12.fc19.src.rpm then any client rsync version works fine (rsync-3.0.9, rsync-3.1.0-2 , rsync-3.1pre1) If server rsync is compiled from rsync-3.1.0-2.fc21.src.rpm then no client rsync works to completion. Typically transfer starts, go for 1-2 hours, then fails with error message like this: --------- client 3.1.0pre1 errors---------- inflate returned -3 (0 bytes) rsync error: error in rsync protocol data stream (code 12) at token.c(557) [receiver=3.1.0pre1] rsync: connection unexpectedly closed (2454943 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0pre1] inflate returned -3 (0 bytes) rsync error: error in rsync protocol data stream (code 12) at token.c(557) [receiver=3.1.0pre1] rsync: [generator] write error: Broken pipe (32) rsync error: error in socket IO (code 10) at io.c(837) [generator=3.1.0pre1] ------------ client 3.0.9 errors ---------- inflate returned -3 (0 bytes) rsync error: error in rsync protocol data stream (code 12) at token.c(548) [receiver=3.0.9] rsync: connection unexpectedly closed (1575 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9] inflate returned -3 (0 bytes) rsync error: error in rsync protocol data stream (code 12) at token.c(548) [receiver=3.0.9] rsync: connection unexpectedly closed (1403 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [generator=3.0.9] --------------------
I posted this report to original rsync bugzilla https://bugzilla.samba.org/show_bug.cgi?id=10332
I think this is probably caused by rsync-3.1.0-0.1.pre1 and later using the system zlib instead of the bundled. Linked to upstream report. Seems to work the other way too (new rsync not talking to older rsync).
upgraded system zlib to 1.2.8, recompiled rsync-3.1.0-2. Got errors inflate returned -3 (0 bytes) rsync error: error in rsync protocol data stream (code 12) at token.c(557) [receiver=3.1.0] rsync: connection unexpectedly closed (2535208 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0] inflate returned -3 (0 bytes) rsync error: error in rsync protocol data stream (code 12) at token.c(557) [receiver=3.1.0] rsync: [generator] write error: Broken pipe (32) rsync error: error in socket IO (code 10) at io.c(837) [generator=3.1.0] reverted to back to 3.0.9
Hi, does this happen every time for every types of files? I am currently not able to reproduce it with F20 and Arch.
I've only seen it with specific sparse files (mysql DBs and qemu raw images). I think a quick revert to building with rsync's zlib is in order until this can be figured out.
I have transferred several gigabytes of qemu images and DBs files without a reproduction. Are you able to provide me an example of file or sequence causing this issue?
Compilation with system provided zlib has been temporary reverted in rsync-3.1.0-3. You can find deeper explanation in upstream bugzilla https://bugzilla.samba.org/show_bug.cgi?id=10372 .
With modified upstream we can close this one and keep open just #1102637.