redhat - rsync: @ERROR: auth failed on module tomcat_backup -


i can't figure out what's going on rsync. i'm running rsync on rhel5, ip = xx.xx.xx.97. it's getting files rhel5, ip = xx.xx.xx.96.

here's log (which specified on rsync command line) shows on xx.97 (the 1 requesting files):

(local time) 2015/08/30 13:40:01 [17353] @error: auth failed on module tomcat_backup 2015/08/30 13:40:01 [17353] rsync error: error starting client-server protocol (code 5) @ main.c(1530) [receiver=3.0.6] 

here's log(which specified in rsyncd.conf file) shows on xx.96 (the 1 supplying files):

(utc time) 2015/08/30 07:40:01 [8836] name lookup failed xx.xx.xx.97: name or service not known 2015/08/30 07:40:01 [8836] connect unknown (xx.xx.xx.97) 2015/08/30 07:40:01 [8836] auth failed on module tomcat_backup unknown (xx.xx.xx.97): password mismatch 

here's actual rsync.sh command called xx.xx.xx.97 (the requester):

export rsync_password=rsyncclient rsync -havz --log-file=/usr/local/bin/rsync/test.log rsync://rsyncclient@xx.xx.xx.96/tomcat_backup/processsniffer/ /usr/local/bin/processsniffer 

here's rsyncd.conf on xx.xx.xx.97:

lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid [files]     name = tomcat_backup     path = /usr/local/bin/     comment = copy/backup of tomcat .96     uid = tomcat     gid = tomcat     read = no     list = yes     auth users = rsyncclient     secrets file = /etc/rsyncd.secrets     hosts allow = xx.xx.xx.96/255.255.255.0 

here's rsyncd.secrets on xx.xx.xx.97:

files:files 

here's rsyncd.conf on xx.xx.xx.96 (the supplier of files):

note: there 'cwrsync' (windows version of rsync) successfully calling files (xx.xx.xx.100)

note: yes, there possibility of xx.96 requesting files xx.97. however, not happening.

it's commented out of init.d mechanism.

lock file = /var/run/rsync.lock log file = /var/log/rsync.log pid file = /var/run/rsync.pid strict modes = false [files]         name = tomcat_backup         path = /usr/local/bin         comment = copy/backup of tomcat xx.97         uid = tomcat         gid = tomcat         read = no         list = yes         auth users = rsyncclient         secrets file = /etc/rsyncd.secrets         hosts allow = xx.xx.xx.97/255.255.255.0, xx.xx.xx.100/255.255.255.0 

here's rsyncd.secrets on xx.xx.xx.97:

files:files 

it else. had script calling rsync command, , causing problem. actual rsync command line ok. apologies.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -