Recurring corruption of rpmdb on RHEL 6

Solution In Progress - Updated -

Issue

  • I have some systems that repeatedly have problems with the RPM database. I can fix it by deleting the DB files under /var/lib/rpm and then rebuilding the DB but the problem returns within a day or two.
# rpm -qa
rpmdb: Thread/process 17173/140533482657696 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
rpmdb: Thread/process 17173/140533482657696 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
  • I successfully repair using "rm -f /var/lib/rpm/__db*;rpm --rebuilddb" but issue keeps returning.

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content