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




  • 53 Users Found This Useful

Was this answer helpful?

Related Articles

Repairing and Optimizing all MySQL and MariaDB Databases on the Server

From time to time you will find repairing and optimizing your databases are necessary. From a...

VPS Time not Correct with Time Server

If you have a problem with your VPS time not staying sync in a Xen VPS you will want to enable...

Whitelisting Multiple IPs with Mod_Security

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

Failed to start tailwatchd - Unit tailwatchd service entered failed state

Failed to start tailwatchd. Unit tailwatchd.service entered failed state.  tailwatchd.service...

FSCK Options and Maintenance

Provided below are some useful commands pertaining to FSCK. Update commands to your environment /...