AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  rpm_share errors installing tripwire

    Posted Tue February 20, 2018 02:23 PM

    Originally posted by: kennetha


    Hello,

     

    We have a customer who is trying to install a rpm called (tripwire) and it fails with an rpm_share error.

     

     ./te_agent.bin --eula accept --silent --server-host  xxxxxxxx --server-port xxxx --passphrase  xxxxxx --rtmport xxxxx --enable-audit-conf true --turn-bin-mode-off true --turn-stream-mode-off true --install-dir /opt/tripwire

     
    Starting the Tripwire Enterprise Agent installer... please wait
    Copyright
    --------
    Copyright 1998 - 2017 Tripwire, Inc. Use of this software is subject to license restrictions, see http://www.tripwire.com/legal/eula/ for more information.

    Checking oslevel (this may take a few seconds...)
    Checking RPM configuration...
    x TWeagent.aix7.1.ppc.rpm, 46632861 bytes, 91080 tape blocks
    x license, 29273 bytes, 58 tape blocks
    x teagent-realtime-0.9-1.aix5.3.ppc.rpm, 735319 bytes, 1437 tape blocks
    Installing the Tripwire Enterprise Agent.  Please wait...
    Preparing packages...
    TWeagent-8.6.0.1-0.ppc
    rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
    rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.

    An error occurred during installation. Review any output above and try again, or contact Tripwire Support for assistance.

     

    The customer already contacted Tripwire and they said its an AIX issue.  And I understand we don't support rpms that are not on the AIX toolbox site but I wanted to know is how can we debug what the error message means for future reference?



  • 2.  Re: rpm_share errors installing tripwire

    Posted Fri February 23, 2018 02:24 AM

    Originally posted by: sangameshm


    These kind of errors are mostly appear if we are having symbolic link to non-existence path as part of an rpm package.

    Or path in which where we are trying to install a file doesn't exists. rpm-4 does some strict checks on files we are installing.

    We can try installing the rpm package in verbose mode with  "rpm -ivvh" which can point us which file is causing this failure.

    Does rpm is installed in chroot environment ?

     

    Thanks,

    Sangamesh



  • 3.  Re: rpm_share errors installing tripwire

    Posted Mon February 26, 2018 09:59 AM

    Originally posted by: Chanel40


    I am not sure how to run with rpm-ivvh to install using the command listed above.



  • 4.  Re: rpm_share errors installing tripwire

    Posted Mon February 26, 2018 10:25 AM

    Originally posted by: AyappanP


    If that bin file you are executing is a shell script, you can open it & try to see where they are doing "rpm -i or (rpm -ivh)". There you can modify it as "rpm -ivvh" .



  • 5.  Re: rpm_share errors installing tripwire

    Posted Mon February 26, 2018 10:27 AM

    Originally posted by: Chanel40


    Good Morning. Its a bin file that I run to install tripwire.

    I dont think I an modified the bin file.

     

    this is command

    ./te_agent.bin --eula accept --silent --server-host  xxxxxxxx --server-port xxxx --passphrase xxxxxx --rtmport xxxxxx --enable-audit-conf true --turn-bin-mode-off true --turn-stream-mode-off true --install-dir /opt/tripwire

     

    Its a bin file that I run to install tripwire.

    I dont think I an modified the bin file.

     

     



  • 6.  Re: rpm_share errors installing tripwire

    Posted Mon March 05, 2018 02:57 PM

    Originally posted by: Chanel40


    Hi..

    We got an update from the Component Owner.

    This file looks to be shell script and we can see rpm install command is being used.
    So we can edit this file and add more verbose option to the rpm install commands "rpm -ivvh".

    +575 rpm -iv $WRKDIR/TWeagent.aix7.1.ppc.rpm $ADDITIONAL_RPM_OPTIONS^M
    +607 rpm -iv $WRKDIR/teagent-realtime-0.9-1.aix5.3.ppc.rpm $ADDITIONAL_RPM_OPTIONS^M
    +735 rpm -iv "$(findRtmPackage "$WRKDIR" "$realtimeDist" "$RPM_ARCH" "rpm" "$realtimeVersion")" $ADDITIONAL_RPM_OPTIONS^M

    So vi that file and add a "-h" to the lines above.

     

    I added lines and got the following error.

    # ./te_agent.bin --eula accept --silent --server-host xxxxxxxxx --server-port 9898 --passphrase xxxxxx --rtmport xxxxx --enable-audit-conf true --turn-bin-mode-off true --turn-stream-mode-off true --install-dir /opt/tripwire


    Starting the Tripwire Enterprise Agent installer... please wait

    Copyright
    ---------

    Copyright 1998 - 2017 Tripwire, Inc. Use of this software is subject to license restrictions, see http://www.tripwire.com/legal/eula/ for more information.


    Checking oslevel (this may take a few seconds...)
    Checking RPM configuration...
    tar: directory checksum error (7 != 35510)
    Unable to extract archive. Exiting...
    # #

     

     


     

    I added the



  • 7.  Re: rpm_share errors installing tripwire

    Posted Thu March 08, 2018 04:48 PM

    Originally posted by: Chanel40


    I was able to successfully installed tripwire.

    I rebuild my server.  

    Rename Native tar file and install gnu tar (found information on ibm website.

    tar --versioncopy to clipboard

    For a GNU tar utility the output would conform to the following:

    tar (GNU tar) 1.14
    Copyright (C) 2004 Free Software Foundation, Inc.
    This program comes with NO WARRANTY, to the extent permitted by law.
    You may redistribute it under the terms of the GNU General Public License;
    see the file named COPYING for details.
    Written by John Gilmore and Jay Fenlason.copy to clipboard

    If the resulting output does not indicate a GNU tar utility then perform the following steps.

    Procedure

    1. Find the native tar location.
      #which tar
      /usr/bin/tarcopy to clipboard
    2. Move the native binary tar command:
      #cd /usr/bin
      #mv tar tar_copy to clipboard
    3. Install the GNU tar, which can be obtained from the toolbox site:

      For example, refer the following toolbox site for AIX® http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html

      Set the install location to be something similar to /opt/freeware/bin/tar

    4. Create a gnu tar soft link:
      ln -s  /opt/freeware/bin/tar /usr/bin/tarcopy to clipboard
    5. Validate that the tar command is gnu tar:
      #tar --version
    6. change data in limit file to unlimted.
    7. run the installation and it worked.
    8. Thanks for you support.

     

    Chanel



  • 8.  Re: rpm_share errors installing tripwire

    Posted Thu December 06, 2018 08:26 AM

    Originally posted by: Chanel40


    Good Morning...Please remove our server name from this thread. I didn't realize that I had FQDN name in there....



  • 9.  Re: rpm_share errors installing tripwire

    Posted Thu December 06, 2018 08:42 AM

    Originally posted by: Chanel40


    Kenneth --- Please remove our servername, ports and paraphase.

     

    chanel manohar



  • 10.  Re: rpm_share errors installing tripwire

    Posted Thu December 06, 2018 11:44 AM

    Originally posted by: kennetha


    Sorry Chanel.  I didn't know that was your information since I don't work with the tripwire product.  I apologize for that and removed the information as requested