Rsync problems

I started having problems with my DeltaCopy (rsync 3.0.5 on Windows). ssh with a "i" key works fine. The error is as follows:

C:\Program Files\Synametrics Technologies\DeltaCopy>rsync -a -vvv –log-file=a.l

og cygz.dll -e "ssh -l root -p 5050" myhost:/test/

opening connection using: ssh -l root -p 5050 myhost rsync

--server -vvvlogDtpre.iLs . /test/

Cannot connect to the host

rsync: read error: Connection reset by peer (104)

rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packagi

ng/rsync-3.0.4-1/src/rsync-3.0.4/io.c(791) [sender=3.0.4]

exitcleanup(code=12, file=/home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/i

o.c, line=791): about to call exit(12)

When I try to insert the key into ssh command I got the following:

C:\Program Files\Synametrics Technologies\DeltaCopy>rsync -a -vvv cygz.dll -e "ssh -l root -p 22 -i backupkey" myhost:/test/

opening connection using: ssh -l root -p 22 -i backupkey myhost.

co.uk rsync –server -vvvlogDtpre.iLs . /test/

Cannot resolve host 'backupkey'

rsync: read error: Connection reset by peer (104)

rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packagi

ng/rsync-3.0.4-1/src/rsync-3.0.4/io.c(791) [sender=3.0.4]

exitcleanup(code=12, file=/home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/i

o.c, line=791): about to call exit(12)

Rsync works fine from another Linux PC. I have tried to disable the firewall and different internet connections.

The rsync version on my windows is 3.0.5 and I also tried to downgrade it on the Linux to 2.6.9

Anyone knows how to cure this problem? Out of blue rsync just stopped working. I am running CentOS with latest updates….

25 Replies

> opening connection using: ssh -l root -p 22 -i backupkey myhost.

co.uk rsync –server -vvvlogDtpre.iLs . /test/

Cannot resolve host 'backupkey'
That section pops out at me first; you may to check your syntax as it appears to be attempting to use "backupkey" as the hostname.

Yeah, I have seen this one as well and I do not understand. Its either connection has been reset by peer or cannot resolve host "sshkey"… :?: :?: :?:

I have checked it many times - the syntacsis is ok. Ssh is working ok if I issue a command "ssh myhost -l root - i sshkey"…

Since I'm not familiar with the product you are using, and thus don't have any directly useful suggestions for configuring it, I have a couple of alternate paths you could take.

If running rsync on Windows in order to interface with your VPS is a requirement, I recommend Cygwin (http://www.cygwin.com/) as the environment of choice. Otherwise, have you considered th alternate approach of installing something like Sun xVM and doing it inside a minimal Debian (or your distro of choice) install? I use VMs for backup purposes, and it's worked out well for me.

@ClassHelper:

If running rsync on Windows in order to interface with your VPS is a requirement, I recommend Cygwin (http://www.cygwin.com/) as the environment of choice. Otherwise, have you considered th alternate approach of installing something like Sun xVM and doing it inside a minimal Debian (or your distro of choice) install? I use VMs for backup purposes, and it's worked out well for me.

rsync.exe I have is a part of Cygwin.

Sun xVM…probably worth trying. I just do not get it why this rsync error comes up. I think it could be due to some Windows updates were installed. BTW, I do not see any rsync connection to the server on the server side.

Since you mentioned updates, any chance that changes to your local workstation or LAN firewall config could be blocking the connection?

Just an update; rsync in Cygwin gives me the same error:

Cannot connect to the host

rsync: read error: Connection reset by peer (104)

Any idea why this may happen?

@ClassHelper:

Since you mentioned updates, any chance that changes to your local workstation or LAN firewall config could be blocking the connection?

This is what I have thought. But I can still connect to Linode via ssh!!!

Also I have tried to stop Windows Firewall service. No luck…

Another update

Command rsync -v -a -z file.exe root@myhost

is copying file into a local directory under name root@myhost….

as soon as I put root@myhost:/backup is says

Cannot connect to the host.

At this point I'd recommend taking a look at reinstalling your client-side software. Given the fact that known past good commands (according to your assertions) are failing, I think you might be dealing with a corrupted local environment. Although I must also add that not putting the protocol or full remote path before the last argument in a command is not likely to work, as it will treat that argument as a local file instead of a remote destination.

Has your local net connection's IP changed recently? In other words, do you have firewall rules in place on the CentOS VPS to only allow connections from specific IPs (I certainly do)?

@ClassHelper:

At this point I'd recommend taking a look at reinstalling your client-side software. Given the fact that known past good commands (according to your assertions) are failing, I think you might be dealing with a corrupted local environment. Although I must also add that not putting the protocol or full remote path before the last argument in a command is not likely to work, as it will treat that argument as a local file instead of a remote destination.

I have tried to reinstall the software. The same result. I think I need to reinstall Windows. I just do not wanna do that just because of rsync.

@ClassHelper:

Has your local net connection's IP changed recently? In other words, do you have firewall rules in place on the CentOS VPS to only allow connections from specific IPs (I certainly do)?

No, CentOS firewall blocks certain ports only. Currently, I tried to disable it, again no luck. Also I have tried to rsync to another server.

The same result. :shock:

I just wonder how I can debug rsync on Windows?

@alexsh1:

I just wonder how I can debug rsync on Windows?
I'd attempt to duplicate the problem on another machine with a similar software environment. Do you have another box you can test from?

@ClassHelper:

@alexsh1:

Do you have another box you can test from?

Not really, this is a corporate laptop. I used to rsync all my photos and private documents to my VPS. I can try to setup rsync on the Windows server, but its on the other network.

BTW, I have also tried different internet connections (wired, wireless, 3G)

To put this delicately: perhaps the corporate laptop and office server may not be the best machines to be using for storing and transferring private personal documents and photos…

Ok, the update…

On another PC rsync os working like a charm….

The question is what's f*** up my laptop?

@ClassHelper:

To put this delicately: perhaps the corporate laptop and office server may not be the best machines to be using for storing and transferring private personal documents and photos…

Yeah, I know, but I have only 1 laptop so keep my personal staff on it as well.

@alexsh1:

@ClassHelper:

To put this delicately: perhaps the corporate laptop and office server may not be the best machines to be using for storing and transferring private personal documents and photos…

Yeah, I know, but I have only 1 laptop so keep my personal staff on it as well.
What about booting off a live Linux distro and storing your personal stuff on a USB drive? That way you have a reliable environment to do your own stuff in, and you don't run the risk of getting into an uncomfortable situation with your employer. Plus, you won't have to deal with Windows ;).

@ClassHelper:

What about booting off a live Linux distro and storing your personal stuff on a USB drive? That way you have a reliable environment to do your own stuff in, and you don't run the risk of getting into an uncomfortable situation with your employer. Plus, you won't have to deal with Windows ;).

This is a good suggestion, but the HDD has been encrypted, and I cannot see it from Linux. Basically, I used to rsync My Documents with my Linode as all corporate staff is kept on the mounted network drive.

So all I want to do for now is just debug rsync in Windows, so far no luck. Later this year, I am going to buy iMac, then rsync is not going to be a problem. :lol:

Classhelper

Thanks for your help.

I am currently testing Sun's virtualbox to install ubuntu or something.

Looks like some system dll has been messed up, despite a version any rsync.exe does not work properly on my Windows XP

an update

I have installed Virtualbox and rsync'ed all the staff onto my VPS.

Thanks for your suggestion, at least now it works :D

Still puzzled what happened to rsync.exe. It simply did not see any active internet connection. :shock:

@alexsh1:

Still puzzled what happened to rsync.exe. It simply did not see any active internet connection. :shock:

Corporate laptop… Corporate internet security package?

@alexsh1:

an update

I have installed Virtualbox and rsync'ed all the staff onto my VPS.

Thanks for your suggestion, at least now it works :D

Still puzzled what happened to rsync.exe. It simply did not see any active internet connection. :shock:
Glad you were able to work around the problem :).

@mwalling:

Corporate laptop… Corporate internet security package?

No, I have only Antivirus on my laptop, plus there is a hardware device on the network called Barracuda to filter spam/virus and there is a proxy. However, I can switch for 5-10 mins to a local wireless and get everything done on this network! :D

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct