Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Fix rpmdb: Thread died in Berkeley DB library  (Read 9485 times)

0 Members and 1 Guest are viewing this topic.

vichithrakumart

  • Guest
Fix rpmdb: Thread died in Berkeley DB library
« on: September 11, 2018, 02:26:32 am »
This error occurs while upgrading the server packages and Plesk. This error shows because of the RPM database is opening failed.

Code: [Select]
yum update
rpmdb: Thread/process 16955/139826084484864 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
CRITICAL:yum.main:

Error: rpmdb open failed


Please try this to fix the issue

Code: [Select]
# mkdir /var/lib/rpm/backup
# cp -a /var/lib/rpm/__db* /var/lib/rpm/backup/
# rm -f /var/lib/rpm/__db.[0-9][0-9]*
# rpm --quiet -qa
# rpm --rebuilddb
# yum clean all