I’m glad to hear that you were able to figure the original issue out at least. I believe this could be due to the version of rsync that you’re using. 3.0.4 was released back in 2008 and the newest stable version is 3.1.2 which was released in Dec. 2015.
From searching that error, I was only able to find old posts of older versions having it so this may be the reason for it.