Another Rsync problem

Posted by: Neutrino

Another Rsync problem - 19/10/2002 15:50

I thought I had followed the instructions to the letter but I must be missing something. I have loaded hostname and used it by typing "hostname honda". When I just type hostname it returns "honda" so I figure this is OK. I created a /etc/hosts file containing the following:

127.0.0.1 localhost
192.168.0.8 honda (none)

yet everytime i try and start rsync as a daemon "rsync --daemon" it fails and i receive in the log file the "gethostbyname: "Unknown host"" error message.

I have tried this with and without using hostname. I have also tried it with the second line of the host file containing:

192.168.0.8 honda honda.mydomain.com

with the same results. Any suggestions??

Thanks
Posted by: pgrzelak

Re: Another Rsync problem - 20/10/2002 06:01

Greetings!

Question: Did you edit this on a PC and upload as binary? Maybe you have a control-M on the end, and it is confusing the player?
Posted by: Neutrino

Re: Another Rsync problem - 20/10/2002 09:28

Thank You for the response. I actually made it with "Elvis" on the player. My hostname is honda, when I try and run rsync I get the message:

2002/10/20 16:16:02 [132] rsyncd version 2.3.2 starting
2002/10/20 16:16:02 [132] gethostbyname: Unknown host honda
2002/10/20 16:16:02 [132] transfer interrupted (code 10) at socket.c(227)

I have set my hostname to honda and in the /etc/hosts file is:

127.0.0.1 localhost
192.168.0.8 honda honda.honda.com

any help would be appreciated, thank you

Posted by: pim

Re: Another Rsync problem - 20/10/2002 11:41

yet everytime i try and start rsync as a daemon "rsync --daemon"

You're trying to run rsync as a server on the player, and as a client on your host PC. Altough this could very well work, it is much easier to do it the other way round. You don't need to set up any configuration file to let rsync work as a client on the player. If you want to upload to your player using rsync, you would need to manually remount your drives anyway, so there's not much use in having rsync running permanently on your player.

Also make sure you are running the latest rsync, available for the ARM platform here.

Pim
Posted by: Neutrino

Re: Another Rsync problem - 20/10/2002 11:56

Thank You PIM, what I am trying to do is copy from one Empeg to another as per Rogers write-up on using Rsync. I think my problem might arise from not having a good understanding of naming conventions. I did use the "minimal" file that was listed on Rogers web site, maybe this is the problem. It contained only the rsync binary file. Could there be other files specific to rsync that need to be installed? I have installed hostname and it seems to be running fine. Anyway, any help would be appreciated.
Posted by: Roger

Re: Another Rsync problem - 20/10/2002 13:04

I suspect that you've not got the resolver configured correctly.

Grab a copy of base.tar.gz from http://www.differentpla.net/~roger/empeg/car/files/

Store it in /drive0, and untar it into the root directory.

It contains absolutely everything you need to get it going. Don't forget to edit /etc/resolv.conf as well as /etc/hosts
Posted by: Neutrino

Re: Another Rsync problem - 20/10/2002 17:09

Thanks Roger, That did the trick! It works now.

A word of caution for anyone who wishes to use this tar file. It contains three files:

/bin/rom, /bin/rwm, /etc/fstab.

These files are for a dual drive empeg and will cause you grief. You might want to remove them from the tar before tarring this file on your empeg as they will overwrite your existing files.