[LUNI] rsync HELP NEEDED.
Joe Digilio
jgd42-luni at yahoo.com
Sat Mar 12 12:57:37 CST 2005
Rsync is already running.
I don't know if it was started by the system or if it was started manually.
Either way...
As root, kill it (kill 17595).
Then start it up again (rsync --daemon).
But be advised that won't survive a reboot. You'll want to configure your inetd
daemon to handle that.
-Joe
--- Richard Reina <richard at rushlogistics.com> wrote:
> Joe, Thanks again for your response.
>
> /usr/sbin/lsof -i :873
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> rsync 17595 root 5uIPv4 122813 TCP *:rsync
> (LISTEN)
>
>
> rsync -vvv --stats --progress file1
> 192.168.0.14::test-data
>
> I get:
>
> local_version=24 remote_version=28
> make_file(3,TEST2)
> send_file_list done
> send_files starting
> send_files phase=1
> send files finished
> total: matches=0 tag_hits=0 false_alarms=0 data=0
>
> Number of files: 1
> Number of files transferred: 0
> Total file size: 9 bytes
> Total transferred file size: 0 bytes
> Literal data: 0 bytes
> Matched data: 0 bytes
> File list size: 24
> Total bytes written: 99
> Total bytes read: 41
>
> wrote 98 bytes read 41 bytes 278 bytes/sec
> total size is 9 speed is 0.06
>
> Not sure what all this means?
>
> --- Joe Digilio <jgd42-luni at yahoo.com> wrote:
>
> > Hmm, that is strange that rsync looks like it works.
> > try this instead
> > rsync -vvv --stats --progress file1
> > 192.168.0.14::test-data
> >
> > But looking at the log output, it seems that rsyncd
> > cannot bind to port 873.
> > Maybe rsyncd is already running? ("lsof -i :873"
> > will tell you what's listening
> > on port 873.)
> >
> >
> > -Joe
> >
> >
> > --- Richard Reina wrote:
> > > Joe,
> > >
> > > Thanks very much for the reply. I followed your
> > > advice and I'm getting closer.
> > >
> > > rsync -vv file1 192.168.0.14::test-data
> > > total: matches=0 tag_hits=0 data=0
> > > wrote 98 bytes read 41 bytes 278 bytes/sec
> > > total size is 9 speed is 0.06
> > >
> > > After seeing that I thought it had worked. Except
> > > file1 is not on 192.168.0.14.
> > >
> > > 192.168.0.14
> > > cat /var/log/rsync
> > >
> > > 2005/03/12 11:33:27 [18105] rsyncd version 2.6.2
> > > starting, listening on port 873
> > > 2005/03/12 11:33:27 [18105] rsync: open inbound
> > socket
> > > on port 873 failed: Address already in use
> > > 2005/03/12 11:33:27 [18105] rsync error: error in
> > > socket IO (code 10) at socket .c(456)
> > >
> > > Any idea what am I missing? Thanks again ofr your
> > > help thus far.
> > >
> > > R
> > >
> > > --- Joe Digilio <jgd42-luni at yahoo.com> wrote:
> > >
> > > > First, your rsyncd.conf file...
> > > > * remove the "syslog facility" line. You don't
> > need
> > > > it for testing and likely
> > > > don't have it set correctly anyways (unless
> > "yes" is
> > > > a facility in your
> > > > syslog.conf file)
> > > >
> > > > * add a line for logging similar to this in the
> > > > global section (ie, not in a
> > > > module)
> > > > log file = /var/log/rsync
> > > >
> > > > * Most of those options should be in the global
> > > > section. Your rsyncd.conf
> > > > should look similar to this:
> > > >
> > > > ### BEGIN rsyncd.conf ###
> > > > pid file = /var/run/rsyncd.pid
> > > > motd = /etc/rsyncd/motd
> > > > log file = /var/log/rsync
> > > >
> > > > [test-data]
> > > > path = /home/richard
> > > > max connections = 10
> > > > read only = no
> > > > ### END rsyncd.conf ###
> > > >
> > > >
> > > > Next, because you have the "path" option set in
> > > > rsyncd.conf, you don't need
> > > > /home/richard when you run rsync. I should be
> > > > something like this:
> > > >
> > > > rsync file1
> > 192.168.0.14::test-data/home/richard
> > >
> > > >
> > > > I added the verbose options so you can see more
> > of
> > > > what's going on.
> > > >
> > > > If it still doesn't work, check the log file
> > > > (/var/log/rsync) on 192.168.0.14.
> > > > Also, what version are you using? 2.6.3 has
> > better
> > > > error handling functionality
> > > > than previous versions.
> > > >
> > > > HTH.
> > > >
> > > > -Joe
> > > >
> > > >
> > > > --- Richard Reina wrote:
> > > > > I am trying to copy a file with rsync.
> > > > >
> > > > > the remote machine's /etc/rsyncd.conf
> > > > >
> > > > > [test-data]
> > > > > path = /home/richard
> > > > > motd = /etc/rsyncd/motd
> > > > > max connections = 10
> > > > > read only = no
> > > > > syslog facility = yes
> > > > > pid file = /var/run/rsyncd.pid
> > > > >
> > > > > I have started rsyncd with the command:
> > > > > rsync --daemon
> > > > >
> > > > > When I try:
> > > > >
> > > > > rsync file1
> > 192.168.0.14::test-data/home/richard
> > > > >
> > > > > I get:
> > > > >
> > > > > unexpected EOF in read_timeout
> > > > >
> > > > > If I try:
> > > > >
> > > > > rsync file1 192.168.0.14::test-data
> > /home/richard
> > > > >
> > > > > I get:
> > > > >
> > > > > link_stat 192.168.0.14::test-data : No such
> > file
> > > > or
> > > > > directory
> > > > >
> > > > > If nayone can help me I would be greatly
> > > > > apprecieative.
> > > > >
> > > > > Thanks
> > > > >
> > > > > R
> > > > >
> > > > > --
> > > > > Linux Users Of Northern Illinois - Technical
> > > > Discussion
> > > > > http://luni.org/mailman/listinfo/luni
> > > > >
> > > >
> > > > "An eye for an eye soon makes the whole world
> > > > blind."
> > > > --Mahatma Gandhi
> > > > --
> > > > Linux Users Of Northern Illinois - Technical
> > > > Discussion
> > > > http://luni.org/mailman/listinfo/luni
> > > >
> > >
> > > --
> > > Linux Users Of Northern Illinois - Technical
> > Discussion
> > > http://luni.org/mailman/listinfo/luni
> > >
> >
> > "An eye for an eye soon makes the whole world
> > blind."
> > --Mahatma Gandhi
> > --
> > Linux Users Of Northern Illinois - Technical
> > Discussion
> > http://luni.org/mailman/listinfo/luni
> >
>
> --
> Linux Users Of Northern Illinois - Technical Discussion
> http://luni.org/mailman/listinfo/luni
>
"An eye for an eye soon makes the whole world blind."
--Mahatma Gandhi
More information about the luni
mailing list