Bug 726246

Summary: rsync 3.0.6 fails with "connection unexpectedly closed" error
Product: Red Hat Enterprise Linux 5 Reporter: Harold Pritchett <harold>
Component: rsyncAssignee: Vojtech Vitek <vvitek>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7CC: hripps, ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-28 06:43:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harold Pritchett 2011-07-27 23:17:10 UTC
Description of problem:  After upgrading to RHEL 5.7 on four servers, my nightly rsync jobs started failing with 

rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]

Downgrading to version 2.6.8 on the sending server fixed the problem.
The receiving server is still at 3.0.6.


Version-Release number of selected component (if applicable):

rsync.x86_64 0:3.0.6-4.el5

How reproducible:  fails every time


Steps to Reproduce:
1.  run the command

/usr/bin/rsync -e "ssh -p 2222" -avzp --delete --stats \
        --exclude "GEM-prod/smarty/templates_c/" \
        /var/www/html/GEM-prod \
        benyshek-hough.com:/var/www/html

  
Actual results:
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-i identity_file] [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-w tunnel:tunnel] [user@]hostname [command]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]


Expected results:
building file list ... done
GEM-prod/calendar.php
GEM-prod/mainMenu.php
GEM-prod/admin/editClientSettings.php
GEM-prod/smarty/templates/
GEM-prod/smarty/templates/calendar.tpl
GEM-prod/smarty/templates/mainMenu.tpl
GEM-prod/smarty/templates/admin/editClientSettings.tpl

Number of files: 1464
Number of files transferred: 6
Total file size: 13470776 bytes
Total transferred file size: 25909 bytes
Literal data: 6726 bytes
Matched data: 19183 bytes
File list size: 39562
File list generation time: 0.010 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 42376
Total bytes received: 380

sent 42376 bytes  received 380 bytes  9501.33 bytes/sec
total size is 13470776  speedup is 315.06

Additional info:

Comment 1 Ondrej Vasik 2011-07-28 06:43:57 UTC
Thanks for report, it was already reported in https://bugzilla.redhat.com/show_bug.cgi?id=724041 . Closing DUPLICATE.

Note: Bugzilla is not a support tool for RHEL, in the case of urgent issues like this, please contact product support - see https://bugzilla.redhat.com/show_bug.cgi?id=724041#c22 why is it important to use standard support channels.

*** This bug has been marked as a duplicate of bug 724041 ***