# /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'xulrunner-devel-unstable' rpmdb: Program version 4.5 doesn't match environment version 4.7
[root@delphi ~]# cat /etc/fedora-release; rpm -q rpm Fedora release 10 (Cambridge) rpm-4.6.0-1.fc10.x86_64 mock-0.9.14-1.fc10.noarch (Upgraded rpm and mock.)
https://bugzilla.redhat.com/show_bug.cgi?id=487430 Filed here.
Is anyone else seeing this mock failure in recent days?
https://bugzilla.redhat.com/show_bug.cgi?id=484479 Earlier bug, F-10 x86-64 can't build F-10 i386
Warren Togami wtogami@redhat.com
Warren Togami wrote:
# /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'xulrunner-devel-unstable' rpmdb: Program version 4.5 doesn't match environment version 4.7
[root@delphi ~]# cat /etc/fedora-release; rpm -q rpm Fedora release 10 (Cambridge) rpm-4.6.0-1.fc10.x86_64 mock-0.9.14-1.fc10.noarch (Upgraded rpm and mock.)
https://bugzilla.redhat.com/show_bug.cgi?id=487430 Filed here.
Is anyone else seeing this mock failure in recent days?
I just replaced my centos 5.2 mock builder with a fresh/updated F-10 install so I could build rawhide packages. Not trouble for me.
rpm-4.6.0-1.fc10.x86_64 mock-0.9.13-1.fc10.noarch
Hi,
* Warren Togami wtogami@redhat.com [2009-02-25 18:01]:
I'm having the same problem:
rpmdb: Program version 4.5 doesn't match environment version 4.7 error: db4 error(-30972) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch error: cannot open Packages index using db3 - (-30972) error: cannot open Packages database in /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm
I have the latest F-10 versions of mock, rpm, and yum:
mock-0.9.13-1.fc10.noarch rpm-4.6.0-1.fc10.x86_64 yum-3.2.21-2.fc10.noarch
The versions of rpm and mock are the same as what Orion says work for him. What am I doing wrong?
Thanks,
Andrew
I'm having the same problem:
rpmdb: Program version 4.5 doesn't match environment version 4.7 error: db4 error(-30972) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch error: cannot open Packages index using db3 - (-30972) error: cannot open Packages database in /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm
When I had those errors on rawhide itself, what was necessary was: rm -f /var/lib/rpm/__db.* Perhaps: rm -f /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm/__db.* would do it?
Roland McGrath roland@redhat.com writes:
I'm having the same problem:
rpmdb: Program version 4.5 doesn't match environment version 4.7 error: db4 error(-30972) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch error: cannot open Packages index using db3 - (-30972) error: cannot open Packages database in /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm
When I had those errors on rawhide itself, what was necessary was: rm -f /var/lib/rpm/__db.* Perhaps: rm -f /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm/__db.* would do it?
FWIW, mock seems to work for me in a fresh-as-of-yesterday F10 installation. If Roland's idea doesn't work, try blowing away *everything* under /var/lib/mock and see where that gets you.
regards, tom lane
On Thu, 2009-03-05 at 00:15 -0500, Tom Lane wrote:
Roland McGrath roland@redhat.com writes:
I'm having the same problem:
rpmdb: Program version 4.5 doesn't match environment version 4.7 error: db4 error(-30972) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch error: cannot open Packages index using db3 - (-30972) error: cannot open Packages database in /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm
When I had those errors on rawhide itself, what was necessary was: rm -f /var/lib/rpm/__db.* Perhaps: rm -f /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm/__db.* would do it?
FWIW, mock seems to work for me in a fresh-as-of-yesterday F10 installation. If Roland's idea doesn't work, try blowing away *everything* under /var/lib/mock and see where that gets you.
You could try to run mock as an unprivileged user that is part of the mock group. I was having the same issues when running mock as root user, but it works once I run it with normal user.
https://www.redhat.com/archives/fedora-buildsys-list/2009-February/msg00026....
--lucian
Lucian Langa cooly@gnome.eu.org writes:
You could try to run mock as an unprivileged user that is part of the mock group. I was having the same issues when running mock as root user, but it works once I run it with normal user.
Well, building packages as root is bad form anyway. Aside from any security hazards you might be exposing yourself to, I know of packages that flat out won't build as root (their embedded self-tests reject the case).
regards, tom lane
On Thu, 2009-03-05 at 08:38 +0200, Lucian Langa wrote:
On Thu, 2009-03-05 at 00:15 -0500, Tom Lane wrote:
Roland McGrath roland@redhat.com writes:
I'm having the same problem:
rpmdb: Program version 4.5 doesn't match environment version 4.7 error: db4 error(-30972) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch error: cannot open Packages index using db3 - (-30972) error: cannot open Packages database in /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm
When I had those errors on rawhide itself, what was necessary was: rm -f /var/lib/rpm/__db.* Perhaps: rm -f /var/lib/mock/fedora-11-x86_64/root/var/lib/rpm/__db.* would do it?
FWIW, mock seems to work for me in a fresh-as-of-yesterday F10 installation. If Roland's idea doesn't work, try blowing away *everything* under /var/lib/mock and see where that gets you.
You could try to run mock as an unprivileged user that is part of the mock group.
That appears to have been my problem. I don't know what I was thinking trying to build as root :)
Thanks,
Andrew