1819791 Members
3103 Online
109607 Solutions
New Discussion

Configuration of rsync

 
SOLVED
Go to solution
catastro
Super Advisor

Configuration of rsync

Hi to all.
I have installed rsync 2.6.9 and it´dependencies in several servers for using it instead of rpc.
I have been able to copy things with the command through the same server from one point to another, but I am not able to make it run from one server to another (where both servers have the rsync installed).
The system tells me this error:

desar:/usr/local/bin# rsync -av explo::'modname/root/carlos' /home

rsync: failed to connect to explo: Connection refused (239)

rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]
6 REPLIES 6
Matti_Kurkela
Honored Contributor
Solution

Re: Configuration of rsync

The actual error is "failed to connect to explo: Connection refused".

A double colon... you're trying to use rsync in server mode. You rsync command on desar is trying to reach a rsync server in explo's TCP port 873, but the connection is being refused. Either the rsync server is not running, or a firewall or IP filter is rejecting the connection.

Any firewalls between desar and explo must allow traffic to explo's TCP port 873. In addition, you must either have the rsync service configured to /etc/services and /etc/inetd.conf on explo, or have "rsync --daemon" process running on explo.

This is not done automatically, because this is an "optional" configuration: you can also use rsync over rsh or ssh connections without configuring any extra services.

MK
MK
catastro
Super Advisor

Re: Configuration of rsync

Thanks Matti.
I have a firewall as you say, but it allows all traffic for explo, so I tried to copy some files from explo to desar, and started the daemons in the two servers manually (I think with rsync --daemon) and tried to do it, but it didn´t run. The same error appears.
I have been searching the syslog.log and these lines appears just when I try to run the command. I think the daemon are not running in any server or something like that.
I have the manuals from the authors of rsync and I don´t find anything on how to start the daemon. Could you tell me how?
And as well, how to make it to start automatically with the boot of the system?

Apr 13 12:34:08 explo rsyncd[18233]: rsync: unable to open configuration file "/
etc/rsyncd.conf": No such file or directory (2)
Apr 13 12:34:08 explo rsyncd[18233]: rsync error: syntax or usage error (code 1)
at clientserver.c(837) [receiver=2.6.9]
Steven E. Protter
Exalted Contributor

Re: Configuration of rsync

Shalom,

Where did rsync come from depot or compile.

Seems like there is a network problem and rsync itself is not completely right.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
catastro
Super Advisor

Re: Configuration of rsync

The rsync comes from a depot I downloaded from the authors web page.
In the other hand, I am not able to make the daemon to be running, as the command rsync --daemon seems not to work properly and that may be the reason why this software does not work. All the ports and the traffic in my firewall is allowed.
lawrenzo_1
Super Advisor

Re: Configuration of rsync

Hi,

have you configured .rhosts?

I have found the below doc that may help you:

http://h21007.www2.hp.com/dspp/files/unprotected/hpux/ipf_backup-final2_9-04.pdf
hello
catastro
Super Advisor

Re: Configuration of rsync

Thanks to all for your help.