Unexpected timeout in rsync
jw schultz
jw at pegasys.ws
Tue Jan 13 22:15:16 GMT 2004
On Tue, Jan 13, 2004 at 06:50:28PM +0000, John Hunt wrote:
> Hi
>
> I am having trouble with intermittent timeouts when backing up a largish set
> of files from /usr using rsync. Approx 125,000 files, 2GB. Backup is to same
> machine, from a partition on hda to one on hdb. I am using ribs 2.1
> (slightly modified to ignore rsync error 23), run with nice -n 5 via cron.
> (for ribs visit http://rustyparts.com/phpBB/viewforum.php?f=9 )
>
> Typical error report is:
>
> rsync error: timeout in data send/receive (code 30) at io.c(103)
> rsync: connection unexpectedly closed (2613404 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
> rsync: connection unexpectedly closed (2613404 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(165)
>
> rsync return value = 12
>
> The rsync command being generated by ribs is:
>
> /usr/bin/rsync -artpl --delete --delete-excluded --stats --timeout=600
> --exclude="/usr/local/*" -e ssh "root at localhost:/usr"
> /backups/hdb/system/usr/weekly.0 >/tmp/ribs-system-weekly_b4tInu 2>&1
>
> I've just run this from the command line (at default priority) and it took
> only 7 minutes to complete. Increasing the timeout from 180 (ribs default) to
^^^^^^^^
I assume you mean fail.
> 600 has not improved matters.
>
> On the other hand a 6GB set of files, mostly jpegs, appears to be handled
> reliably. As are all my other ribs backups via cron, generally a few 100MB.
>
> Mandrake 9.2, rsync 2.5.6, open ssh 3.6.1p2.
>
> Any suggestions?
It sounds like a something is causing a hang. I'd start by
adding -v to see when it is hanging. Perhaps -vv. You
might want to fsck the filesystem.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list