first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Windows Server 2008: “Rsync error ‘socket operation on non-socket’”; cwRsync; Windows Data Execution Prevention (DEP)

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:

  1. Windows Data Execution Prevention (DEP) preventing rsync from running.
  2. 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: rsync.exe, ssh.exe and 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.

[http://www.backupassist.com/blog/support/ rsync-error-socket-operation-on-non-socket/]

mod date: 2009-09-24T03:36:17.000Z