Fedora Linux Support Community & Resources Center
  #1  
Old 9th February 2005, 07:55 PM
natbrazil Offline
Registered User
 
Join Date: Oct 2004
Posts: 9
rpmdb: PANIC error, please tell me what it means

Hi all,
I received the following cron email error ref my server. My experience level hasn't reached figuring these out Could someone please tell me what it means specifically and does it call for action? if so, what? Thanks very much!

I do understand its a yum update problem. I assume my worse current status is that certain yums aren't suceeding, is that correct?

Nat
2nats AT weblabs.com

error msg follows:
######################
/etc/cron.daily/yum.cron:


rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30978)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 30, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum/yummain.py", line 163, in main
(log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
File "/usr/share/yum/yummain.py", line 75, in parseCmdArgs
conf=yumconf(configfile=yumconffile)
File "/usr/share/yum/config.py", line 155, in __init__
self.yumvar['releasever'] = self._getsysver()
File "/usr/share/yum/config.py", line 285, in _getsysver
idx = ts.dbMatch('provides', self.distroverpkg)
TypeError: rpmdb open failed
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30978)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 30, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum/yummain.py", line 163, in main
(log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
File "/usr/share/yum/yummain.py", line 75, in parseCmdArgs
conf=yumconf(configfile=yumconffile)
File "/usr/share/yum/config.py", line 155, in __init__
self.yumvar['releasever'] = self._getsysver()
File "/usr/share/yum/config.py", line 285, in _getsysver
idx = ts.dbMatch('provides', self.distroverpkg)
TypeError: rpmdb open failed
Reply With Quote
  #2  
Old 9th February 2005, 08:25 PM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
It means that your rpm database (which contains information on the packages you have installed) is corrupted.

To recover, issue these two commands as root (copy/paste them to make sure they are correctly entered):

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

After that completes, you should be OK. More info here at the rpm.org website.
Reply With Quote
  #3  
Old 9th February 2005, 11:30 PM
natbrazil Offline
Registered User
 
Join Date: Oct 2004
Posts: 9
thx macemoneta

the first command went thru with no reply, I assum that was normal
the second command caused a bazillion adding of entries to indexes, then closed a bunch of stuff, I assume that was the desired effect?

First, thanks SO much again, greatly appreciated

Is there a way to test the fix via a command?

I also went to rpm.org and read up on it


Last edited by natbrazil; 9th February 2005 at 11:35 PM.
Reply With Quote
  #4  
Old 10th February 2005, 01:22 AM
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
To test the database, simply issue an rpm command:

rpm -q kernel

You should get a response like this (though your specific kernel(s) may be different):

kernel-2.6.10-1.741_FC3
kernel-2.6.10-1.760_FC3

Then rerun the yum update request manually:

yum -y update

The commands should all complete without the nasty error messages that occurred before.
Reply With Quote
  #5  
Old 19th March 2005, 06:10 PM
jknose Offline
Registered User
 
Join Date: Mar 2005
Posts: 2
Hi I'm new to Linux, new to Fedora Core 2. I was reading some of the posts because I was having a similar problem trying to run YUM. I tried the fix noted above running:

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

Unfortunately I got the following result:

[root@FedoraMillenium /]# rm -f /var/lib/rpm/_db
[root@FedoraMillenium /]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.12765
D: creating directory /var/lib/rpmrebuilddb.12765
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages joinenv
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages index
D: removing directory /var/lib/rpmrebuilddb.12765

So just how screwed am I? Anyway to recover?

Thanks in advance for any help anybody can provide.
Reply With Quote
  #6  
Old 19th March 2005, 08:25 PM
jknose Offline
Registered User
 
Join Date: Mar 2005
Posts: 2
Never mind. I rebooted and everything is working perfectly.
Reply With Quote
Reply

Tags
error, means, panic, rpmdb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmdb: PANIC: fatal region error detected; run recovery icy-flame Using Fedora 6 1st August 2013 05:53 PM
rpm error:rpmdb: PANIC: fatal region error detected; shams Using Fedora 1 6th January 2007 01:29 PM


Current GMT-time: 16:30 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Eleskirt - Minglanilla Photos - Limeira Travel Photos