Bug 6032 - error in rsync protocol data stream
Summary: error in rsync protocol data stream
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.4
Hardware: x86 Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2009-01-13 20:58 UTC by Rob Mangiafico
Modified: 2009-01-15 18:02 UTC (History)
0 users

See Also:

rsync-debug output (last 200 lines) (12.89 KB, text/plain)
2009-01-13 22:06 UTC, Rob Mangiafico
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Mangiafico 2009-01-13 20:58:45 UTC
/usr/bin/rsync -aze /usr/local/ssh/bin/ssh --hard-links --force --ignore-errors --numeric-ids --delete --exclude=/sys --exclude=/proc --exclude=/var/named/chroot/proc --exclude=/home4 --exclude=/home5 --exclude=/backup --exclude=/var/log --exclude=/home/logs --exclude=/home2/logs/ $server:/ /home/backup/$short

The error happens at the same spot during the rsync copy:
Read from remote host $server: Connection reset by peer
rsync: connection unexpectedly closed (16892096 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(632) [receiver=3.0.4]
rsync: connection unexpectedly closed (408 bytes received so far) [generator]
rsync error: unexplained error (code 255) at io.c(632) [generator=3.0.4]
Comment 1 Rob Mangiafico 2009-01-13 22:06:56 UTC
Created attachment 3875 [details]
rsync-debug output (last 200 lines)

This is the last 200 lines from the 10 MB rsync-debug output file. I was not able to get a core dump. If you need anything else, please let me know. The rsync fails on the same file/location every time.
Comment 2 Matt McCutchen 2009-01-13 23:10:32 UTC
It looks like neither rsync process intentionally closed the connection, so it must have been dropped by the network.  This is not a bug in rsync.
Comment 3 Rob Mangiafico 2009-01-13 23:26:32 UTC
ok, just seems strange that the rsync fails every time on the same dovecot.patched.tar.gz file. Any pointers on how to t/s would be appreciated.
Comment 4 Matt McCutchen 2009-01-15 18:02:24 UTC
That is strange, but the output does seem to indicate pretty clearly that rsync is not the thing closing the connection.  It's possible that the file is triggering a data-dependent bug in ssh or even the network (but that seems unlikely because ssh would be encrypting with a different random key each time).  In any case, you could see whether rsync fails in the same way when you do any of the following:

- Remove the -z option.

- Transfer using an rsync daemon instead of ssh (unless the file is secret).

- Transfer the file between a different pair of hosts.

- Make a copy of the file, modify it slightly (e.g., modify a few bytes or slightly lengthen or shorten it), and transfer that.