I'm trying to set up an rsync daemon on my OS X machine to sync my remote subversion repositories. My config file /etc/rsyncd.conf looks like this: motd file = /etc/motd max connections = 25 syslog facility = local3 [repositories] comment = Subversion Repositories path = /usr/local/repositories read only = no list = yes hosts allow = 127.0.0.1 auth users = username secrets file = /etc/rsyncd.secrets However running "rsync username@localhost::repositories" I get: @ERROR: access denied to repositories from localhost (::1) rsync: connection unexpectedly closed (71 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(189) What am I missing here? Thanks, Ben
Hi, On Thu, 14 Jul 2005 ben-incomum@pendrell.textdrive.com wrote:> I'm trying to set up an rsync daemon on my OS X machine to sync my > remote subversion repositories. My config file /etc/rsyncd.conf looks > like this: > > motd file = /etc/motd > max connections = 25 > syslog facility = local3 > > [repositories] > comment = Subversion Repositories > path = /usr/local/repositories > read only = no > list = yes > hosts allow = 127.0.0.1 > auth users = username > secrets file = /etc/rsyncd.secrets > > However running "rsync username@localhost::repositories" I get: > > @ERROR: access denied to repositories from localhost (::1) > rsync: connection unexpectedly closed (71 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at io.c(189) > > What am I missing here?The username:password line in /etc/rsyncd.secrets? Or the export RSYNC_PASSWORD=... setting before invocing the rsync command? Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org)
No, the line is there: username:password in /etc/rsyncd.secrets.>The username:password line in /etc/rsyncd.secrets? >Or the > export RSYNC_PASSWORD=... >setting before invocing the rsync command?WTF?
On Thu, Jul 14, 2005 at 12:00:54AM +0000, ben-incomum@pendrell.textdrive.com wrote:> @ERROR: access denied to repositories from localhost (::1)Did you check the log file to see what the daemon had to say about the failure? Perhaps the permissions are wrong on your secrets file (which would cause rsync to ignore it and log that fact). ..wayne..
On Thu 14 Jul 2005, ben-incomum@pendrell.textdrive.com wrote:> > [repositories] > comment = Subversion Repositories > path = /usr/local/repositories > read only = no > list = yes > hosts allow = 127.0.0.1 > auth users = username > secrets file = /etc/rsyncd.secrets > > However running "rsync username@localhost::repositories" I get: > > @ERROR: access denied to repositories from localhost (::1)You allow an IPv4 address '127.0.0.1', however the connection appears to come from an IPv6 address '::1'. Maybe use ::1 instead of 127.0.0.1 in the hosts allow line? Paul Slootman