Solved

Trouble when trying to run rsync in AIX

Posted on 2014-01-02
6
4,235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39753403
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
ID: 39753909
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
ID: 39754066
lppchk does not operate on packages of type "R" (= RPM)
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:OffsiteTech
ID: 39754235
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
ID: 39754515
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
ID: 39755488
It is still reporting errors after the unset so I will re-install as advised.

Thank you wmp!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

623 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