error: db3 error(-) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

error: db3 error(-) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery can occur if there is corruption in your rpm database.

Situations also include :

rpmdb: Thread/process /failed: Thread died in Berkeley DB library

error: db3 error(-) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

error: cannot open Packages index using db3 - (-)

error: cannot open Packages database in /var/lib/rpm

An error has occurred:

<class '_rpm.error'>

# db3 error(-xxxx) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

For such cases performing the following in should correct the issue:

rpm -qa 
rm -f /var/lib/rpm/__*
rpm --rebuilddb




  • 48 Users Found This Useful

Was this answer helpful?

Related Articles

CSF Error: *WARNING* Binary location for [HOST] [/usr/bin/host] in /etc/csf/csf-conf is either incorrect, is not installed or is not executable

During a CSF start or restart you may encounter this error. This is a result of /usr/bin/host...

Manually Clear from Console / Command Line cPanel Exim Mail Queue

To clear the cPanel exim mail queue quickly from a command line / shell use the following...

Whitelisting Multiple IPs with Mod_Security

The following can be added to the main modsecurity.conf or a whitelist file such as one...

SpamAssassin Command Line Bayesian Learn Command cPanel

Once it is enabled, it is necessary to train spamassassin to learn what is junk mail and what is...

Recursive chmod / Permission Change Across Directories for a File Type

The following command may be very useful for changing the permissions of a file type such as .php...