Solved

Trouble when trying to run rsync in AIX

Posted on 2014-01-02
6
3,784 Views
Last Modified: 2014-01-03
Hi,

I am trying to run rsync on an AIX Server, but I keep getting the following error messages.
I've tried to include helpful information below.

Thank you.

exec(): 0509-036 Cannot load program rsync because of the following errors:
        0509-022 Cannot load module /usr/lib/libpopt.a(libpopt.so.0).
        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
        0509-152   Member libiconv.so.2 is not found in archive
        0509-022 Cannot load module rsync.
        0509-150   Dependent module /usr/lib/libpopt.a(libpopt.so.0) could not be loaded.
        0509-022 Cannot load module .
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]

# rsync ?
rsync: link_stat "/stest/backup/?" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]

# cd /stest/backup
# ls
friday               sunday              
monday           system_files.tar.gz  wednesday
saturday          thursday
statistics         tuesday

VERSIONS And Info:

AIX version 6100-07-01-1141
rsync version 3.0.9-1

Fileset                      Level  State  Type  Description (Uninstaller)
----------------------------------------------------------------------------
rsync                      3.0.9-1    C     R    A program for synchronizing
                                                   files over a network.
                                                   (/bin/rpm)
lslpp -L libiconv*
Fileset                      Level  State  Type  Description (Uninstaller)
--------------------------------------------------------------------------
libiconv                    1.14-2    C     R    Character set conversion
                                                 library, portable iconv
                                                 implementation (/bin/rpm)
lslpp -L popt*
Fileset                      Level  State  Type  Description (Uninstaller)
----------------------------------------------------------------------------
popt                        1.16-1    C     R        C library for parsing command
                                                              line parameters (/bin/rpm)
popt-devel                  1.16-1    C     R    Development files for the popt        
                                                              library (/bin/rpm)
0
Comment
Question by:OffsiteTech
  • 3
  • 2
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi,

did you get all the mentioned packages (rsync, libiconv, popt) from the same source (probably BULL)?

If so it's indeed a bit strange that rsync would search its shared libraries in /usr/lib, because it should have been linked with the proper path /opt/freeware/lib.

What do you get with "ldd $(which rsync)" and "ls -l /usr/lib/libiconv* /usr/lib/libpopt*" ?

Creating links for libpopt in /usr/lib would be fairly easy, but a link for libiconv would conflict with IBM's own implementation which already resides in /usr/lib.

wmp
0
 
LVL 25

Expert Comment

by:madunix
Comment Utility
Try
lppchk with c/v/f
To verify that all filesets have all required requisites and are completely installed.
https://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds3%2Flppchk.htm
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
lppchk does not operate on packages of type "R" (= RPM)
0
Google Storage: Standard vs. Nearline vs. Coldline

Google Cloud Storage has a number of classes to choose from. Although there are a lot in common, they vary in price and usage terms. This post explains Google Cloud Storage classes and helps to understand which  one to choose.

 

Author Comment

by:OffsiteTech
Comment Utility
Hi,

Hope this is what you were asking for...the packages were pulled from a different server, but I think they originated at Perzl.

# find . -name "rsync*" -print
./opt/freeware/bin/rsync
./opt/freeware/doc/rsync-3.0.9
./opt/freeware/man/man1/rsync.1
./opt/freeware/man/man5/rsyncd.conf.5
./sys.images/rsync-3.0.9-1.aix6.1.ppc.rpm
./usr/bin/rsync
./usr/opt/perl5/lib/site_perl/5.8.8/URI/rsync.pm
./usr/opt/perl5/lib64/site_perl/5.8.8/URI/rsync.pm
#
#
# ldd /usr/bin/rsync
/usr/bin/rsync needs:
         /usr/lib/libc.a(shr.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/libiconv.a(shr4.o)
         /usr/lib/libpopt.a(libpopt.so.0)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /usr/lib/libintl.a(libintl.so.1)
         /usr/lib/libc.a(shr_64.o)
         /usr/lib/libiconv.a(shr4_64.o)
         /usr/lib/libcrypt.a(shr_64.o)
#
#
# ldd /opt/freeware/bin/rsync
/opt/freeware/bin/rsync needs:
         /usr/lib/libc.a(shr.o)
         /usr/lib/libpthreads.a(shr_xpg5.o)
         /usr/lib/libiconv.a(shr4.o)
         /usr/lib/libpopt.a(libpopt.so.0)
         /unix
         /usr/lib/libcrypt.a(shr.o)
         /usr/lib/libpthreads.a(shr_comm.o)
         /usr/lib/libintl.a(libintl.so.1)
         /usr/lib/libc.a(shr_64.o)
         /usr/lib/libiconv.a(shr4_64.o)
         /usr/lib/libcrypt.a(shr_64.o)

#
# ls -l /usr/lib/libiconv*
lrwxrwxrwx    1 root     system           28 Dec 01 13:50 /usr/lib/libiconv.a ->
 /opt/freeware/lib/libiconv.a
#
# ls -l /usr/lib/libpopt*
lrwxrwxrwx    1 root     system           32 Nov 28 12:42 /usr/lib/libpopt.a ->
../../opt/freeware/lib/libpopt.a
lrwxrwxrwx    1 root     system           33 Nov 28 12:42 /usr/lib/libpopt.la ->
 ../../opt/freeware/lib/libpopt.la
lrwxrwxrwx    1 root     system           33 Nov 28 12:42 /usr/lib/libpopt.so ->
 ../../opt/freeware/lib/libpopt.so
lrwxrwxrwx    1 root     system           35 Nov 28 12:42 /usr/lib/libpopt.so.0-> ../../opt/freeware/lib/libpopt.so.0
lrwxrwxrwx    1 root     system           38 Oct 14 2011  /usr/lib/libpopt.so.0.0.0 -> /usr/opt/freeware/lib/libpopt.so.0.0.0
#
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
Your packages are obviously not (all) from perzl.org.
At least libiconv is not from there. That version does not contain a link from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a (as in your case), because forcibly creating such a link would destroy the library shipped by IBM.

Are you sure that the rsync binary in your path (the one that throws the errors in question) is the same as /usr/bin/rsync or /opt/freeware/bin/rsync?

Or do you just have a LIBPATH setting in your environment? If so, retry the failing rsync after unsetting it:

unset LIBPATH

If this doesn't help I think you should reinstall rsync and all its dependencies as offered by perzl.org.

You'll need (mind the sequence!):

- zlib http://www.oss4aix.org/download/RPMS/zlib/zlib-1.2.8-1.aix5.1.ppc.rpm
- libgcc http://www.oss4aix.org/download/RPMS/gcc/libgcc-4.8.2-1.aix6.1.ppc.rpm
- libffi http://www.oss4aix.org/download/RPMS/libffi/libffi-3.0.13-1.aix5.1.ppc.rpm
- libiconv http://www.oss4aix.org/download/RPMS/libiconv/libiconv-1.14-2.aix5.1.ppc.rpm
-- or install bos.iconv.com. bos.rte.iconv and bos.iconv.ucs.com from the AIX base DVD.
- gettext http://www.perzl.org/aix/index.php?n=Main.Gettext
-- Please observe the instructions given on that page!
- popt http://www.oss4aix.org/download/RPMS/popt/popt-1.16-1.aix5.1.ppc.rpm
- rsync http://www.oss4aix.org/download/RPMS/rsync/rsync-3.1.0-1.aix5.1.ppc.rpm
0
 

Author Comment

by:OffsiteTech
Comment Utility
It is still reporting errors after the unset so I will re-install as advised.

Thank you wmp!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

744 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

15 Experts available now in Live!

Get 1:1 Help Now