Usually I use the command
rsync -av --delete someroot/somedir user@remote_server_ip:/someroot/.
on my development server to synchronize somedir to a remote server. It worked fine. But after the remote server was restarted this command does not work anymore. It displays the following error messages:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
But the SSH service still works correctly. I can use ssh user@server_ipaddress to log in to the server. How can I make the rsync work again?
update:
rsync also doesn't work locally. it gives error as follows:
[root@videochatweb1 web]# ./sync_client.sh
building file list ... rsync: link_stat "/opt/web/client/index.php" failed: Permission denied (13)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at main.c(892) [sender=2.6.8]
update 2
I compiled the source code of rsync and reinstall it on the server.Now it works.Thanks for all the suggestions.

rsyncon the remote system? – Ignacio Vazquez-Abrams Apr 11 at 2:51rsync: Failed to exec ssh: Permission denied (13) rsync error: error in IPC code (code 14) at pipe.c(83) [sender=2.6.8] rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32) rsync error: error in IPC code (code 14) at io.c(1119) [sender=2.6.8]– SpawnST Apr 11 at 2:54rsyncalone? – SpawnST Apr 11 at 2:56