Operating System - HP-UX
1751975 Members
5045 Online
108784 Solutions
New Discussion

Re: Getting error while rsync copy :: rsync 2.60 : hp-ux 11.11 error:

 
rveri-admin
Frequent Advisor

Getting error while rsync copy :: rsync 2.60 : hp-ux 11.11 error:

Hi Experts,

 

I am trying to copy a file using the rsync , but getting error:  and the rsync copy not happening,

- Both the server having the user , & the same rsync present. 

This is inbuilt rsync: OS= hp-ux 11.11  June 2004.

 

 

#  swlist -l product | grep -i rsync
  STMrsync              2.6.0          STM rsync v2.6.0 p27

 

 

 

hpux0001# /opt/STMtools/STMrsync/bin/rsync -avz sysinfo user1100@10.11.15.20:/tmp/
The authenticity of host '10.11.15.20 (10.11.15.20)' can't be established.
DSA key fingerprint is ba:eb:c0:98:36:8a:52:94:02:5d:a7:64:55:a3:85:fb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.11.15.20' (DSA) to the list of known hosts.
user1100@10.11.15.20's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
sh: rsync:  not found.
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)
hpux0001#

 

 

 

Please advise, whats wrong,

 

Thanks,

 

3 REPLIES 3
Matti_Kurkela
Honored Contributor

Re: Getting error while rsync copy :: rsync 2.60 : hp-ux 11.11 error:

This error message comes from the remote host (10.11.15.20):

sh: rsync:  not found.

 

Either the remote system does not have the rsync utility installed, or it is not in the user's $PATH.

 

When rsync connects to the remote host, it performs a non-interactive login (= no pty assigned for the session), so some login scripts (including /etc/profile) may not be executed, depending on the shell configured to the remote user. As a result, the $PATH for the remote rsync session might include only /bin and /usr/bin, the defaults built into the sshd daemon.

 

If rsync is located in /opt/STMtools/STMrsync/bin/rsync, try making a symbolic for it in /usr/bin on the remote host:

10.11.15.20# ln -s /opt/STMtools/STMrsync/bin/rsync /usr/bin/rsync

You might want to do the same on hpux0001 too, to make rsync easier to use.

 

Then try again.

 

#  swlist -l product | grep -i rsync
  STMrsync              2.6.0          STM rsync v2.6.0 p27

 By the way, this looks like third-party rsync or an optional component (or a depot of useful sysadmin utilities, created in-house by the previous sysadmin). Rsync is definitely not included in HP-UX 11.11 base OE installation; I'm not sure about the higher OE variants.

 

MK
rveri-admin
Frequent Advisor

Re: Getting error while rsync copy :: rsync 2.60 : hp-ux 11.11 error:

Matti.

You are great , Thank you for the quick solution,  thanks seems it worked.

 

 

I installed the GNU rsync 3.0.9 , and made a link to /usr/bin/sh  , on both server side.


- Now seems it is working, except first line getting error message "No Xauth data" .. , not sure what it is.
- But the file copy done fine & correctly ..

 

 


# ls -l /usr/bin/rsync
lrwxr-xr-x   1 root       sys             20 Aug 28 17:19 /usr/bin/rsync -> /usr/local/bin/rsync
hpux0001:>

hpux0001:>rsync -avz sysinfo.tar r1100@10.11.15.20:/tmp/

user1100@eux901b's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
sending incremental file list
sysinfo.tar

sent 15734 bytes  received 31 bytes  4504.29 bytes/sec
total size is 61440  speedup is 3.90
hpux0001:>

 

 

Thank you,

Rveri-Admin

Matti_Kurkela
Honored Contributor

Re: Getting error while rsync copy :: rsync 2.60 : hp-ux 11.11 error:

The "no Xauth data" message comes from sshd. It tells you that your SSH client is configured to request X11 forwarding by default, but the SSH client either had no connection to an Xserver or the X server was not configured to use Xauth security.

 

Rsync does not need X11 forwarding at all. If you want to get rid of the message, either configure your SSH client to not request X11 forwarding by default, or specify custom ssh options to disable X11 forwarding with rsync, like this:

 

rsync -e "ssh -x" -avz sysinfo.tar r1100@10.11.15.20:/tmp/

 

(An Xserver is the process that obeys the X11 protocol and actually draws the GUI of X11 applications to the user's screen, and translates user's keyboard and mouse inputs to a hardware-independent format for transmitting to the X11 applications. On Windows workstations, software like Xming or Reflection/X are Xservers.)

 

If you don't have an Xserver running at the moment, the message is probably harmless. But if you have an Xserver running with no authentication (= in a permanent "xhost +" mode), then anyone who can make a TCP connection to your Xserver process can also snoop on your mouse and keyboard actions. When you use SSH with X11 forwarding, it handles the authentication data for you automatically, so you should never need to disable Xserver authentication.

MK