LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-09-2005, 01:53 PM   #1
natbrazil
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
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
 
Old 02-09-2005, 04:33 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery"

Your rpm data base is messed up. The first thing to try is rebuilding the data base with the command:

rpm --rebuilddb


-------------------
Steve Stites
 
Old 02-09-2005, 05:16 PM   #3
natbrazil
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
thx, tried that, got this:

> rpm --rebuilddb
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
 
Old 02-09-2005, 05:32 PM   #4
natbrazil
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
FYI,
Elsewhere macemoneta told me to do this, and it seems to have worked, thanks

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Something wrong when I try to rpm -e *.. rpmdb: PANIC: fatal region error dete... brynjarh Linux - Newbie 8 10-24-2007 02:08 PM
rpmdb-redhat-4-0.20050525.src.rpm/rebuild error louisb Linux - Enterprise 0 07-12-2005 10:19 AM
rpmdb: fatal region error detected; run recovery lil_becky Linux - Newbie 1 01-20-2005 01:00 AM
Anyone know what this 'error' means? BxBoy Linux - General 2 02-21-2004 03:31 PM
rpmdb error acid_kewpie Linux - General 0 02-02-2002 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration