SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Guys, is this, I maintain some packages my synchronized with my remote server but I have a problem ... is very hard to understand, time it works, time not works. When not working the following happens:
Code:
[root@xxxx repository]# rsync -avzP --delete-after --partial-dir=.partial-dir rsync://xxxx@xxx.xx.xxx.xxx/repositorio 13.1
Password:
receiving file list ...
178 files to consider
rsync error: timeout in data send/receive (code 30) at io.c(137) [sender=3.0.7]
rsync: connection unexpectedly closed (6990 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
rsync: connection unexpectedly closed (6990 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [generator=3.0.6]
You can try without compression (remove the -z from the command line), use a high value for --timeout (even though it's 0 by default, which means it shouldn't timeout at all) or use rsync over ssh.
Personally, I like to use rsync over ssh because a couple of ISPs that I know tend to prioritize SSH, which helps to avoid such timeouts.
Also, rsync -vvvv in both sides should spit out more details that might help you, like the protocol version used, wether keep-alive packets are being sent or not, what happens right before the timeout and etc.
The above line will make ssh act like a SOCKS proxy, sending the requests to 127.0.0.1:8873 through localhost to the.remote.host:873.
It will enable compression (-C), go into background (-f) and don't allocate a pseudo-terminal (-N). See ssh(1).
It's almost the same thing that you use, except that here compression is disabled (ssh is taking care of it, remember?) and you send the requests to 127.0.0.1:8873 (which goes to the.remote.host:873 through the tunnel).
$ssh -L 8873:myip:873 -fNC localhost
$rsync -avP --delete-after --partial-dir=.partial-dir rsync://127.0.0.1:8873/sbo slackbuilds
receiving file list ...
19307 files to consider
created directory slackbuilds
./
rsync error: timeout in data send/receive (code 30) at io.c(137) [sender=3.0.7]
rsync: connection unexpectedly closed (445368 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
rsync: connection unexpectedly closed (445365 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [generator=3.0.6]
Also, are you sure it's not a network problem like packet loss or some kind of shaper dropping the packets to throttle the transfer rates? The rsync option --bwlimit may help to work around the latter.
I have the same problem with rsync timing out after a day or so.
I am copying server images (almost 7TB)
At the moment, as a work around I am splitting the copy into smaller groups to see if that works.
File copy is on local lan - Gigabit network with 6gbps backbone between switches
The error I get after a few hours:
Code:
rsync: connection unexpectedly closed (85406994 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]
I have had occasional indeterminate issues with remote rsync servers from time-to-time myself. The issues are on machines where I've got no admin rights so I've not bothered to debug.
OTOH ... If there is an ssh server open on the remote server, you can also invoke the rsync -e '<<ssh shell>>' syntax.
Assuming:
Code:
uuuuuuuu is your remote username,
xxx.xxx.xxx.xxx is the Source Machine's IP Addr,
/remote/path/to/repositorio is the full path to the remote Source directory and ...
/local/path/to/13.1 is the directory on your local machine containing the 13.1 Target directory.
You'll need to convert the rsync server Source directory ( repositorio ) to a full path on the remote machine and you'll need permissions to reach it !
The following command should work without having to set up a separate ssh tunnel ( note the single-quote pair around the -e arg the -p <<PORT>> Arg is optional if ssh listens on port 22 ):
Guys, is this, I maintain some packages my synchronized with my remote server but I have a problem ... is very hard to understand, time it works, time not works. When not working the following happens:
Code:
[root@xxxx repository]# rsync -avzP --delete-after --partial-dir=.partial-dir rsync://xxxx@xxx.xx.xxx.xxx/repositorio 13.1
Password:
receiving file list ...
178 files to consider
rsync error: timeout in data send/receive (code 30) at io.c(137) [sender=3.0.7]
rsync: connection unexpectedly closed (6990 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
rsync: connection unexpectedly closed (6990 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [generator=3.0.6]
this happens when you have many files.... strange
I'm using slackware 13.1...
any idea?
If you had opened your web browser and used google, you would have seen the very first search result provided a serverfault.com thread discussing a very similar question.
To summarize, run tcpdump that listens on the rsync port and run strace on the rsync process. You will find your answer within the output of those commands.
More than likely you just have intermittent internet connectivity that is causing your rsync session to error out.
If you had opened your web browser and used google, you would have seen the very first search result provided a serverfault.com thread discussing a very similar question.
To summarize, run tcpdump that listens on the rsync port and run strace on the rsync process. You will find your answer within the output of those commands.
More than likely you just have intermittent internet connectivity that is causing your rsync session to error out.
plofkat necro'd the thread. You quoted the original post, which was made back in 2010, where the serverfault question was in 2012.
The remote server is taking too long to respond to the rsync request, ergo the rsync from client-side drops the connection or thinks that the connection has been somehow been lost.
Monitor the load on the remote server or check for other h/w issues (maybe faulty disks, faulty NICs, etc)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.