Symptoms
When updates are available for cPanel, but do not install, you may find an error such as this in WHM:
FATAL Your RPM database appears unstable. It is not possible at the moment to install a simple RPM. |
Check the cPanel update log found at:
/var/cpanel/updatelogs/last
Look to see if cPanel update fails due to blocker related to RPM operation.
[2020-10-04 06:12:18 +0100] Checking that the RPM DB is OK... [2020-10-04 06:12:18 +0100] error: rpmdb: BDB0113 Thread/process 850/139798076880960 failed: BDB1507 Thread died in Berkeley DB library [2020-10-04 06:12:18 +0100] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery [2020-10-04 06:12:18 +0100] error: cannot open Packages index using db5 - (-30973) [2020-10-04 06:12:18 +0100] error: cannot open Packages database in /var/lib/rpm [2020-10-04 06:12:18 +0100] package glibc is not installed [2020-10-04 06:12:18 +0100] FAIL: RPM DB error: error: rpmdb: BDB0113 Thread/process 850/139798076880960 failed: BDB1507 Thread died in Berkeley DB library [2020-10-04 06:12:18 +0100] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery [2020-10-04 06:12:18 +0100] error: cannot open Packages index using db5 - (-30973) [2020-10-04 06:12:18 +0100] error: cannot open Packages database in /var/lib/rpm [2020-10-04 06:12:18 +0100] package glibc is not installed (exit code 1) [2020-10-04 06:12:18 +0100] E Blocker found: Your RPM database appears unstable. It is not possible at the moment to install a simple RPM. |
Description
This issue generally indicates an issue with RPM database not functioning on the server, usually due to some form of corruption.
Fix
See this article for how to resolve RPM database issues.