Problems with rsync on Win2K to Solaris

Ron Kelley rkelley at cisco.com
Fri Dec 21 02:39:58 EST 2001


Dave,

Thanks for the tips...  I configured my Sun box as an rsync server (using
the daemon option) and it worked.  Looks like I am running to problems with
the non-daemon stuff.

Thanks again!

-Ron

-----Original Message-----
From: Dave Dykstra [mailto:dwd at bell-labs.com]
Sent: Thursday, December 20, 2001 9:33 AM
To: Ron Kelley
Cc: Rsync
Subject: Re: Problems with rsync on Win2K to Solaris


On Wed, Dec 19, 2001 at 08:11:43AM -0500, Ron Kelley wrote:
> Hi,
>
> I am having trouble getting rsync (v2.5.0 with the latest version of
cygwin)
> to work between my Win2K (SP2) and my Solaris 2.6 server.  Both machines
are
> running the same version of rsync.  Each time I run rsync, I get the
> following error:
>
> ---------------------
> C:\rsync>rsync server1:/tmp/file .
> Terminal read: The parameter is incorrect.
> rsync: connection unexpectedly closed (0 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(139)
> rsync: read error: Connection reset by peer
> rsync error: error in rsync protocol data stream (code 12) at io.c(151)
> --------------------
>
>
> Debugging stuff I tried:
> -----------------------
> * Ensured the rsh command works properly when executed from the Win2K box
to
>   the Solaris server (rsh server1 "ls" - produces correct output).
> * Ensured the Administrator user is valid on the Solaris server
> * Tried every combination of quotes, slashes, etc
> * Tried to rsync in both directions


A couple of possibilities come to mind:
    1. Could be that the rsync command is not in the default PATH on the
	remote side, although I have no idea why that might end up in that
	"Terminal read" error message you got.  Try "rsh server1 rsync".
    2. Could be a startup script on the remote side that is printing
something;
	that depends on the login shell, because some shells won't read
	in any startup scripts when executed from rshd.


> Also, when I specify the location of "rsh" on the Solaris box, I get the
> following error:
> --------------------
> C:\rsync>rsync --rsh='/bin/rsh' server1:/tmp/file .
> Failed to exec /bin/rsh : No such file or directory
> rsync error: error in IPC code (code 14) at util.c(137)
> rsync: read error: Connection reset by peer
> rsync error: error in rsync protocol data stream (code 12) at io.c(151)
> --------------------

Ah, the --rsh option is for specifying the command name on the local side,
not the remote side.  The --rsync-path option specifies a path to rsync
on the remote side.


> I have tried three Win2K boxes and two Solaris boxes - all end up with the
> same problem. I have *not* tried to install rsync as a daemon on the Win2K
> box because I don't think that is necessary.
>
> Any ideas?  I am really getting frustrated :-)

- Dave Dykstra






More information about the rsync mailing list