rsync: connection unexpectedly closed (88 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(139) I'm getting the above error when trying to use rsync over port 873. The command I'm using is : rsync -avz root@sundog::test ./ the /etc/rsyncd.conf contains the following auth users = root uid = root gid = staff [test] path = /export/home/mrl315 Any suggestions would be appreciated - I've been trying to get this working off and on for about 2 weeks now. Regards, Mike Lefebvre
MICHAEL R. LEFEBVRE schrieb am Fri, Feb 01, 2002 at 09:01:07AM -0500:> rsync: connection unexpectedly closed (88 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at > io.c(139) > > I'm getting the above error when trying to use rsync over port 873. > The command I'm using is : > rsync -avz root@sundog::test ./ > the /etc/rsyncd.conf contains the following > > auth users = root > uid = root > gid = staff > > [test] > path = /export/home/mrl315 > > Any suggestions would be appreciated - I've been trying to get this > working off and on for about 2 weeks now.Server side: - Where is your secrets file? - Does it contain a "root:<somepassword>" line? - Does it have the right permissions? Client side: - Did you supply the correct RSYNC_PASSWORD environment prior issuing any rsync commands? General: - Which OS do you use? - Which rsync version do you use? Regards, - Birger
You need a "secrets file" as rsyncd.conf.5 says: auth users The "auth users" option specifies a comma and space separated list of usernames that will be allowed to connect to this module. The usernames do not need to exist on the local system. The usernames may also contain shell wildcard characters. If "auth users" is set then the client will be challenged to supply a username and password to connect to the module. A challenge response authentication proto- col is used for this exchange. The plain text user- names are passwords are stored in the file speci- fied by the "secrets file" option. The default is for all users to be able to connect without a pass- word (this is called "anonymous rsync"). - Dave Dykstra On Fri, Feb 01, 2002 at 09:01:07AM -0500, MICHAEL R. LEFEBVRE wrote:> rsync: connection unexpectedly closed (88 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at > io.c(139) > > I'm getting the above error when trying to use rsync over port 873. > The command I'm using is : > rsync -avz root@sundog::test ./ > the /etc/rsyncd.conf contains the following > > auth users = root > uid = root > gid = staff > > [test] > path = /export/home/mrl315 > > Any suggestions would be appreciated - I've been trying to get this > working off and on for about 2 weeks now. > > Regards, > > Mike Lefebvre
I must be missing something, but not sure what. I've configured the rsyncd.conf and rsyncd.secrets files per the examples I've seen and my authentication fails everytime. Any ideas on where I should start looking? @ERROR: auth failed on module test rsync: connection unexpectedly closed (88 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(151) - - - - - rsyncd.conf [test] path = /test comment = test directory auth users = simpson secrets file = /etc/rsyncd.secrets - - - - - rsyncd.secrets simpson:dog - - - - - Thanks