000033484 - RSA Security Analytics - Yum commands error: db3 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery

Document created by RSA Customer Support Employee on Jul 6, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 5Show Document
  • View in full screen mode

Article Content

Article Number000033484
Applies ToRSA Product Set: Security Analytics
RSA Product/Service Type: SA Security Analytics UI
Platform: CentOS
O/S Version: 6
 
IssueUpdate Error in the Hosts page as per below:
User-added image
When pressing on the Error, the fault indicates a problem with Yum not being able to access the RPM DB
 
db3 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
TasksWhen you run the following commands:
puppet agent -t
yum check-update

You again get the error indicating a problem with Yum accessing the RPM DB:
rpmdb: PANIC: fatal region error detected; run recovery
error: db3 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
ResolutionTo resolve this issue, you have to clean the RPM database as below:
      1. Make a backup directory
mkdir /tmp/backups.rpm/

      2. Move the faulty DB files to this temp folder
cp -avr /var/lib/rpm/ /tmp/backups./

      3. Remove the faulty DB files
rm -f /var/lib/rpm/__db*

      4. Run the db_verify utility on the available packages
db_verify /var/lib/rpm/Packages

      5. Rebuild the database again
rpm --rebuilddb

      6. Confirm that everything is working fine again
yum clean all
yum check-update
NotesIf you are unsure of any of the steps above, please contact RSA Support.

Attachments

    Outcomes