2013年3月15日 星期五

Rsync error message and solution

Error message:
rsync: writefd_unbuffered failed to write 4096 bytes: phase "send_file_entry" [sender]: Connection reset by peer (104)

OS version: CentOS 4.8, rsync-2.6.3-1
Command: rsync -av --delete --password-file=/rsync.pwd bak@myhost::data /data &

Try 1:
  • add -W option (--whole-file).
  • It doesn't help.
Try 2:
  • Download new version rsync. http://pkgs.repoforge.org/rsync/ 
  • (Ex: rsync-3.0.9-1.el4.rfx.x86_64.rpm)
  • update rsync: rpm -Uvh rsync-3.0.9-1.el4.rfx.x86_64.rpm
  • It doesn't help.
Try 3:
  • Check the /var/log/rsync.log. It looks like the Error happens when I close the telnet session.
  • run rsync command by cron job.
  • It works fine!



沒有留言:

張貼留言