I spent about 3 hours trying to get rsync up. I was getting the following errors:
[code:1:d7652e64ee]
rsync: failed to connect to localhost: Connection timed out
rsync error: error in socket IO (code 10) at clientserver.c(97)
[/code:1:d7652e64ee]
finally I figured it out: iptables 😆 so I added an entry in iptables which allowed access to the rsync port (873) from the needed locations and everythin went smooth.