PDA

View Full Version : Problem w. smart



d347hm4n
6th February 2007, 02:40 PM
Smart was working fine until a few days ago, now when i try and install a package i get the following error

rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery


any suggestions anyone?

Seve
6th February 2007, 03:01 PM
Hello:
Do you have any other package managers running ?
from a terminal as root type
chkconfig --list | grep 5:on
and post the output

Seve

d347hm4n
6th February 2007, 06:44 PM
When I type in the command the following is my output


chkconfig --list | grep 5:on
acpid 0:off 1:off 2:off 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
mcstrans 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nvidia-glx 0:off 1:off 2:on 3:on 4:on 5:on 6:off
readahead_early 0:off 1:off 2:on 3:on 4:on 5:on 6:off
readahead_later 0:off 1:off 2:off 3:on 4:off 5:on 6:off
restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
smartd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
wine 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
yum-updatesd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Seve
6th February 2007, 06:51 PM
Hello:
You need to stop and then disable yum-updatesd
Open a terminal and log in as root using
su -
yourpassword
then type
chkconfig yum-updatesd off

then type
chkconfig --list | grep 5:on
to confirm that it is turned off
Then type
yum clean all
yum clean metadata
yum clean dbcache
and then try your smart package manager again

If you still have the same error as before then from a terminal logged in as root
Follow the instructions posted here under Post No.2
http://forum.fedoraforum.org/forum/showthread.php?t=146780

Seve

JN4OldSchool
6th February 2007, 06:59 PM
Hello:
You need to stop and then disable yum-updatesd
Open a terminal and log in as root using
su -
yourpassword
then type
chkconfig yum-updatesd off

then type
chkconfig --list | grep 5:on
to confirm that it is turned off
Then type
yum clean all
yum clean metadata
yum clean dbcache
and then try your smart package manager again

If you still have the same error as before then from a terminal logged in as root
Follow the instructions posted here under Post No.2
http://forum.fedoraforum.org/forum/showthread.php?t=146780

Seve

Damn, you are good! And I learned a new command!

Seve
6th February 2007, 07:37 PM
Hello JN4:
You are making me nervous ..... what did I do now ?


Seve

d347hm4n
6th February 2007, 07:46 PM
Well i followed what you wrote, this is what the output is, i don't think it's worked for some reason, here is the session from the konsole



[root@localhost ~]# chkconfig yum-updatesd off
[root@localhost ~]# chkconfig --list | grep 5:on
acpid 0:off 1:off 2:off 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
mcstrans 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nvidia-glx 0:off 1:off 2:on 3:on 4:on 5:on 6:off
readahead_early 0:off 1:off 2:on 3:on 4:on 5:on 6:off
readahead_later 0:off 1:off 2:off 3:on 4:off 5:on 6:off
restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
smartd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
wine 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]# yum clean all
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 205, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, 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
[root@localhost ~]# yum clean metadata
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 205, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, 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
[root@localhost ~]# yum clean dbcache
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 205, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, 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
[root@localhost ~]#

d347hm4n
6th February 2007, 07:52 PM
btw this place sure is plenty helpful, seve, you've helped me greatly in the past

Seve
6th February 2007, 08:05 PM
Hello:
Okay, no problem ....... at least not yet :)

Open a terminal and log in as root using
su -
yourpassword

then type
rm /var/lib/rpm/__db*
when it's finished exit and reboot
When FC boots up ... open a Terminal and log in as root using
su -
yourpassword
then type
rpm --rebuilddb
when that is finished type
yum check-update
and you should be good to go

Seve

JN4OldSchool
6th February 2007, 08:20 PM
Hello JN4:
You are making me nervous ..... what did I do now ?


Seve

No need to be nervous, I am complimenting you on your good work. As usual you have a quick, direct approach and a no nonsense solution while I would have them scrambling all over the place opening GUI tools and second guessing myself. I was doing good for a while there but lately have been giving bad advice. Maybe I'm getting too cocky? I am sitting back and observing more and learning a great deal. Thanks.

Seve
6th February 2007, 08:25 PM
Hello JN4:
Thanks for calming my feeble nerves :)

You always give great advice .... what are you worried about ?

Sheesh ... you help tons :)

Seve

d347hm4n
6th February 2007, 10:15 PM
sweet thx for the commands, worked a treat :D, now to fix my aiglx, would a simple uninstall reinstall solve problems or would it make more problems. Thx a heap btw