I have been getting the follow error when trying to rsync from one server to a remote server:

rsync error: unexplained error (code 130) at rsync.c(541) [Receiver=3.0.7]

The server configurations are identical both are running Ubuntu 10.04 LTS.

I have successfully made an SSH connection between the two servers using ssh keys.

Any help troubleshooting this error would be greatly appreciated.

The command that I am using is:

rsync -v -e ssh remote-user@remote-server:/path/to/dir/ /path/to/dir

This command hangs. I have to Cntl + C to cancel the command and that is when I receive the error message above.

SOLVED! The solution was to remove a chroot jail in /etc/ssh/sshd_config from the user group that I was connecting to the remote server with.

link|improve this question
What options are you running? What is your connect string? You need to supply technical information regarding the rsync in question if you want a quality answer. Otherwise you likely won't get anything better than a Google Search would turn up. – Adrian Feb 3 at 18:59
Thanks for your comment - I have edited the original post to include the command line string – user974590 Feb 3 at 19:02
Just to clarify; rsync is installed on the source and destination servers, right? – Publiccert Feb 3 at 19:11
Correct rsync is installed on both servers. – user974590 Feb 3 at 19:26
Can you give us an estimate of how many files/folders are in the set to be synced? What about the size? If you do a tcpdump, do you see activity between the two systems? If you look at top/iotop on the client/server, is rsync appear to actually be doing things? – Zoredache Feb 3 at 20:56
show 1 more comment
feedback

2 Answers

Solved! The solution was to remove a chroot jail from the user that I was connecting to the remote server with.

link|improve this answer
feedback

The error isn't your problem. That's rsync's response to your Control-C interruption.

You need to run the command with different options. Try running it with '-avP' instead.

  • The 'a' is recursive. Yours is quite possibly stopping because you're trying to copy a directory.
  • The 'P' gives you progress of download
  • The 'v' is the verbose which was a good idea. You can double the 'v' options to get debugging information
link|improve this answer
Thank you for your suggestion, unfortunately the command still hangs. I changed the command to just copy a file, again still the same problem. – user974590 Feb 3 at 19:25
Using your double vv suggestion produces the following output: opening connection using: ssh -l remote-user remove-host rsync --server -vve.Lsf . /path/to/dir/ – user974590 Feb 3 at 19:28
That string you supplied means you still aren't using the 'a' that I recommended, which is what gets you the recursive operation that you're looking for. Of course, like @Publiccert said, I certainly assume you are running rsync on both ends since you did say 'identical'. If you're NOT trying to do recursive downloading, you need to be specifying a wildcard/regex that fits some files in that directory before downloads will work. If you're not comfortable with all the things that 'a' does, you need to be running it with a '-r' option. – Adrian Feb 3 at 19:35
Adjusted the command to: -vvaP and this is the output: opening connection using: ssh -l remote-user remote-server rsync --server -vvlogDtpre.iLsf --partial . /path/to/dir/ – user974590 Feb 3 at 19:37
Just to be sure: rsync need to be running on target server, not just installed. The output you supply tend to show your client can't connect to your server. Maybe a firewall related problem, or just rsync don't run. – Gregory MOUSSAT Feb 3 at 19:44
show 5 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.