[root@lch1 ~]# yum update
rpmdb: Thread/process 10237/140252464477952 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
>>> rpm works after <<< [root@lch1 ~]# rpm --rebuilddb
rpmdb: Thread/process 10237/140252464477952 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)
[root@lch1 ~]# cd /var/lib/rpm; ls -l
total 127448
-rw-r--r--. 1 root root 10170368 Apr 5 14:51 Basenames
-rw-r--r--. 1 root root 12288 Apr 5 14:38 Conflictname
-rw-r--r--. 1 root root 24576 Apr 5 15:42 __db.001
-rw-r--r--. 1 root root 237568 Apr 5 15:42 __db.002
-rw-r--r--. 1 root root 1318912 Apr 5 15:42 __db.003
-rw-r--r--. 1 root root 753664 Apr 5 14:53 __db.004
-rw-r--r--. 1 root root 5160960 Apr 5 14:51 Dirnames
-rw-r--r--. 1 root root 10723328 Apr 5 14:51 Filedigests
-rw-r--r--. 1 root root 36864 Apr 5 14:51 Group
-rw-r--r--. 1 root root 36864 Apr 5 14:51 Installtid
-rw-r--r--. 1 root root 86016 Apr 5 14:51 Name
-rw-r--r--. 1 root root 49152 Apr 5 14:38 Obsoletename
-rw-r--r--. 1 root root 103092224 Apr 5 14:51 Packages
-rw-r--r--. 1 root root 2596864 Apr 5 14:51 Providename
-rw-r--r--. 1 root root 1363968 Apr 5 14:51 Provideversion
-rw-r--r--. 1 root root 12288 Nov 12 22:13 Pubkeys
-rw-r--r--. 1 root root 581632 Apr 5 14:51 Requirename
-rw-r--r--. 1 root root 417792 Apr 5 14:51 Requireversion
-rw-r--r--. 1 root root 180224 Apr 5 14:51 Sha1header
-rw-r--r--. 1 root root 81920 Apr 5 14:51 Sigmd5
-rw-r--r--. 1 root root 12288 Apr 5 14:38 Triggername
>>> Error means that rpm died with write locks held and automatic cleanup
fails to work. 'rm -f /var/lib/rpm/__*' clear up the situation <<< [root@lch1 rpm]# rm -f /var/lib/rpm/__*
>>> Yum works now <<< [root@lch1 rpm]# yum update
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: sunsite.icm.edu.pl
* extras: sunsite.icm.edu.pl
* rpmforge: apt.sw.be
* rpmforge-extras: apt.sw.be
* updates: sunsite.icm.edu.pl
405 packages excluded due to repository priority protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package dnsmasq.x86_64 0:2.63-1.el6.rfx will be updated
Found your post via Google. Helped resolve my issue. Thanks!
ReplyDelete