RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 590104 - installroot rpmdb errors from livecd-tools
Summary: installroot rpmdb errors from livecd-tools
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: livecd-tools
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 705163
TreeView+ depends on / blocked
 
Reported: 2010-05-07 18:07 UTC by Dennis Gregorovic
Modified: 2013-12-18 22:47 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-18 22:47:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dennis Gregorovic 2010-05-07 18:07:20 UTC
livecd-tools-031-1.7.el6

After installing the chroot, there's a bunch of these errors:

rpmdb: Build signature doesn't match environment
error: db3 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages database in /var/lib/rpm

In the install method of creator.py, you probably want to do this at the end:

for path in glob.glob('%s/var/lib/rpm/__db*' % self._instroot):
    os.unlink(path)

Comment 1 RHEL Program Management 2010-05-07 18:50:59 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Alan Pevec 2010-07-06 12:50:29 UTC
Workaround could be to put this in RHEL6 livecd kickstart %post:

# cleanup rpmdb to allow non-matching host and chroot RPM versions
rm -f /var/lib/rpm/__db*

Comment 5 RHEL Program Management 2011-01-07 15:59:10 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 7 Brian Lane 2011-06-13 20:04:37 UTC
Are these errors from livecd-creator? Or after booting the image? We are already calling _cleanupRpmdbLocks at the end of ayum.runInstall() so there should not be any of these files on the target image. I checked a F15 minimal iso I just created and /var/lib/rpm/ doesn't have any __db* files in it.

Comment 8 David Cantrell 2011-07-25 20:10:56 UTC
We can't reproduce this problem, closing it out.


Note You need to log in before you can comment on or make changes to this bug.