Bug 6937

Summary: rpmdrake crashed
Product: Mageia Reporter: Raphael Groner <raphgro>
Component: SecurityAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Raphael Groner 2012-08-02 21:42:12 CEST
The "rpmdrake" program crashed. Drakbug-14.31 caught it.

updated to latest packages.

$ rpm -qa --last |head -20
perl-Gtk2-1.244.0-2.mga3.i586                 Do 02 Aug 2012 21:31:01 CEST
perl-Glib-1.262.0-2.mga3.i586                 Do 02 Aug 2012 21:30:48 CEST
glibc-devel-2.16-6.mga3.i586                  Do 02 Aug 2012 21:30:47 CEST
rpm-build-4.10.0-9.mga3.i586                  Do 02 Aug 2012 21:30:46 CEST
python-rpm-4.10.0-9.mga3.i586                 Do 02 Aug 2012 21:30:46 CEST
perl-URPM-4.10-2.mga3.i586                    Do 02 Aug 2012 21:30:46 CEST
rpm-4.10.0-9.mga3.i586                        Do 02 Aug 2012 21:30:45 CEST
librpm3-4.10.0-9.mga3.i586                    Do 02 Aug 2012 21:30:45 CEST
libdb5.3-5.3.21-1.mga3.i586                   Do 02 Aug 2012 21:30:45 CEST
glibc-2.16-6.mga3.i586                        Do 02 Aug 2012 21:30:44 CEST
libwnck-2.31.0-2.mga3.i586                    So 29 Jul 2012 18:50:37 CEST
libwnck1_22-2.31.0-2.mga3.i586                So 29 Jul 2012 18:50:37 CEST
libsystemd-journal0-187-6.mga3.i586           So 29 Jul 2012 18:50:27 CEST
libsystemd-id128_0-187-6.mga3.i586            So 29 Jul 2012 18:50:27 CEST
chkconfig-1.3.59-2.mga3.i586                  So 29 Jul 2012 18:50:27 CEST
libgtksourceview-gir3.0-3.5.2-1.mga3.i586     So 29 Jul 2012 18:50:26 CEST
libgtksourceview3.0_0-3.5.2-1.mga3.i586       So 29 Jul 2012 18:50:26 CEST
gtksourceview-3.5.2-1.mga3.i586               So 29 Jul 2012 18:50:26 CEST
libupower-glib1-0.9.17-1.mga3.i586            So 29 Jul 2012 18:50:25 CEST
upower-0.9.17-1.mga3.i586                     So 29 Jul 2012 18:50:24 CEST


Couldn't open RPM DB () at /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/open_db.pm line 74.
Perl's trace:
standalone::bug_handler() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/open_db.pm:74
Rpmdrake::open_db::open_rpm_db() called from /usr/sbin/rpmdrake:555
main::__ANON__() called from /usr/lib/libDrakX/mygtk2.pm:1424
mygtk2::main() called from /usr/lib/libDrakX/ugtk2.pm:767
ugtk2::main() called from /usr/lib/perl5/vendor_perl/5.14.2/Rpmdrake/gui.pm:596
Rpmdrake::gui::ask_browse_tree_given_widgets_for_rpmdrake() called from /usr/sbin/rpmdrake:780
main::run_treeview_dialog() called from /usr/sbin/rpmdrake:804

Theme name: QtCurve
Kernel version = 3.5.0-desktop-1.mga3
Distribution=Mageia release 3 (Cauldron) for i586
CPU=Intel(R) Atom(TM) CPU N550   @ 1.50GHz
Comment 1 Raphael Groner 2012-08-02 21:57:02 CEST
# LC_ALL=C urpmi --auto-update
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Core Backports (distrib7)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Nonfree Backports (distrib17)" is up-to-date
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 -  (-30969)
error: cannot open Packages database in /var/lib/rpm

# rm -f /var/lib/rpm/__db*

# LC_ALL=C urpmi --auto-update

⦠all fine
Comment 2 Manuel Hiebel 2012-08-03 00:16:12 CEST
same original issue I guess

*** This bug has been marked as a duplicate of bug 6921 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE

Comment 3 Raphael Groner 2012-08-04 17:16:55 CEST
It is not the same error message. Why do you think it's the same issue?
After some short internet research, I found out that the above rm command does fix the version mismatch, cause the database is regenerated. The other bug says that some index is broken and suggests another command. Rebuilding the database after it's broken fixes several symptoms but not the reasons.