Tim.Clashin@calcucare.com
2005-Aug-25 21:12 UTC
unable to open configuration file rsyncd.conf
Hello, Rsync is working great for me right now, using version 2.6.5 on two Solaris 9 V100 servers. Box A is the source and box B is the destination, and also box B is my rsync server box. Box A is a rsync client. Yesterdar from Box B I pulled 250 meg just fine from box A with rsync. Today from the client I want to just copy over to the server what files have changed today. So my command from the client is the following: /usr/local/bin/rsync --partial --progress --stats -az -e "ssh -p 22" /"directory on the client" USER@boxA::modulename I do get a connection to Box B but after I enter the user's password thru ssh, I get the following the client: rsync: connection unexpectedly closed (0 bytes received so far) [sender] _exit_cleanup(code=12, file=io.c, line=434): entered rsync error: error in rsync protocol data stream (code 12) at io.c(434) _exit_cleanup(code=12, file=io.c, line=434): about to call exit(12) this is what is produced on the server /var/adm/messages: rsyncd[19422]: [ID 702911 daemon.warning] rsync: rsync: unable to open configuration file "rsyncd.conf": No such file or directory (2) rsyncd[19422]: [ID 702911 daemon.warning] rsync error: syntax or usage error (code 1) at clientserver.c(512) rsyncd[19436]: [ID 702911 daemon.warning] rsync: rsync: unable to open configuration file "rsyncd.conf": No such file or directory (2) rsyncd[19436]: [ID 702911 daemon.warning] rsync error: syntax or usage error (code 1) at clientserver.c(512) On the server I am running rsync in daemon mode by using this command, /usr/local/bin/rsync --deamon --config /etc/rsyncd.conf, and the daemon is running, but the client is still get the unable to find /etc/rsyncd.conf. Here is my rsyncd.conf file on the Box B. transfer logging = true log format = %h %o %f %l %b log file = /var/log/rsyncd.log pid file = /var/run/rsync.pid uid = nobody gid = nobody use chroot = no max connections = 28 address = 10.210.4.64 [es0028] path = /pc1/snapshot/hourly.0/infermos/ comment = es0028 backup Any assistance would be greatful, and thanks in advance. Tim -------------- next part -------------- HTML attachment scrubbed and removed
On Thu 25 Aug 2005, Tim.Clashin@calcucare.com wrote:> Today from the client I want to just copy over to the server what files > have changed today. > > So my command from the client is the following: > > /usr/local/bin/rsync --partial --progress --stats -az -e "ssh -p 22" > /"directory on the client" USER@boxA::modulename > > I do get a connection to Box B but after I enter the user's password thru > ssh, I get the following the client:[...]> this is what is produced on the server /var/adm/messages: > rsyncd[19422]: [ID 702911 daemon.warning] rsync: rsync: unable to open > configuration file "rsyncd.conf": No such file or directory (2) > rsyncd[19422]: [ID 702911 daemon.warning] rsync error: syntax or usage > error (code 1) at clientserver.c(512) > rsyncd[19436]: [ID 702911 daemon.warning] rsync: rsync: unable to open > configuration file "rsyncd.conf": No such file or directory (2) > rsyncd[19436]: [ID 702911 daemon.warning] rsync error: syntax or usage > error (code 1) at clientserver.c(512) > > On the server I am running rsync in daemon mode by using this command, > > /usr/local/bin/rsync --deamon --config /etc/rsyncd.conf, and the daemon is > running, but the client is still get the unable to find /etc/rsyncd.conf.If you supply -e ssh ... as parameters to rsync in combination with the :: syntax, ssh is used to start a new rsync in daemon mode. If you're not doing that as root, the default location for the config file is rsyncd.conf in the current directory (typically $HOME). Hence it can't find rsyncd.conf in ~USER/. This isn't stated that clearly in the manpage, this might be mentioned in the CONNECTING TO AN RSYNC SERVER OVER A REMOTE SHELL PROGRAM section... the distinction between that section and the RUNNING AN RSYNC SERVER OVER A REMOTE SHELL PROGRAM section is a bit vague as well. Paul Slootman