Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help: Can't get rsync to work - Mandriva

Reply
Thread Tools Display Modes

Help: Can't get rsync to work - Mandriva

 
 
Michael Badt
Guest
Posts: n/a

 
      07-02-2005, 11:18 AM
Hi,
I have a desktop and a laptop, both running Mandriva LE 2005.
These 2 machines are networked (10.200.1.0 network) and can ping eath
other both ways.
I run the rsync daemon on the latop (IP 10.200.1.198).
When I try to run rsync from the desktop (IP 10.200.1.10) I get the
following error message:

Command:
rsync -v 10.200.1.198::ghost/ .

Output:
@ERROR: chroot failed
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

Running the above command, as root, with both firewalls disbaled resuled
in the same error.

THe latop's /etc/rsyncd.conf is as follows:

[ghost]
path /mnt/win_d
Comment Tal's laptop Ghost Images
hosts allow 10.200.1.10[root@localhost etc]#

Please advise !

TIA



 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      07-02-2005, 04:00 PM
Michael Badt <(E-Mail Removed)> writes:

>Hi,
>I have a desktop and a laptop, both running Mandriva LE 2005.
>These 2 machines are networked (10.200.1.0 network) and can ping eath
>other both ways.
>I run the rsync daemon on the latop (IP 10.200.1.198).
>When I try to run rsync from the desktop (IP 10.200.1.10) I get the
>following error message:


>Command:
> rsync -v 10.200.1.198::ghost/ .


>Output:
>@ERROR: chroot failed
>rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
>rsync error: error in rsync protocol data stream (code 12) at io.c(359)


>Running the above command, as root, with both firewalls disbaled resuled
>in the same error.


>THe latop's /etc/rsyncd.conf is as follows:


>[ghost]
> path /mnt/win_d
> Comment Tal's laptop Ghost Images
> hosts allow 10.200.1.10[root@localhost etc]#


I have no idea what the square brackets in this line are supposed to be
for. Why not try removing them. Also an equal sign is needed.

hosts allow=10.200.1.10

Finally look in the /var/log files to on the server to find out what
happened.


>Please advise !


>TIA




 
Reply With Quote
 
Tim Lingard
Guest
Posts: n/a

 
      07-02-2005, 06:13 PM
On Sat, 02 Jul 2005 14:18:56 +0300, Michael Badt wrote:

> Command:
> rsync -v 10.200.1.198::ghost/ .
>
> Output:
> @ERROR: chroot failed
> rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
> rsync error: error in rsync protocol data stream (code 12) at io.c(359)
>


Do you have a line like
"rsync stream tcp nowait root /usr/local/bin/rsync rsyncd
--daemon" in the laptop's inetd.conf?

Do you need to specify the uid and gid of the user to run as in rsyncd.conf?

"rsync -vv ..." increases verbosity.

hth

--tim
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      07-02-2005, 08:04 PM
Tim Lingard <usenet@lingard_demon_co_uk.NO.SPAM> writes:

>On Sat, 02 Jul 2005 14:18:56 +0300, Michael Badt wrote:


>> Command:
>> rsync -v 10.200.1.198::ghost/ .
>>
>> Output:
>> @ERROR: chroot failed
>> rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
>> rsync error: error in rsync protocol data stream (code 12) at io.c(359)
>>


>Do you have a line like
>"rsync stream tcp nowait root /usr/local/bin/rsync rsyncd
>--daemon" in the laptop's inetd.conf?


Most use xinetd, not inetd these days. There you need a file called
/etc/xinetd.d/rsync with contents like

service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}


>Do you need to specify the uid and gid of the user to run as in rsyncd.conf?


>"rsync -vv ..." increases verbosity.


>hth


>--tim

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      07-02-2005, 08:26 PM
In comp.os.linux.networking Unruh <unruh-(E-Mail Removed)>:
> Tim Lingard <usenet@lingard_demon_co_uk.NO.SPAM> writes:


>>On Sat, 02 Jul 2005 14:18:56 +0300, Michael Badt wrote:


>>> Command:
>>> rsync -v 10.200.1.198::ghost/ .
>>>
>>> Output:
>>> @ERROR: chroot failed
>>> rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
>>> rsync error: error in rsync protocol data stream (code 12) at io.c(359)
>>>


>>Do you have a line like
>>"rsync stream tcp nowait root /usr/local/bin/rsync rsyncd
>>--daemon" in the laptop's inetd.conf?


> Most use xinetd, not inetd these days. There you need a file called
> /etc/xinetd.d/rsync with contents like


I'd simply use 'rsync -e ssh ...', no need for a running rsync
daemon, you only need the rsync binary in place on the other
system.

Alternatively use unison (through ssh) it even has a nifty GUI.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 1: clock speed
 
Reply With Quote
 
Michael Badt
Guest
Posts: n/a

 
      07-07-2005, 02:30 PM
Thanks everybody for all your useful information

Michael Badt


Unruh wrote:

> I have no idea what the square brackets in this line are supposed to be
> for. Why not try removing them. Also an equal sign is needed.
>
> hosts allow=10.200.1.10
>
> Finally look in the /var/log files to on the server to find out what
> happened.


 
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
Re: Trouble with X11 over SSH on Mandriva 2010.0 Bit Twister Linux Networking 0 02-24-2010 05:56 PM
"nohup rsync ... >my.log &2>1" does not work Matthew Lincoln Linux Networking 0 05-18-2008 05:26 PM
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
Mandriva WiFi hell, please help RKS Linux Networking 0 08-25-2006 07:26 PM
Mandriva Linux Googlegroups fecano@gmail.com Linux Networking 4 11-28-2005 03:49 AM



1 2 3 4 5 6 7 8 9 10 11