Bug 10363 - rsync fails to transfer data
Summary: rsync fails to transfer data
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.0
Hardware: Sparc Solaris
: P5 critical (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2014-01-08 12:21 UTC by Sunil Sharma
Modified: 2014-01-12 21:45 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Sunil Sharma 2014-01-08 12:21:06 UTC
I am have installed rsync 3.1.0 on solaris 10 sparAC.  I have to transfer the data from one server to other. below is the command I an tring to execute.

/PATH/TO/RSYNC/rsync-3.1.0/rsync -av --rsh=ssh /PART/TO/src/dir1/confg/ ABC@X.XXX.XX.XX:/path/to/dest/dir1/confg/ 

while running the command it prompts me for password for ABC USER and I provide the same.

I get the below error message 

ksh: rsync:  not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]

I have deployed rync on both the source and destination folder at the same location.

Let me know if you need further details and if this is a known bug then please let me know the work arround.

Comment 1 Paul Slootman 2014-01-08 16:55:44 UTC
The clue is in the error message:

   ksh: rsync:  not found

As you apparently haven't installed rsync in a standard $PATH location (as you specify the path to rsync locally), how do you expect rsync to be found on the remote system if you don't tell it where it is? In your case you need to use the --rsync-path option.

Note also that --rsh=ssh is redundant, that's the default.

Please don't open bug reports if you just need help with rsync usage, use the mailing list for that.