Since i upgraded rsync to the last version all the rsync running through cron are failing, running the same command through SSH is working ok. Wondering how could i troubleshoot it. The cron line is: 0 7 * * * root rsync -azH --stats --delete --partial --timeout=300 --exclude=/proc -e ssh root@xx.xx.xx.xx:/ /home/server7 > /var/log/backupserver7.log 2>&1 The error is: rsync error: timeout in data send/receive (code 30) at io.c(171) [sender=2.6.8] rsync: connection unexpectedly closed (24336606 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(359) rsync: connection unexpectedly closed (24336606 bytes received so far) [generator] rsync error: error in rsync protocol data stream (code 12) at io.c(359) Thank you in advance! -------------- next part -------------- HTML attachment scrubbed and removed
On Tue, May 09, 2006 at 12:54:58PM -0300, Manuel Kissoyan wrote:> rsync error: timeout in data send/receive (code 30) at io.c(171) [sender=2.6.8] > rsync: connection unexpectedly closed (24336606 bytes received so far) [receiver]I note that the command is up and running, but that it timed out after doing receiving quite a bit of data. I'd suggest (1) switching over to using --delete-during (since that does not cause a huge pause at the start of the transfer), and/or (2) trying to increase (or eliminate) the timeout value to see if rsync is just running slowly or if it is getting hung up on something (i.e. the time of the cron job may coincide with other disk-intensive operations, and slow down rsync enough that it times out). ..wayne..
both servers have the same version... rsync version 2.6.8 protocol version 29 Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others. ----- Original Message ----- From: "Wayne Davison" <wayned@samba.org> To: "Manuel Kissoyan" <manuel@kissoyan.com.ar> Cc: "rsync list" <rsync@lists.samba.org> Sent: Wednesday, May 10, 2006 2:12 PM Subject: Re: is not working running through Cron> On Wed, May 10, 2006 at 01:35:08PM -0300, Manuel Kissoyan wrote: >> rsync: --delete-during: unknown option >> rsync error: syntax or usage error (code 1) at main.c(1084) >> >> is a bug? > > No, it just means you need to upgrade that version of rsync. (Since the > version on the remote (sending) side was 2.6.8, I assumed that the > version on the local machine would be fairly recent too, but apparently > not.) > > ..wayne.. > >