Hello! I've a rsync server on debian 6 (v3.0.7-2). this linux command executed from other linux clients runs perfectly:
rsync --password-file=/usr/home/user/.rsync.pass --log-file=/var/log/docs.log -avvvr email@example.com::docs /usr/home/user/docs
same line executed from FreeBSD 9.2-RELEASE (rsync rsync-3.1.0_1) show this:
opening tcp connection to 10.10.10.8 port 873
Connected to 10.10.10.8 (10.10.10.8)
rsync: safe_read failed to read 1 bytes [Receiver]: Connection reset by peer (54)
rsync error: error in rsync protocol data stream (code 12) at io.c(251) [Receiver=3.1.0]
[Receiver] _exit_cleanup(code=12, file=io.c, line=251): about to call exit(12)
on rsync server I don't see any error log and wasted many many hours to check this problem
On rsync 220.127.116.11 (debian 7) no problems.
The "Connection reset by peer" error is just telling you that the remote side went away. Since it is a daemon, you'll need to find out why the daemon side is exiting. If the daemon log doesn't have any info, you may be able to run something like "strace -f -o /tmp/output -p $DAEMON_PID" and see if that tells you what is going wrong.