URGENT--HPUX rsync errors -- HELP???

Posted on 2006-04-04
Last Modified: 2013-12-06
I am running HPUX 11i V1 and have installed rsync.  I need to sync two servers (Server1 and Server2) via ssh.  ssh works correctly between servers.

Command lines and results have been sanitized :-)

ssh version:

# ssh -V
OpenSSH_4.1, OpenSSL 0.9.7e 25 Oct 2004
HP-UX Secure Shell-A.04.00.000, HP-UX Secure Shell version

Server1 (source)

Server1 is runnng rsync --daemon.

# ps -ef | grep rsync
    root 26265 22887  2 09:16:55 pts/1     0:00 grep rsync
    root 24292     1  0 08:28:03 ?         0:00 /usr/local/bin/rsync --daemon

The rsyncd.conf file is as follows:  

# cat /etc/rsyncd.conf
              path = /home/users/myhome01
              comment = My Home Directory
Server2 (destination)

Server2 is running the following command:

/usr/local/bin/rsync -e ssh server1:myhome01 /home/users/myhome01

When I run the command on Server2 as root I get the following.

1. Prompts for a password (ssh??).
2. Errors with the following messages:

# /usr/local/bin/rsync -e ssh Server1:myhome01 /home/users/myhome01
sh: rsync:  not found.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)

I re-ran the command with the "v" option to see what was happening.

# /usr/local/bin/rsync -ev ssh Server1:myhome01 /home/users/myhome01
rsync: link_stat "/ssh" failed: No such file or directory (2)
rsync: link_stat "/Server1:myhome01" failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at main.c(789)

I need to get this running asap.


Question by:Craig Sharp
    LVL 51

    Accepted Solution

    > sh: rsync:  not found.
    I guess you need the  --rsync-path=PATH  option, see man rsync
    LVL 61

    Expert Comment

    log into that system using ssh
     rsync --version

    what do you get?
    LVL 3

    Author Comment

    by:Craig Sharp
    That did it.  the once I put in the path, it took off and copied as expected...Thanks for the replies!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now