Some of our users have recently reported seeing the following error in their rsync logs:
rsync: Failed to dup/close: Socket operation on non-socket (108)
rsync error: error in IPC code (code 14) at pipe.c(72) [sender=3.0.3]
rsync: read error: Connection reset by peer (104)
rsync error: error in IPC code (code 14) at io.c(803) [sender=3.0.3]
BackupAssist 5.1 reports this error as BA3012 “Error in rsync protocol data stream”. BackupAssist 5.2 reports either BA3302 “Could not establish connection” or BA3014 “Error in IPC code”.
We have identified two possible causes for this error:
- Windows Data Execution Prevention (DEP) preventing rsync from running.
- Another program, such as the Kaseya Agent inserting itself into the Windows networking stack
To resolve the DEP issue you need to go to Control Panel > System > Advanced > Performance > Data Execution Prevention.
Either change the DEP setting to “essential Windows programs and services only”, or add exceptions for the three programs required for rsync:
ssh-keygen.exe. These programs are located in
"C:\ProgramData\BackupAssist v5\temp\Rsync" on Windows Vista and Server 2008, or in
"C:\Documents and Settings\All Users\Application Data\BackupAssist v5\temp\Rsync" on earlier versions of Windows.
If you have the Kaseya Agent installed on your machine, please see this Kaseya KB article for information on resolving the problem.