This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

rsync 3.0.9 fails when over ssh: connection unexpectedly closed / error in rsync protocol data stream


Hello all,

I'm trying to run an rsync backup over ssh, but I'm getting an error
message when doing this.


First of, these are the versions of rsync & ssh I'm running:
------------------
rsync  version 3.0.9  protocol version 30
OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
------------------

Attached you can find the output of running the command "cygcheck -s -v -r".


When I run rsync without ssh, it's working fine, e.g.:
------------------
rsync --delete -ahzv --exclude=".svn"     /cygdrive/c/projects
ludovic@REMOTEHOST::backup/E6410/
Password:
sending incremental file list

sent 9.00M bytes  received 68.31K bytes  15.56K bytes/sec
total size is 12.62G  speedup is 1391.54
------------------


When I run the same rsync command over ssh, it fails like this (note
that it fails right away, it doesn't need the usual ~5-10 minutes to
check the 'c/projects/' dir):
------------------
$ rsync --delete -ahzv --exclude=".svn" -e ssh
/cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605)
[sender=3.0.9]
------------------

The same problem occurs when using less rsync options, e.g. "rsync -e
ssh /cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/". I've
attached an strace output of running this command, in case that helps.


However, ssh'ing to the remote host works fine. SSH worked fine when
it wasn't passwordless; I set it up a few days ago to be passwordless
and it's still working fine:
------------------
$ ssh ludovic@REMOTEHOST
Last login: Wed Dec 28 15:51:45 2011 from [foobar] on pts/0
Linux REMOTEHOST 2.6.37 #1 SMP Mon Aug 15 16:19:41 PDT 2011 x86_64 GNU/Linux
Last login: Wed Dec 28 15:51:50 2011 from [foobar]
ludovic@REMOTEHOST:~$
------------------

rsync over ssh always gives me the same error, whether passwordless or not.


I have no idea if I'm doing something wrong, or if this is a bug.
Given the amount of people probably running it like this, I'd say it's
a problem on my side, but the type of error makes me wonder.

Thanks in advance for any help,
Ludovic

P.S.: Please keep me in Cc as I'm not subscribed.

Attachment: strace.txt
Description: Text document

Attachment: cygcheck.out
Description: Binary data

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]