Hi, I'm trying to set up rsync, with the transfers originating from a Win2K box and going to a Linux box. Both boxes are on my home LAN, so ssh is not required; I thought I would simply use the rsync protocol. I set up xinetd on my Linux box to start a rsync server when needed. My first attempts at a test run failed like so: $ rsync -a /cygdrive/c/installs/palm rsync://192.168.2.3/palm rsync: Unknown Host rsh.exe: can't establish connection <========== ??????? rsync: read error: Connection reset by peer rsync error: error in rsync protocol data stream (code 12) at /tmp/rsync-2.5.5/i o.c(162) I thought the docs said that rsync protocol would be used if I used the rsync:// URL. It still wants to use rsh. I'm using rsync version 2.5.5 under Cygwin. So, I reread the man page and found the RSYNC_RSH environment variable could be used to specify the protocol, so I set it like so: RSYNC_RSH=rsync and tried again. The first error is gone, only to be replaced with another: $ rsync -vva /cygdrive/c/installs/palm rsync://192.168.2.3/palm opening connection using rsync rsync rsync --server -vvlogDtpr . //192.168.2.3/palm building file list ... expand file_list to 4000 bytes, did move done push_dir rsync : No such file or directory (4) rsync error: errors selecting input/output files, dirs (code 3) at /tmp/rsync-2.5.5/main.c(468) rsync: connection unexpectedly closed (8 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at /tmp/rsync-2.5.5/io.c(150) What should I look at next? Thanks, Jim Gallagher
i don't think you are actually getting connected to the target host. better check your network settings. and on the second instance you appear to be having the same problem, but you've masked it by saying RSYNC_RSH=rsync. That is not correct. rsync is the transfer protocol...rsh is the connection mechanism to start rsync on the remote end. You should not need to specify RSYNC_RSH=rsync as that is simply not correct. check and make sure you can ping/telnet the target host. -mike On Mon, Mar 17, 2003 at 10:37:33PM -0800, Jim Gallagher wrote:> Hi, > > I'm trying to set up rsync, with the transfers originating from a Win2K box > and going to a Linux box. Both boxes are on my home LAN, so ssh is not > required; I thought I would simply use the rsync protocol. I set up xinetd on > my Linux box to start a rsync server when needed. My first attempts at a test > run failed like so: > > $ rsync -a /cygdrive/c/installs/palm rsync://192.168.2.3/palm > rsync: Unknown Host > rsh.exe: can't establish connection <========== ??????? > rsync: read error: Connection reset by peer > rsync error: error in rsync protocol data stream (code 12) at > /tmp/rsync-2.5.5/i > o.c(162) > > I thought the docs said that rsync protocol would be used if I used the > rsync:// URL. It still wants to use rsh. I'm using rsync version 2.5.5 under > Cygwin. > > So, I reread the man page and found the RSYNC_RSH environment variable could > be used to specify the protocol, so I set it like so: RSYNC_RSH=rsync and > tried again. The first error is gone, only to be replaced with another: > > $ rsync -vva /cygdrive/c/installs/palm rsync://192.168.2.3/palm > opening connection using rsync rsync rsync --server -vvlogDtpr . > //192.168.2.3/palm > building file list ... > expand file_list to 4000 bytes, did move > done > push_dir rsync : No such file or directory (4) > rsync error: errors selecting input/output files, dirs (code 3) at > /tmp/rsync-2.5.5/main.c(468) > rsync: connection unexpectedly closed (8 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at > /tmp/rsync-2.5.5/io.c(150) > > What should I look at next? > > Thanks, > > Jim Gallagher > > -- > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Try rsync -a /cygdrive/c/installs/palm 192.168.2.3::palm and make sure you have a correct [palm] section in your rsyncd.conf file. /Greger --- Jim Gallagher <jmgallag@attbi.com> skrev: > Hi,> > I'm trying to set up rsync, with the transfers > originating from a Win2K box > and going to a Linux box. Both boxes are on my home > LAN, so ssh is not > required; I thought I would simply use the rsync > protocol. I set up xinetd on > my Linux box to start a rsync server when needed. My > first attempts at a test > run failed like so: > > $ rsync -a /cygdrive/c/installs/palm > rsync://192.168.2.3/palm > rsync: Unknown Host > rsh.exe: can't establish connection > <========== ??????? > rsync: read error: Connection reset by peer > rsync error: error in rsync protocol data stream > (code 12) at > /tmp/rsync-2.5.5/i > o.c(162) > > I thought the docs said that rsync protocol would be > used if I used the > rsync:// URL. It still wants to use rsh. I'm using > rsync version 2.5.5 under > Cygwin. > > So, I reread the man page and found the RSYNC_RSH > environment variable could > be used to specify the protocol, so I set it like > so: RSYNC_RSH=rsync and > tried again. The first error is gone, only to be > replaced with another: > > $ rsync -vva /cygdrive/c/installs/palm > rsync://192.168.2.3/palm > opening connection using rsync rsync rsync --server > -vvlogDtpr . > //192.168.2.3/palm > building file list ... > expand file_list to 4000 bytes, did move > done > push_dir rsync : No such file or directory (4) > rsync error: errors selecting input/output files, > dirs (code 3) at > /tmp/rsync-2.5.5/main.c(468) > rsync: connection unexpectedly closed (8 bytes read > so far) > rsync error: error in rsync protocol data stream > (code 12) at > /tmp/rsync-2.5.5/io.c(150) > > What should I look at next? > > Thanks, > > Jim Gallagher > > -- > To unsubscribe or change options: > http://lists.samba.org/mailman/listinfo/rsync > Before posting, read:http://www.tuxedo.org/~esr/faqs/smart-questions.html _____________________________________________________ G? f?re i k?n och f? din sajt v?rderad p? nolltid med Yahoo! Express Se mer p?: http://se.docs.yahoo.com/info/express/help/index.html
Jim Gallagher wrote:> $ rsync -a /cygdrive/c/installs/palm rsync://192.168.2.3/palm > rsync: Unknown Host > rsh.exe: can't establish connection <========== ???????...> I thought the docs said that rsync protocol would be used if I used > the rsync:// URL. It still wants to use rsh. I'm using rsync version > 2.5.5 under Cygwin.In the release notes for 2.5.6: * The rsync:// syntax for daemon connections is now accepted in the destination field. Max.