How to fix rpmdb failed error while processing cPanel update? Print

  • 0

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

Was this answer helpful?

« Back
Sign up for a newsletter

chat