Plesk autoinstaller fails: Error: rpmdb open failed

Refers to:

  • Plesk for Linux
  • Plesk

Created:

2016-11-16 13:02:22 UTC

Modified:

2017-01-17 18:34:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk autoinstaller fails: Error: rpmdb open failed

Symptoms

One of the following errors may appear:

  1. The following error appears when I run the Plesk autoinstaller /usr/local/psa/admin/bin/autoinstaller :

    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
    YumBaseError: Error: rpmdb open failed
  2. In some cases, this error is shown in the Plesk autoinstaller:

     ERROR: The Yum utility failed to install the required packages. Attention! Your software might be inoperable. Please, contact product technical support.

    RepoError: database disk image is malformed
    Execute command /usr/local/psa/admin/bin/send-error-report install
    Error: The Yum utility failed to install the required packages.
  3. The rpm command may be stuck, for example:

    # rpm -qf /usr/local/psa/version
  4. Rpm shows an error as below:

    # rpm -qa | grep php
    rpmdb: unable to join the environment
    error: db4 error(11) from dbenv->open: Resource temporarily unavailable
    error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
    error: cannot open Packages database in /var/lib/rpm
  5. Plesk upgrade fails with this error:

    Error while preparing to install packages: pkgKey 3976 doesn't exist in repo base. Trying again. Error while preparing to install packages: pkgKey 3976 doesn't exist in repo

    File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 432, in _packageByKey raise Errors.RepoError, msg RepoError: pkgKey 3976 doesn't exist in repo base
    Error: The Yum utility failed to install the required packages.
  6. The "Warning: Permission denied." error is shown in Web Server Settings under Websites & Domains .

  7. Unable to manage Plesk services such as DNS or PHP settings. In Tools & Settings > Server Components , all components are shown as not installed.

Cause

The RPM database is corrupted.

Resolution

  1. Backup the RPM database files:

    # cd /var/lib/rpm/
    # mv __db.* ~
  2. Remove the corrupted database files:

    # rm -f /var/lib/rpm/__db.*
  3. Rebuild the RPM database:

    # rpm --rebuilddb
Have more questions? Submit a request
Please sign in to leave a comment.