Loading...
Loading...
What were you trying to do that didn't work? The following ERROR is being logged to /var/lib/rhsm/productid.js after using pkcon to install/remove packages from an entitled repo, but in reality the error appears to be a lie. Wed Sep 20 09:44:45 2023 [ERROR] Unable to write productdb to file: /var/lib/rhsm/productid.js Please provide the package NVR for which bug is seen: [root@kvm-02-guest24 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 9.3 Beta (Plow) [root@kvm-02-guest24 ~]# rpm -q subscription-manager PackageKit subscription-manager-1.29.38-1.el9_3.x86_64 PackageKit-1.2.4-2.el9.x86_64 How reproducible: Steps to reproduce [root@kvm-02-guest24 ~]# subscription-manager register --username=rhelentqe --auto-attach Registering to: subscription.rhsm.redhat.com:443/subscription Password: The system has been registered with ID: 519f44cc-3e77-4a9e-bfab-1a7af0e043c6 The registered system name is: kvm-02-guest24.lab.eng.rdu2.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Beta Status: Subscribed [root@kvm-02-guest24 ~]# subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-beta-rpms Repository 'rhel-9-for-x86_64-highavailability-beta-rpms' is enabled for this system. [root@kvm-02-guest24 ~]# touch /var/log/rhsm/productid.log [root@kvm-02-guest24 ~]# truncate --size=0 /var/log/rhsm/productid.log [root@kvm-02-guest24 ~]# ls -l /etc/pki/product total 0 [root@kvm-02-guest24 ~]# cat /var/lib/rhsm/productid.js | python3 -m json.tool { "486": [ "beaker-BaseOS", "beaker-AppStream" ] } [root@kvm-02-guest24 ~]# pkcon install libknet1 -y Resolving [=========================] Installing [=========================] Loading cache [=========================] Querying [=========================] Loading cache [=========================] Downloading packages [=========================] Testing changes [=========================] Installing packages [=========================] Finished [=========================] [root@kvm-02-guest24 ~]# [root@kvm-02-guest24 ~]# cat /var/log/rhsm/productid.log Wed Sep 20 09:42:23 2023 [ERROR] Unable to download product certificate, error: 19: Yum repo downloading error: Downloading error(s): repodata/46f4e6ea-3907-4c67-be46-b46ff802200b - Cannot download, all mirrors were already tried without success Wed Sep 20 09:42:25 2023 [ERROR] Unable to download product certificate, error: 19: Yum repo downloading error: Downloading error(s): repodata/66af038c-f5b5-4e19-af2d-d361e0a39d0d - Cannot download, all mirrors were already tried without success Wed Sep 20 09:42:25 2023 [INFO] Product certificate installed to: /etc/pki/product/487.pem Wed Sep 20 09:42:25 2023 [ERROR] Unable to write productdb to file: /var/lib/rhsm/productid.js [root@kvm-02-guest24 ~]# ls -l /etc/pki/product total 4 -rw-r--r--. 1 root root 2195 Sep 20 09:42 487.pem [root@kvm-02-guest24 ~]# cat /var/lib/rhsm/productid.js | python3 -m json.tool { "486": [ "beaker-BaseOS", "beaker-AppStream" ], "487": [ "rhel-9-for-x86_64-highavailability-beta-rpms" ] } [root@kvm-02-guest24 ~]# truncate --size=0 /var/log/rhsm/productid.log [root@kvm-02-guest24 ~]# pkcon remove libknet1 -y Resolving [=========================] Removing [=========================] Querying [=========================] Requesting data [=========================] Finished [=========================] [root@kvm-02-guest24 ~]# [root@kvm-02-guest24 ~]# cat /var/log/rhsm/productid.log Wed Sep 20 09:44:44 2023 [ERROR] Unable to download product certificate, error: 19: Yum repo downloading error: Downloading error(s): repodata/46f4e6ea-3907-4c67-be46-b46ff802200b - Cannot download, all mirrors were already tried without success Wed Sep 20 09:44:45 2023 [ERROR] Unable to download product certificate, error: 19: Yum repo downloading error: Downloading error(s): repodata/66af038c-f5b5-4e19-af2d-d361e0a39d0d - Cannot download, all mirrors were already tried without success Wed Sep 20 09:44:45 2023 [INFO] Removing product certificate: /etc/pki/product/487.pem Wed Sep 20 09:44:45 2023 [ERROR] Unable to write productdb to file: /var/lib/rhsm/productid.js [root@kvm-02-guest24 ~]# [root@kvm-02-guest24 ~]# ls -l /etc/pki/product total 0 [root@kvm-02-guest24 ~]# cat /var/lib/rhsm/productid.js | python3 -m json.tool { "486": [ "beaker-BaseOS", "beaker-AppStream" ] } [root@kvm-02-guest24 ~]# grep -i denied /var/log/audit/audit.log [root@kvm-02-guest24 ~]# [root@kvm-02-guest24 ~]# egrep "WARNING|ERROR" /var/log/rhsm/rhsm.log [root@kvm-02-guest24 ~]# Expected results Actual results Contrary to the "[ERROR] Unable to write productdb to file: /var/lib/rhsm/productid.js" logged to /var/log/rhsm/productid.log, the /var/lib/rhsm/productid.js appears to be correctly updated as product certificates are installed and removed from /etc/pki/product/.
Won't Do
Click on a version to see all relevant bugs
Red Hat Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.