rsync/ssh/cygwin

Andrew MacKenzie andy at edespot.com
Tue May 13 01:31:52 EST 2003


> On Tue, May 06, 2003 at 11:13:05AM -0400, Andrew MacKenzie wrote:
> [snip]
> > > It is clear that things are not configured correctly for ssh
> > > and csh.  I'd suggest while testing that you disable X11
> > > forwarding (either -e "ssh -x" or set the RSYNC_RSH
> > > variable). The fewer extraneous errors the easier to debug.
> > 
> > # rsync -e 'ssh -x' -ravvv amackenz at edw450-1-1:MAGS/Unix .
> > opening connection using ssh -x -l amackenz edw450-1-1 rsync --server --sender -vvvlogDtpr . MAGS/Unix 
> > amackenz at edw450-1-1's password: 
> > channel 0: chan_shutdown_read: close() failed for fd-1: Socket operation
> > on non-socket
> 
> This message apears to be comming from ssh since i cannot
> find anything like it in rsync source.
> 
> Try turning off verbosity on rsync and pump up the debugging
> level on ssh.  This is looking very much like an ssh
> problem.
Hrm.  Looks like this is indeed a ssh problem.

I'm starting to think it's an issue between ssh and cygwin, and not with
rsync.  I'll pursue this issue on other lists.

Thanks for assistance.


(partial) Output from  rsync -e 'ssh -vv -x' -ra --exclude=SunWS_cache
--exclude='*.o' --progress --stats Unix amackenz at edw450-1-1:.'
(highlighting mine):

amackenz at edw450-1-1's password: 
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: fd 4 setting O_NONBLOCK
debug1: fcntl(4, F_SETFL, O_NONBLOCK): Socket operation on non-socket
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug2: fd 5 is O_NONBLOCK
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: ssh_session2_setup: id 0
debug1: Sending command: rsync --server -logDtpr . .
debug1: channel 0: request exec
debug2: callback done
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug1: channel 0: read<=0 rfd 4 len -1
debug1: channel 0: read failed
debug1: channel 0: close_read
channel 0: chan_shutdown_read: close() failed for fd-1: Socket operation on
non-socket
debug1: channel 0: input open -> drain
debug1: channel 0: ibuf empty
debug1: channel 0: send eof
debug1: channel 0: input drain -> closed
debug2: channel 0: rcvd ext data 60
rsync: connection unexpectedly closed (0 bytes read so far)
debug2: channel 0: written 60 to efd 6
debug2: channel 0: rcvd ext data 72
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd close
debug2: channel 0: obuf_empty delayed efd 6/(72)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
debug2: channel 0: written 72 to efd 6
debug1: channel 0: obuf empty
debug1: channel 0: close_write
channel 0: chan_shutdown_write: close() failed for fd-1: Socket operation
on non-socket
debug1: channel 0: output drain -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
debug2: fd 0 is not O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.4 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 12
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at
/tmp/rsync-2.5.6/io.c(177)


-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// "He missed an invaluable opportunity to hold his tongue."
//         - Andrew Lang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20030512/44d7e56b/attachment.bin


More information about the rsync mailing list