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.rte install removes rpm in rpm db

    Posted Tue February 06, 2018 08:59 AM

    Originally posted by: t_tran


    During our installation of rpm.rte v 4.9 we "lost" entries in the rpm db.

     

    Some applications reported missing rpms although the binaries were untouched.

     

    Is there a way to recover those rpm entries in the rpm db ?



  • 2.  Re: rpm.rte install removes rpm in rpm db

    Posted Tue February 06, 2018 09:57 AM

    Originally posted by: sangameshm


    Hi Tran,

     

    Mostly failure would have been caused by the incompatibilities with rpms from some other source.

    We would still be having old rpm database files(*.rpm) in /usr/opt/freeware/packages which we can read it with older rpm.

     

    Could you paste the any error you have ?

    Also you can look at the  files present in /tmp/tmprpm and see what could be wrong.

     

    /tmp/tmprpm - Contains a build log for the virtual packages built something like mkvirtpkg.ragent-*.out.  This files gives some idea where in the build process has failed.
                           Contains a directory virtuals and rpmdir.

    /tmp/tmprpm/virtuals - Contains a spec file created.
    /tmp/tmprpm/rpmdir - Contains a rebuilt virtual rpm packages if build was successful.

     

    Thanks,

    Sangamesh



  • 3.  Re: rpm.rte install removes rpm in rpm db

    Posted Tue February 06, 2018 10:55 AM

    Originally posted by: t_tran


    It is one of the application called ragent that is missing

    cat mkvirtpkg.ragent-12.0.0-1084.2099462.out
    Executing(%prep): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.16819
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + exit 0
    Executing(%build): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.16819
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + exit 0
    Executing(%install): /bin/sh -e /var/opt/freeware/tmp/rpm-tmp.16819
    + umask 022
    + cd /opt/freeware/src/packages/BUILD
    + exit 0
    Processing files: ragent-12.0.0-1084
    File not found: /opt/imperva/ragent/etc/asmp_defaults/agent_factory_content.xml
    File not found: /opt/imperva/ragent/etc/asmp_defaults/asmp-metadata.xml
    File not found: /opt/imperva/ragent/etc/asmp_defaults/kabi.txt
    File not found: /opt/imperva/ragent/etc/asmp_defaults/usmDictionary.xml
    Provides: aso_dso_v1_12_0_0_1084.so
    PreReq: /bin/sh
    Requires: /bin/sh libC.a(ansi_32.o) libC.a(shr.o) libC.a(shr2.o) libC.a(shr3.o) libc.a(shr.o) libperfstat.a(shr.o) libpthreads.a(shr_comm.o) libpthreads.a(shr_xpg5.o) unix

     

    The rpm didn't build correctly as it is not present in /tmp/tmprpm/rpmdir

     

    Could we recover the entry from the old rpm db and update it in the new one ?



  • 4.  Re: rpm.rte install removes rpm in rpm db

    Posted Wed February 07, 2018 08:37 AM

    Originally posted by: sangameshm


    There are some ways. Will get back to you on the options in 1 or 2 days.

     

    In-between, we don't have only ragent in newer database or all other rpm packages entries missing ?

    Thanks,

    Sangamesh



  • 5.  Re: rpm.rte install removes rpm in rpm db

    Posted Wed February 07, 2018 08:43 AM

    Originally posted by: t_tran


    Only the ragent is missing, it might be a bug, we are unsure about the root cause.

     



  • 6.  Re: rpm.rte install removes rpm in rpm db

    Posted Mon February 19, 2018 09:27 AM

    Originally posted by: t_tran


    Hello, could you please come back to us about this issue ? this is blocking upgrades on our production servers as the ragent is deployed there.