failed connection(was "rsync")

Tim Conway conway at us.ibm.com
Wed Mar 10 15:22:22 GMT 2004


First - nice subject.  On the rsync list, it's good to tell everybody that 
your question concerns rsync.  I mean, we'd never guess that, and just 
that subject alone gives an indication of the nature of the problem, 
right?

Anyway, the rsync process you're invoking is not making contact with the 
rsync on domain.ltd.  Either you're not successfully establishing a shell 
connection, or the one you establish isn't finding the rsync binary on the 
remote.
First, "rsync -vvv rsync at domain.ltd:".  That'll give you something like 
this if your transport is rsh.
+++++++++++++++++++++++++++++++++++++++++++++++++++
cnwt99 at 78KZAZ2
/home/cnwt99>rsync -vvv ync at domain.ltd:
opening connection using rsh -l ync domain.ltd rsync --server --sender 
-vvvr . 
Failed to dup/close : Socket operation on non-socket
rsync error: error in IPC code (code 14) at 
/home/lapo/packaging/tmp/rsync-2.6.0/pipe.c(68)
_exit_cleanup(code=14, file=/home/lapo/packaging/tmp/rsync-2.6.0/pipe.c, 
line=68): about to call exit(14)
rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown": 
Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at 
/home/lapo/packaging/tmp/rsync-2.6.0/io.c(666)
_exit_cleanup(code=12, file=/home/lapo/packaging/tmp/rsync-2.6.0/io.c, 
line=666): about to call exit(12)
cnwt99 at 78KZAZ2
/home/cnwt99>
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Or like this if your transport is ssh.
++++++++++++++++++++++++++++++++++++++++++++++++++++++
cnwt99 at 78KZAZ2
/home/cnwt99>rsync -vvv ync at domain.ltd:
opening connection using ssh -l ync domain.ltd rsync --server --sender 
-vvvr . 
Failed to dup/close : Socket operation on non-socket
rsync error: error in IPC code (code 14) at 
/home/lapo/packaging/tmp/rsync-2.6.0/pipe.c(68)
_exit_cleanup(code=14, file=/home/lapo/packaging/tmp/rsync-2.6.0/pipe.c, 
line=68): about to call exit(14)
rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown": 
Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at 
/home/lapo/packaging/tmp/rsync-2.6.0/io.c(666)
_exit_cleanup(code=12, file=/home/lapo/packaging/tmp/rsync-2.6.0/io.c, 
line=666): about to call exit(12)
cnwt99 at 78KZAZ2
/home/cnwt99>
++++++++++++++++++++++++++++++++++++++++++++++++++++++

That "opening connection" line is the key.  It'll be like the above, or 
Try a connection using the shell command up to the "rsync".
If that works, try that same command, ending in "which rsync".
If it's not finding the remote rsync, find it, and add it with 
"--rsync-path=" to your rsync commandline, or symlink it in somewhere on 
the stripped-down remote shell $PATH.

Good luck.

Tim Conway
Unix System Administration
Contractor - IBM Global Services
conway at us.ibm.com




alexus <alexus at alexus.org> 
Sent by: rsync-bounces+conway=us.ibm.com at lists.samba.org
03/09/2004 09:54 PM

To
rsync at lists.samba.org
cc

Subject
rsync






d# rsync -vcrlpogtz . rsync at domain.ltd:/export/home/rsync/
rsync at domain.ltd's password: 
sh: rsync: rsync: connection unexpectedly closed (0 bytes read so far) 
rsync
error: error in rsync protocol data stream (code 12) at io.c(189)
d# 

Can someone tell me what am I doing wrong?

Thanks

-




More information about the rsync mailing list