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

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...

Fix :: Linux SSH error "connection refused"

Problem Statement Can't connect to a Linux server(Debian Flavour) via SSH. Error Message...

How to Run Multiple PHP versions with Nginx on Ubuntu?

You can run multiple php versions on Ubuntu without any issue. You require Multiple php versions...

How to take Backup of Exim Configuration from WHM?

EXIM comes with cPanel which is responsible for the email tranfer on the Linux server. Users can...

How can I view my website before DNS changes?

Before DNS propagation takes place, you can browse your website wite temporary URL. Following are...

  • 0 Users Found This Useful

Was this answer helpful?