IBM Support

Open Source Package Manager (In ACS) attempts connect RPM database "Error:rpmdb open fail".

General Page

IBM open source packages and installation information can be obtained here:
https://ibm.biz/ibmi-rpms

For Access Client Solutions installation and support for open source package manager can be obtained here:
https://www-01.ibm.com/support/docview.wss?uid=nas8N1022619

This document explains RPM database connection issues (post Open Source Package Manager in ACS installation) when attempting to connect to the RPM database using SSH.
Abstract:
Client is attempting to connect their ACS Open Source Package manager and in doing so obtains an error:
"ERROR: rpmdb open failed"
Solution 1 (from Access Client Solutions):
1. Using the Access Client Solutions product, launch the "Open Source Package Management" interface from the "Tools" menu
2. Sign on to the system. This should bring you to the "Open Source Package Management" interface.
3. From the "Utilities" menu, run "Rebuild RPM Database"
Solution 2 (from a 5250 interface):
1. call qp2term

2. Run the following commands
cd /QOpenSys/var/lib/rpm/
ls -l *__db*
Verify that we can see existing SQL Lite files. It may look something similar to this.
 
 __db.001
 __db.002
 __db.003


If there does not exist any __db.xxx files we may have additional SSH issues.
Note: Upon initial connection to Open Source package manager these db files are created to index the current products.

We can attempt to rebuild the database. However if we are unable to connect using SSH, then we will need to fix the SSH connection.
1. call qp2term
2.
/QOpenSys/pkgs/bin/rpm -vv --rebuilddb > /tmp/rpmrebuilddb.log 2>&1


Once complete, then attempt to connect via SSH from ACS again. If we still fail then we will want to generate service logs from the ACS console ("Tools > Generate Service Logs"). Send the service logs and /tmp/rpmrebuilddb.log (performed above) to your Technical Support representative.
 

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"Open Source;node.js","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"R720, R730, R740","Edition":"All","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
23 April 2021

UID

ibm11071758