Ad

isaac
asked Nov 19 2018
Answer
TO solve this issue run the following command
rsync -ravq -e "ssh -o ConnectTimeout=2 -o ServerAliveInterval=2 -ServerAliveCountMax=2" --delete ./local_dir user@$SERVER:/dest_dir
This will make effort in Timeout, alive count and prevents the issue from happening during large File transfer

gokulravichandran2
asked Nov 20 2018
edited Nov 20 2018
How to fix corrupt packet error for with rsync for (relatively) large files
Hi, I am trying to fix corrupt packet error while using rsync for (relatively) large files and facing the following error during the process
rsync: writefd_unbuffered failed to write 4092 bytes to socket [sender]: Broken pipe (32) rsync: connection unexpectedly closed (11337 bytes received so far) [sender] rsync error: unexplained error (code 255) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605) [sender=3.0.9]
This is probably related to a ssh timeout, as it seems to happen with large(r) files. Also, I keep getting timeouts using WinSCP. This is happening only to me; several of the people I work with that use this server do not have the same problem.
how to solve this ?