Networking Forums

Networking Forums > Computer Networking > Linux Networking > Continuation of "Arrrgh! rsync "chroot failed" error message!"

Reply
Thread Tools Display Modes

Continuation of "Arrrgh! rsync "chroot failed" error message!"

 
 
kenney@lucent.com
Guest
Posts: n/a

 
      08-08-2006, 10:31 PM
I find myself in the same situation of the author of the thread
entitled "Arrrgh! rsync "chroot failed" error message!" See
http://tinyurl.com/o9kog or
http://groups.google.ca/group/comp.o...b8512e8f6c233a
..

I am trying to use rsync to synchronize some files between two systems.
I'm planning on doing this rather frequently, so it's my understanding
that I should use the rsync daemon mode, and using ssh is basically a
requirement as well.

My most recent successful step was to link the /etc/rsyncd.conf file to
$HOME for my remote user, and I'm now getting this error:

$ rsync --rsh="ssh" -av --delete test.txt
remoteHost::ModuleName/my/path

@ERROR: chroot failed
rsync error: error starting client-server protocol (code 5) at
main.c(1296) [sender=2.6.8]

Basically, what I want to know is this: In the thread above, the
response was basically, "If you want to use ssh, then don't use the
rsync daemon." That seems to be a common response on the web. Is it
true? Is there a sensible way to use both ssh and the rsync daemon?

As a related question, what is the additional overhead for NOT running
rsync in daemon mode?

Thanks.

 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      08-09-2006, 10:30 AM
(E-Mail Removed) <(E-Mail Removed)> wrote:
> I am trying to use rsync to synchronize some files between two systems.
> I'm planning on doing this rather frequently, so it's my understanding
> that I should use the rsync daemon mode, and using ssh is basically a
> requirement as well.


You probably don't want daemon mode at all. In fact, unless you know
why you need it, disable it. I've never needed daemon mode, and I use
rsync between many groups of machines.


> My most recent successful step was to link the /etc/rsyncd.conf file to
> $HOME for my remote user, and I'm now getting this error:


> $ rsync --rsh="ssh" -av --delete test.txt
> remoteHost::ModuleName/my/path


I'd recomment this instead:

rsync -avP --rsh="ssh" --delete test.txt rhost:{optional_remote_path}


> Basically, what I want to know is this: [I've read that] "If you want
> to use ssh, then don't use the rsync daemon." That seems to be a common
> response on the web. Is it true?


Yes. A daemon would typically be used to control access to an rsync tree
in situations where the client does not have a login on the server.
(Think public repository.) If you do have login access to the server
it's generally far easier to use ssh/rsh and treat rsync like scp/rcp.


> Is there a sensible way to use both ssh and the rsync daemon?


Yes, but you really ought to think about the reasons for wanting both.


> As a related question, what is the additional overhead for NOT running
> rsync in daemon mode?


The rsync client has to log in to the remote system (using ssh/rsh). But
then, the rsync daemon would have to authenticate inbound connections
anyway, so perhaps it's not a significant overhead.

Chris
 
Reply With Quote
 
kenney@lucent.com
Guest
Posts: n/a

 
      08-09-2006, 02:05 PM
Thanks for the response!

Chris Davies wrote:
> > Is there a sensible way to use both ssh and the rsync daemon?

>
> Yes, but you really ought to think about the reasons for wanting both.


My reason was mainly because I thought that it would use less
resources. We're developing an Active/Standby system, and the design
decision was made that the Active system (which is also doing other
processing, of course) will push changes and sync requests to the
Standby system.

> The rsync client has to log in to the remote system (using ssh/rsh). But
> then, the rsync daemon would have to authenticate inbound connections
> anyway, so perhaps it's not a significant overhead.


Minimizing overhead on the Active system is the goal, but at this point
I don't have any data on which to base a decision. If there's not a
big difference, not using the rsync daemon certainly appears to be
easier.

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      08-10-2006, 08:35 AM
(E-Mail Removed) <(E-Mail Removed)> wrote:
> We're developing an Active/Standby system, and the design
> decision was made that the Active system (which is also doing other
> processing, of course) will push changes and sync requests to the
> Standby system.


You've seen the High Availability site, http://www.linux-ha.org/?
Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arrrgh! rsync "chroot failed" error message! Vinny Linux Networking 3 03-08-2006 03:15 PM
[Fwd: SPEWS DOLTS "SneakyP", "Kevin!:?)", "WindsorFox" SPAM braodbandnewsgroup] !:?) Broadband 0 11-30-2005 01:04 AM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM



1 2 3 4 5 6 7 8 9 10 11