Hi all,
I am working on a networking product in which i am using Rsync to update
configuration files in them.
While syncing a file of 5.5MB, i am facing a problem. An error is displayed
and the syncing process is terminated.
The error is as below:
rsync: connection unexpectedly closed (1804855 bytes received so far)
[receiver]
rsync: connection unexpectedly closed (39 bytes received so far)
[generator]
The rsync command line is given as below:
rsync --timeout=60 srcIp::path/file.tar.gz destPath/destFile
On looking into the code, i found the comment saying that expecting an EOF
over a network is wrong. Hence a wait for
10 seconds is done and then the connection is terminated. Does the
increase in the time to a higher value solve this
problem ? Or is there any other fix available for this issue.
Any help on this regard is greatly appreciated.
Best Regards,
Vijay Ram.C
-------------- next part --------------
HTML attachment scrubbed and removed
On Fri, Feb 24, 2006 at 12:07:05PM +0530, Vijay Ram.C wrote:> rsync: connection unexpectedly closed (1804855 bytes received so far) [receiver] > rsync: connection unexpectedly closed (39 bytes received so far) [generator] > > The rsync command line is given as below: > > rsync --timeout=60 srcIp::path/file.tar.gz destPath/destFileSee the issues and debugging page for details on how to figure out why the connection closed. The first step listed for a daemon is to check the log file, since it should tell you what reason the daemon gave for the abnormal termination (assuming it didn't crash). If it is exiting with a timeout, try a more modern version of rsync. If it is exiting with a similar unexpected-close or write-failed error, then you have a failing-connection problem outside of rsync that you need to solve. ..wayne..