Symptom:
When accessing the "Host Access Control" interface in WHM >> Security Center >> Host Access Control, the page will not load and only an empty page is shown instead.
Looking at the cPanel's error log (/usr/local/cpanel/logs/error_log) these error messages are shown:
STDERR: error: rpmdb: BDB0113 Thread/process 2231/139827647752256 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
error: rpmdb: BDB0113 Thread/process 2231/139827647752256 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
Cpanel::Exception::ProcessFailed::Error/(XID uazvt6) “/bin/rpm” reported error code “1” when it ended: error: rpmdb: BDB0113 Thread/process 2231/139827647752256 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
error: rpmdb: BDB0113 Thread/process 2231/139827647752256 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
Description:
This indicates that the RPM database on the system is corrupted and needs to be repaired. You can confirm this with the following command:
rpm -qa
error: rpmdb: BDB0113 Thread/process 2231/139827647752256 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
error: rpmdb: BDB0113 Thread/process 2231/139827647752256 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
Workaround:
Running the below command would repair the RPM database and consequently the "Host Access Control" interface would be accessible:
/scripts/find_and_fix_rpm_issues
You can refer to the following link for more information on how to repair an RPM database: