Page 1 of 1

[UNSOLVED] db4 error(-30974) while trying to update

PostPosted: Mar 16th, '12, 05:09
by mrigs
Hi,

I am getting some errors while trying to run update on my Mageia 2 Beta 1 installation.

Code: Select all
[root@matrix mrigs]# urpmi --auto-update
medium "Core Updates" is up-to-date
medium "Core Backports" is up-to-date
medium "Nonfree Release" is up-to-date
medium "Nonfree Updates" is up-to-date
medium "Nonfree Backports" is up-to-date
medium "Tainted Release" is up-to-date
medium "Tainted Updates" is up-to-date
medium "Tainted Backports" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Core Updates (distrib31)" is up-to-date
error: rpmdb: Thread/process 14154/3073590976 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
unable to open rpmdb


Here is how I tried to troubleshoot -

[*]Tried to change the update mirrors - hit upon the "unable to open rpmdb" error.
[*]Searched the mageia forum with "db4 error(-30974)" - no earlier posts found.

Any pointers to solving the issue?

** Edit: Currently marking as [unfixed]. Seems to be related to https://forums.mageia.org/en/viewtopic.php?f=15&t=2063

-regards,

Re: db4 error(-30974) while trying to update

PostPosted: Mar 16th, '12, 05:16
by mrigs
I found this posted as a solution in a few places -

Code: Select all
rpmdb --rebuilddb


And it solved my problem too. I was able to run the update. Hope this is helpful for any that encounter the issue. Marking the post as solved.

-regards,

Re: [SOLVED] db4 error(-30974) while trying to update

PostPosted: Mar 16th, '12, 13:56
by doktor5000
mrigs wrote:[*]Searched the mageia forum with "db4 error(-30974)" - no earlier posts found.

"db4 error" would have been enough to find the relevant thread: viewtopic.php?f=15&t=2063

Re: [SOLVED] db4 error(-30974) while trying to update

PostPosted: Mar 16th, '12, 17:03
by mrigs
Yes. I can see that it's an unresolved issue also being tracked with a bug. The problem seems to have resurfaced for me too, today morning (PST). I'll remove the [SOLVED] tag.

Re: [unfixed] db4 error(-30974) while trying to update

PostPosted: Mar 16th, '12, 19:33
by wobo
Please show the output of
rpm -qa | grep rpmdrake

rpmdrake should have version 5.30-2.mga2 - with this version the problem was fixed here.

Re: [unfixed] db4 error(-30974) while trying to update

PostPosted: Mar 17th, '12, 04:39
by mrigs
Yup, I get rpmdrake-5.30-2.mga2.