Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Rsync an rcp error

HP-UX


Tags
solved

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 14 February 2018, 5:02 AM EST
Posts: 105
Thanks: 4
Thanked 0 Times in 0 Posts
Rsync an rcp error

Hi,

I have installed rsync (together with its dependencies) in both source and destination HPUX servers (V 11.31). However when I attempt to copy files over (as user root) I get this error :



Code:
# rsync -avz ./* root@10.97.131.4:/tmp/copy
Password:
sh: rsync:  not found.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]
#

How do I resolve this problem?

I also tried rcp (As it is mentioned in the HPUX depot page that rsync is a replacement for rcp). I get this error :



Code:
# rcp -p ./* root@10.97.131.4:/tmp/copy
rcmd_af: connect: 10.97.131.4: Connection refused

However, I can ping 10.97.131.4.

I add the ".rhosts" file in the destination, and the entry in this file is :



Code:
# cat .rhosts
+

I am still not able to transfer the files. What am I doing wrong and how do I resolve the problem?
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago   -   Original Discussion by anaigini45
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 20 February 2018, 4:06 AM EST
Location: Devon, UK
Posts: 1,779
Thanks: 260
Thanked 465 Times in 397 Posts
Quote:
sh: rsync: not found.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]
rsync is not properly installed on the remote node. "remote command not found" means it cannot invoke rsync on the remote system.
Sponsored Links
    #3  
Old Unix and Linux 6 Days Ago   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 14 February 2018, 5:02 AM EST
Posts: 105
Thanks: 4
Thanked 0 Times in 0 Posts
But I have installed the rsync packages and also its dependencies.
How come it is not properly installed? How do I verify this?

When I do an swlist, I can see all the packages needed :

HTML Code:
gettext                               0.19.8.1       gettext
libiconv                              1.15           libiconv
libunistring                          0.9.7          libunistring
popt                                  1.16           popt
rsync                                 3.1.2          rsync
And when I do a

Code:
#whereis rsync

, I can see the path to it :



Code:
/usr/local/bin/rsync

Moderator's Comments:
Rsync an rcp error Please use CODE tags as required by forum rules!

Last edited by RudiC; 5 Days Ago at 09:39 AM.. Reason: Added CODE tags.
    #4  
Old Unix and Linux 6 Days Ago   -   Original Discussion by anaigini45
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 20 February 2018, 4:06 AM EST
Location: Devon, UK
Posts: 1,779
Thanks: 260
Thanked 465 Times in 397 Posts
Your local system needs to be able to launch rsync on the remote system when it needs to and that isn't working.
Sponsored Links
    #5  
Old Unix and Linux 5 Days Ago   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 14 February 2018, 5:02 AM EST
Posts: 105
Thanks: 4
Thanked 0 Times in 0 Posts
I resolved the problem by linking /usr/local/bin/rsync to /usr/bin/rsync.
Sponsored Links
    #6  
Old Unix and Linux 5 Days Ago   -   Original Discussion by anaigini45
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 20 February 2018, 12:02 AM EST
Posts: 1,130
Thanks: 32
Thanked 336 Times in 290 Posts
Addition of the following switch (with existing of course) should solve your problem :


Code:
--rsync-path=/usr/local/bin/rsync

Without linkage on HPUX systems.

Regards
Peasant.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rsync Error: rsync: link_stat failed: No such file or directory (2) mohtashims Shell Programming and Scripting 2 1 Week Ago 10:21 AM
Rcp error while transferring files Portabello AIX 5 01-22-2014 03:22 PM
Error while doing rcp to localhost coolket UNIX for Dummies Questions & Answers 2 07-14-2009 03:48 PM
rcp error trapping in rsh vvejendla Shell Programming and Scripting 2 11-21-2005 11:29 PM
rcp error divid_gil UNIX for Advanced & Expert Users 8 07-02-2004 02:28 PM



All times are GMT -4. The time now is 05:53 AM.