How to fix rpmdb failed error while processing cPanel update?

You may face the below error while updating cPanel with upcp command or while updating centos using yum update command

[xxxx-11-23 22:39:12 -0600] ***** FATAL: Failed to download updatenow.static from server: (XID 6ytug8) “/bin/rpm” reported error code “1” whe$
[xxxx-11-23 22:39:12 -0600] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[xxxx-11-23 22:39:12 -0600] error: cannot open Packages index using db5 - (-30973)
[xxxx-11-23 22:39:12 -0600] error: cannot open Packages database in /var/lib/rpm
[xxxx-11-23 22:39:12 -0600] error: rpmdb: BDB0113 Thread/process 10040/139989472626752 failed: BDB1507 Thread died in Berkeley DB library
[xxxx-11-23 22:39:12 -0600] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery

As per the above error, there is an issue with the RPM database on the Linux machine. Please refer to the following workaround to fix this issue.

  1. Login to your WHM Panel.

  2. Go to the Software and click on Rebuild RPM Database.



  3. Click on the Proceed button to start the RPM rebuilding.

Once the process is completed, you should be able to update cPanel without any issue.

You can also run the below command in case you are facing the issue with yum and don't have WHM/cPanel.

mkdir /root/old_rpm_dbs/
mv /var/lib/rpm/__db* /root/old_rpm_dbs/
rpm --rebuilddb -vv
yum clean all

Related Articles

What if I exceed the bandwidth limit I am assigned with VPS?

Our system continually monitors the bandwidth usage of all our VPS. In case if your total monthly...

How to install Google Chrome on Ubuntu 18.04 using the Command Line?

Following are the steps to install Google Chrome using Command-Line. Edit the source.list file...

How to change SSH port on Ubuntu?

Please refer to the following steps to change the SSH port in Ubuntu. Login to your server via...

How to Install Visual Studio Code on CentOS 7?

Visual Studio Code is a Microsoft Product and an open-source cross-platform code editor. It...

How to Install LEMP Stack (Nginx, MariaDB, PHP7.2) on Ubuntu 18.04 LTS?

Nginx, MariaDB and PHP7.2 are called (LEMP). Following are the steps to install LEMP on Ubuntu...

  • 0 Users Found This Useful

Was this answer helpful?