Plesk autoinstaller fails on yum operations with "Error: rpmdb open failed" or yum hangs

Created:

2016-11-16 13:02:22 UTC

Modified:

2017-08-16 17:39:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk autoinstaller fails on yum operations with "Error: rpmdb open failed" or yum hangs

Applicable to:

  • Plesk for Linux

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 :

    CONFIG_TEXT: 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:

    CONFIG_TEXT: 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:

    CONFIG_TEXT: 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 "Permission denied." error is shown in Web Server Settings under Websites & Domains .

  7. Yum utility hangs on upgrade.
  8. In Tools & Settings > Server Components all components are shown as not installed or the list is empty.
  9. Unable to manage Plesk services such as DNS or PHP settings.

  10. Unable to create new domain with the error message:

    PLESK_ERROR: Unable to create new subscription. The IP-Pool is empty

Cause

RPM database is corrupted.

Resolution

  1. Connect to the server using SSH .
  2. Backup RPM database files:

    # cd /var/lib/rpm/
    # mv __db.* ~

  3. Remove corrupted database files:

    # rm -f /var/lib/rpm/__db.*

  4. Rebuild RPM database:

    # rpm --rebuilddb

  5. Refresh server components at Plesk > Tools & Settings > Server Components or continue Plesk upgrade with Plesk installer.
    refresh.png
Have more questions? Submit a request
Please sign in to leave a comment.