RE: rsync gives me error 12

2022-03-28 Thread Neil Aggarwal
> Please pause here for a moment. Are you using Cygwin ssh or MS Windows provided > variant? Cygwin rsync is unable to use native Windows apps as tunnel wrappers. > Be it OpenSSH or PuTTY's plink. With exactly the message you see above. This was the problem. I installed OpenSSH from Cygwin,

RE: rsync gives me error 12

2022-03-28 Thread Neil Aggarwal
> Please pause here for a moment. Are you using Cygwin ssh or MS Windows provided > variant? Cygwin rsync is unable to use native Windows apps as tunnel wrappers. > Be it OpenSSH or PuTTY's plink. With exactly the message you see above. I think we may (finally!) be getting somewhere now. I am

Re: rsync gives me error 12

2022-03-28 Thread Andrey Repin
Greetings, Neil Aggarwal! > Adam: >> this reads to me like the remote >> server is closing the connection > When I run this command on my Windows machine: > rsync --debug=ALL r...@marketing.propfinancing.com:/var/www/svnDumps > /cygdrive/c/Tmp > I get this output on the screen: > opening

RE: rsync gives me error 12

2022-03-27 Thread Neil Aggarwal
> Manually ssh to the server and try to run `rsync -h`. I ran this command: ssh -vvv r...@marketing.propfinancing.com rsync -h It seemed to work. It gave me the output from rsync-h > You can also get verbose ssh information from rsync using I ran this command: rsync -e 'ssh -vvv'

Re: rsync gives me error 12

2022-03-26 Thread gs-cygwin . com
On Sat, Mar 26, 2022 at 11:49:18PM -0500, Neil Aggarwal wrote: > The big stumper for me is that scp works. What could cause rsync to act > differently? Likely answer: your server configuration, such as ssh config, shell configuration, PATH, etc. which are a bit off-topic for the cygwin list.

RE: rsync gives me error 12

2022-03-26 Thread Neil Aggarwal
Wayne: > Perhaps the networking drivers are buggy This is an AlmaLinux 8 server, which is a binary clone of RHEL. It is possible but hard to believe the networking drivers would be a problem. > Perhaps you have firewall or selinux rules that are closing the > connection. I configured the

Re: rsync gives me error 12

2022-03-26 Thread Wayne Davison
On Fri, Mar 25, 2022 at 10:01 PM wrote: > On the server, I got a /tmp/rsync-3191.out file which I am attaching here. > I can't make sense of what it is trying to tell me. It shows you the system calls being made. If you read down to the end, rsync writes 4 bytes and then tries to read 4 bytes

RE: rsync gives me error 12

2022-03-26 Thread Neil Aggarwal
Adam: Thanks for the opinion on the version differences. Regarding my server setup, this command works: scp r...@marketing.propfinancing.com:/var/www/svnDumps/* "c:\\Tmp" So I am not completely convinced the problem lies in the network or my server. It would be nice to get rsync working since

Re: rsync gives me error 12

2022-03-26 Thread Adam Dinwoodie
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 r...@marketing.propfinancing.com:/tmp > > I still get an error: > rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] > rsync error:

RE: rsync gives me error 12

2022-03-25 Thread Neil Aggarwal
Wayne: When I run this command on my Windows machine: echo hi | ssh r...@marketing.propfinancing.com cat I get back: hi When I run this command: rsync --debug=ALL --msgs2stderr -M--msgs2stderr r...@marketing.propfinancing.com:/var/www/svnDumps /cygdrive/c/Tmp I get this output: opening

Re: rsync gives me error 12

2022-03-25 Thread Wayne Davison
On Fri, Mar 25, 2022 at 10:37 AM Neil Aggarwal wrote: > 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

RE: rsync gives me error 12

2022-03-25 Thread Neil Aggarwal
Adam: I tried doing an upload using this command: rsync test.xml r...@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:

RE: rsync gives me error 12

2022-03-25 Thread Neil Aggarwal
Adam: > this reads to me like the remote > server is closing the connection When I run this command on my Windows machine: rsync --debug=ALL r...@marketing.propfinancing.com:/var/www/svnDumps /cygdrive/c/Tmp I get this output on the screen: opening connection using: ssh -l root

RE: rsync gives me error 12

2022-03-25 Thread Neil Aggarwal
Adam: > Looking slightly closer at the logs, this reads to me like the remote > server is closing the connection, so I expect you'll need help from > whoever provides/supports that remote server to work out why it's doing > that. I am responsible for the remote server. I will look into that.

Re: rsync gives me error 12

2022-03-25 Thread Adam Dinwoodie
On Fri, Mar 25, 2022 at 08:25:16AM -0500, Neil Aggarwal wrote: > > I suspect the `-e ssh` part is the problem here. That's supposed to > > specify the remote shell, not the method for connecting. What are you > > attempting to achieve with that? > > I am trying to do the sync over an SSH

RE: rsync gives me error 12

2022-03-25 Thread Neil Aggarwal
> I suspect the `-e ssh` part is the problem here. That's supposed to > specify the remote shell, not the method for connecting. What are you > attempting to achieve with that? I am trying to do the sync over an SSH connection. When I remove it: rsync --debug=ALL

Re: rsync gives me error 12

2022-03-25 Thread Adam Dinwoodie
On Thu, Mar 24, 2022 at 12:22:12AM -0500, Neil Aggarwal wrote: > I am trying to use rsync to pull all backups from a linux server > to my local Windows machine. > > I tried this rsync command: > > $ rsync --debug=ALL -e ssh r...@marketing.propfinancing.com:/var/www/svnDumps > /cygdrive/c/Tmp >