rsync error code 12

jw schultz jw at
Thu Sep 25 05:46:45 EST 2003

On Wed, Sep 24, 2003 at 10:58:44AM -0500, Edward King wrote:
> rsync: writefd_unbuffered failed to write 1 bytes: phase "unknown": 
> Connection timed out
> rsync error: error in rsync protocol data stream (code 12) at io.c(515)
> Any idea regarding this error?  We sync a number of machines, and one 
> consistently has this error every night.  If I exclude the file that the 
> error occurs on, it will go past and fail on another file.  One large file 
> it failed on over and over.
> The connection is over a vpn, but we always can get through and are using 
> bwlimit to throttle down to 15k.  Disk space is good on both sides, running 
> as root (uid 0 on the server side), versions 2.5.6 protocol 26 on both 
> sides.  Rsync will hang, pings still go through and we can still ssh into 
> the sending server.  Both servers are running Linux.
> Thanks for any suggestions!

Check the timeout on the vpn.  That error is often caused by
the session being cut off.

A large file will usually mean a lot of blocks.  That can
cause delays matching sums on the sender.  Those delays will
be worse if memory pressure causes thrashing.

Delays can also be caused by errors in the disk subsystem so
i'd suggest checking for any hint of problems there.

You don't say what you mean by large file.

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at

		Remember Cernan and Schmitt

More information about the rsync mailing list