Article ID: 114179, created on Jun 22, 2012, last review on May 11, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux


RPM-related operations fail for a Fedora 17-based container. An output similar to the one below is observed:
error: rpmdb: BDB0113 Thread/process 19176/139826746189824 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm


The RPM database is corrupted inside the container.


Repair the RPM database inside the container in question:
  1. Log in to the container:
    vzctl enter CTID
  2. Remove the corrupted database files:
    rm -f /var/lib/rpm/__db.*
  3. Rebuild the RPM database:
    rpm --rebuilddb

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 0dd5b9380c7d4884d77587f3eb0fa8ef c62e8726973f80975db0531f1ed5c6a2

Email subscription for changes to this article
Save as PDF