- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Getting error while rsync copy :: rsync 2.60...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2012 03:22 PM
08-28-2012 03:22 PM
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,
- Tags:
- rsync
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2012 03:46 PM
08-28-2012 03:46 PM
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.
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2012 04:33 PM
08-28-2012 04:33 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2012 12:01 AM
08-29-2012 12:01 AM
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.
- Tags:
- ssh