Yum Update broken CentOS 5

General support questions including new installations
Post Reply
dracobuild
Posts: 2
Joined: 2005/07/01 08:06:16
Contact:

Yum Update broken CentOS 5

Post by dracobuild » 2007/05/29 20:03:11

When running yum update the following error occurs:

# yum update
Loading "installonlyn" plugin
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30977)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 82, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 206, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 132, in doConfigSetup
self.conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 598, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 661, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
Loading "installonlyn" plugin
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30977)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 82, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 206, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 132, in doConfigSetup
self.conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 598, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 661, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

My attempt to rebuild rpm database gives this:

# rpm --rebuilddb
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30977)

Any help appreciated.

Joseph

plazman30
Posts: 6
Joined: 2007/03/22 15:09:40

Re: Yum Update broken CentOS 5

Post by plazman30 » 2007/05/30 04:14:58

Sounds like hardware. Perhaps a bad HD? try running an fsck -yf from a rescue CD on the drive and see what comes up. Are you using LVM? ext3?

dracobuild
Posts: 2
Joined: 2005/07/01 08:06:16
Contact:

Re: Yum Update broken CentOS 5

Post by dracobuild » 2007/06/04 23:02:55

I am using ext3 and linux software raid only. One SATA Raid 5 and 2 SATA Raid 1 Partitions. I have tried the fsck on drives but still no improvement on condition. The system appears to be stable other than the update problem. Running since installed with no reboot. Any Additional assistance greatly appreciated.

:-( Joseph

foxb
Posts: 1927
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Yum Update broken CentOS 5

Post by foxb » 2007/06/05 13:15:52

Try this:

http://www.internetguru.com.au/igblog-127.html

Post Reply

Return to “CentOS 5 - General Support”