Hi Stefan
Here is the output
+ [[ -z /var ]]
+ return 0
+ echo /var/ssl/64/certs
+ read NODE
+ check_node /var/ssl/cert.pem
+ typeset NODE=/var/ssl/cert.pem
+ typeset ERROR=eval pmerror "check_node()" ; return 1
+ [[ -z /var/ssl/cert.pem ]]
+ [[ ! -L /var/ssl/cert.pem ]]
+ return 0
+ + whichfs /var/ssl/cert.pem
+ typeset NODE=/var/ssl/cert.pem
+ typeset BUF=
+ typeset ERROR=eval pmerror "whichfs()"; return 1
+ typeset DEV
+ typeset FS
+ typeset ISDEV=0
+ typeset LOOPMAXHARD=256
+ typeset LOOPMAXSOFT=128
+ typeset LOOPC=0
+ [[ -z /var/ssl/cert.pem ]]
+ [[ 1 -gt 0 ]]
+ /usr/lib/instl/libinst_whichfs /var/ssl/cert.pem
+ eval pmerror "whichfs()"; return 1
+ pmerror whichfs()
+ perror 26 whichfs()
+ ISERROR=1
+ print_msg 26 whichfs()
+ 1>& 2
+ [ -ne 1 ]
rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.
+ ISERROR=0
+ return 0
+ return 0
+ return 1
FS=
+ eval pmerror "get_rpm_inst_root_list()"; return 1
+ pmerror get_rpm_inst_root_list()
+ perror 26 get_rpm_inst_root_list()
+ ISERROR=1
+ print_msg 26 get_rpm_inst_root_list()
+ 1>& 2
+ [ -ne 1 ]
rpm_share: 0645-007 ATTENTION: get_rpm_inst_root_list() returned an unexpected result.
+ ISERROR=0
+ return 0
+ return 0
+ return 1
+ eval pmerror "update_inst_root()"; return 1
+ pmerror update_inst_root()
+ perror 26 update_inst_root()
+ ISERROR=1
+ print_msg 26 update_inst_root()
+ 1>& 2
+ [ -ne 1 ]
rpm_share: 0645-007 ATTENTION: update_inst_root() returned an unexpected result.
Thnaks
------------------------------
Rizwan Khaliq
------------------------------
Original Message:
Sent: Fri October 28, 2022 09:29 AM
From: Stefan Kirchberg
Subject: updtvpkg error
Hi Rizwan,
have you tried to (re-)install a rpm-Package? We got the whichfs-error on every rpm-install.
In a test we could see the missing link also with updtvpkg:
# script /tmp/rpm.debug (begin script logging)
# export RPM_SHARE_DEBUG=true
# updtvpkg
# exit (exit the script logging)
then we can find an error in the logfile /tmp/rpm.debug (search for "ATTENTION"):
+ [[ -z /etc/rc.d/rc2.d/Kslapd ]]^M
+ [[ 1 -gt 0 ]]^M
+ /usr/lib/instl/libinst_whichfs /etc/rc.d/rc2.d/Kslapd^M
+ eval pmerror "whichfs()"; return 1^M
+ pmerror whichfs()^M
+ perror 26 whichfs()^M
+ ISERROR=1^M
+ print_msg 26 whichfs()^M
+ 1>& 2^M
+ [ -ne 1 ]^M
rpm_share: 0645-007 ATTENTION: whichfs() returned an unexpected result.^M
In this example the link /etc/rc.d/rc2.d/Ksladap points to an non existing file. So we could reinstall the package containing this link (rpm -q --whatprovides /etc/rc.d/rc2.d/Ksladap).
Greetings
Stefan
------------------------------
Stefan Kirchberg
Original Message:
Sent: Fri October 28, 2022 08:30 AM
From: Rizwan Khaliq
Subject: updtvpkg error
Hi Stefan
looks like the link you shared will be helpful if we know which rpm caused the issue so that we can remove and re-install it with debug option. We don't know which rpm is causing this issue.
Thanks
------------------------------
Rizwan Khaliq
Original Message:
Sent: Fri October 28, 2022 06:52 AM
From: Stefan Kirchberg
Subject: updtvpkg error
Hi Rizwan,
we had a similar problem with a wrong link in one of the installed third-party rpms.
With the description in this link:
https://www.ibm.com/support/pages/aix-open-source-troubleshooting-rpmshare-0645-007-whichfs-errors
we were able to identify the missing Link (the creator of the rpm linked a file with a wrong name).
Hope that would help.
Greetings
Stefan
------------------------------
Stefan Kirchberg
Original Message:
Sent: Sun October 23, 2022 03:37 PM
From: Rizwan Khaliq
Subject: updtvpkg error
Hi team I am getting below verbose output when I run updtvpkg in AIX. How can I find what/if any links are missing?
root@xxxxxx:/ # updtvpkg
Please wait...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.
warning: line 8: It's not recommended to have unversioned Obsoletes: Obsoletes: SysProvides
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Pqzaea
+ umask 022
+ cd /opt/freeware/src/packages/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Puzaeb
+ umask 022
+ cd /opt/freeware/src/packages/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Puzaec
+ umask 022
+ cd /opt/freeware/src/packages/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
Processing files: AIX-rpm-7.2.5.101-11.ppc
Wrote: /opt/freeware/src/packages/SRPMS/AIX-rpm-7.2.5.101-11.src.rpm
Wrote: /opt/freeware/src/packages/RPMS/ppc/AIX-rpm-7.2.5.101-11.aix7.2.ppc.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Pyzaed
+ umask 022
+ cd /opt/freeware/src/packages/BUILD
+ RPM_EC=0
+ jobs -p
+ exit 0
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.
------------------------------
Rizwan Khaliq
------------------------------