Bug 286761 - need to run rpm --initdb on new tree build
need to run rpm --initdb on new tree build
Product: Fedora
Classification: Fedora
Component: pungi (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: David Cantrell
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-09-11 15:34 EDT by David Cantrell
Modified: 2013-01-09 20:41 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-11 15:52:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Cantrell 2007-09-11 15:34:20 EDT
Trackback during run:

# pungi --nosource --config=/home/dcantrel/recovery/kickstart/mortise.cfg
Pungi.Gather:INFO: Adding repo rawhide
Pungi.Gather:INFO: URL for repo rawhide is
Pungi.Gather:INFO: Adding repo skunkware
Pungi.Gather:INFO: URL for repo skunkware is
Pungi.Gather:INFO: Adding repo skunkware-noarch
Pungi.Gather:INFO: URL for repo skunkware-noarch is
Pungi.Gather:INFO: Getting sacks for arches ['athlon', 'i686', 'i586', 'i486',
'i386', 'noarch', 'src']
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in ./work/i386/yumroot/var/lib/rpm
Traceback (most recent call last):
  File "/usr/bin/pungi", line 208, in <module>
  File "/usr/bin/pungi", line 106, in main
  File "/usr/lib/python2.5/site-packages/pypungi/gather.py", line 243, in
  File "/usr/lib/python2.5/site-packages/pypungi/gather.py", line 188, in
    if not self.ayum.comps.has_group(group.name):
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 537, in <lambda>
    comps = property(fget=lambda self: self._getGroups(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 512, in _getGroups
    pkglist = self.rpmdb.simplePkgList()
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 158, in simplePkgList
    return self.pkglist
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 59, in _get_pkglist
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 243, in
    for (hdr, idx) in self._all_packages():
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 214, in _all_packages
    mi = ts.dbMatch()
TypeError: rpmdb open failed

Could this be solved by running 'rpm -r ./work/i386/yumroot/ --initdb'?
Comment 1 Jesse Keating 2007-09-11 15:52:42 EDT
this is actually a different bug, in using the default dest dir.  I have a patch
that fixes this.  A work around is to define a --destdir at the command line.

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