Can't Figure out why rsync job stops

Jim Salter jim at
Fri Jan 30 23:46:12 GMT 2004

Have you fsck'ed the filesystems on both ends?

Have you checked to make certain network pipes don't get magically 
broken in between both ends?  (Many connections have issues in which a 
given pipe will only stay open for [x] amount of time, or [x] amount of 
idle time, before being closed by a router.  This is not an issue which 
tends to be visible to the end-user with protocols like HTTP or FTP, but 
can very definitely be an issue with SSH or rsync.  Test: ssh across the 
two servers.  Do nothing for half an hour.  Is the pipe still open?)

Jim Salter

Bryan Sauser wrote:
> I checked and I also double checked with our network admin. There is no VPN
> or Firewall between the servers. There is no need because it is a direct
> connection.
> -----Original Message-----
> From: jw schultz [mailto:jw at]
> Sent: Friday, January 30, 2004 1:07 PM
> To: 'rsync at'
> Subject: Re: Can't Figure out why rsync job stops
> On Thu, Jan 29, 2004 at 03:36:51PM -0600, Bryan Sauser wrote:
>>I connecting to two offsite over servers, that are connected over
> dedicated
>>T1 lines. I'm using the same script on both servers. One runs fine, but
> the
>>other starts, gets the file list and processes a few folders. Then it will
>>hang for about 5 minutes before sptting out the following errors:
>>receiving file list ...
>>16756 files to consider
>>rsync: writefd_unbuffered failed to write 4092 bytes: phase "unknown":
>>Connection timed out
>>rsync: connection unexpectedly closed (294104 bytes read so far)
>>rsync error: error in rsync protocol data stream (code 12) at io.c(666)
>>rsync error: received SIGUSR1 or SIGINT (code 20) at main.c(886)
>>I have tried making the job smaller. Changing to different folder with
>>different file, but It always acts like this.
>>I am running rsync  version 2.6.0  protocol version 27 on all of the
>>servers. My to offsite servers, and local backup server.
>>Here is the OS information for the servers.
>>Local: Linux version 2.4.18-14smp (bhcompile at
>>(gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7))
>>Working Offsite: Linux version 2.4.20-18.7
>>(bhcompile at (gcc version 2.96 20000731 (Red Hat
>>Linux 7.3 2.96-113))
>>Problem Offsite: Linux version 2.4.20-18.9
>>(bhcompile at (gcc version 3.2.2 20030222 (Red Hat
>>Linux 3.2.2-5))
>>Here is a copy of the script that I'm running.
>>/usr/local/bin/rsync -avz  --stats --progress
>>I am looking for pointer in the rights direction. I can't seem to find any
>>more specific info on these errors out there.
> This looks a great deal like a dropped session of the sort
> one would see over a firewall or VPN.

More information about the rsync mailing list