rsync gives me error 12

Adam Dinwoodie adam@dinwoodie.org
Sat Mar 26 11:48:36 GMT 2022


On Fri, Mar 25, 2022 at 12:36:55PM -0500, Neil Aggarwal wrote:
> Adam:
> 
> I tried doing an upload using this command:
> rsync test.xml root@marketing.propfinancing.com:/tmp
> 
> I still get an error:
> rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> rsync error: error in rsync protocol data stream (code 12) at io.c(226)
> [Receiver=3.1.3]
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: error in rsync protocol data stream (code 12) at io.c(228)
> [sender=3.2.4dev]
> 
> Could it be the rsync versions are somehow incompatible?

That seems unlikely: this is an incredibly generic error, and there are
*many* possible causes for it.  I've never heard of version
incompatibilities causing this sort of behaviour, and if they did, I'd
expect that would be very widely documented.  I'd expect the versions
would need to differ much more substantially before that would cause an
issue.

At this point, I don't think there's any evidence there's a problem with
Cygwin itself, or with the rsync packaging for Cygwin; this looks like a
problem with either your server setup or your rsync configuration.  As
such -- at least unless I've missed something that points to it being a
problem with Cygwin or the Cygwin rsync package in particular -- I think
we're rapidly veering off topic for the Cygwin mailing list.

> Would it help if I create a login for you on the server so
> you can try doing an rsync yourself?

If you can provide steps by which someone could set up their own
ssh+rsync server and reproduce this problem, you might be able to get
further help on some other open source forum.  If those steps
necessarily require Cygwin, you might even be able to get further help
on this mailing list.

I'm afraid, however, that connecting to your server to help diagnose
problems there is the sort of thing you probably need to pay someone
to do.


More information about the Cygwin mailing list