Tuesday, November 4, 2014

Yum failure (again).

Once again, Redhat/CentOS has problems with yum corruption:

[root@unixhosts /home/jemurray]# yum update
rpmdb: Thread/process 24996/140588668987136 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


I have been running Debian and Redhat servers for a very long time.   I have also used auto security updates for a long time.

Debian has never failed me.   Redhat fails more times than I want to count.    For services as critical as automatic updates this can't fail.

There are times I must use Redhat servers for a handful of enterprise applications.   So, here is the fix:

rm -f /var/lib/rpm/__db*
rpm --rebuilddb
yum clean all
yum update

No comments:

Post a Comment

Followers