Description of problem: The error seems to occur when trying to build packages using mock. Not sure how or why but it occurs after a failure to build. Accompanying error that always occurs since Fedora 19: Start: Outputting list of installed packages ERROR: Exception(/home/dcpyle/rpmbuild/SRPMS/directfb-1.6.2-3.fc19.src.rpm) Config(fedora-20-i386) 1 minutes 7 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-20-i386/result ERROR: Command failed. See logs for output. # /usr/bin/repoquery -c /tmp/tmp3NRSAf --installed -a --qf '%{nevra} %{buildtime} %{size} %{pkgid} %{yumdb_info.from_repo}' > /var/lib/mock/fedora-20-i386/result/installed_pkgs Version-Release number of selected component: yum-utils-1.1.31-17.fc20 Additional info: reporter: libreport-2.1.7 cmdline: /usr/bin/python -tt /usr/bin/repoquery -c /tmp/tmpKx1sne --installed -a --qf '%{nevra} %{buildtime} %{size} %{pkgid} %{yumdb_info.from_repo}' dso_list: yum-3.4.3-106.fc20.noarch executable: /usr/bin/repoquery kernel: 3.11.3-301.fc20.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: config.py:1187:_getsysver:YumBaseError: Error: rpmdb open failed Traceback (most recent call last): File "/usr/bin/repoquery", line 1543, in <module> main(sys.argv) File "/usr/bin/repoquery", line 1413, in main repoq.conf File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1054, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 344, in _getConfig startupconf = config.readStartupConfig(fn, root, releasever) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1036, in readStartupConfig startupconf.distroverpkg) File "/usr/lib/python2.7/site-packages/yum/config.py", line 1187, in _getsysver raise Errors.YumBaseError("Error: " + str(e)) YumBaseError: Error: rpmdb open failed Local variables in innermost frame: installroot: '/var/lib/mock/fedora-20-i386/root/' e: error('rpmdb open failed',) ts: <rpmUtils.transaction.TransactionWrapper instance at 0x14b0878> distroverpkg: 'redhat-release' Potential duplicate: bug 996027
Created attachment 808579 [details] File: backtrace
Created attachment 808580 [details] File: environ
This seems to be a bug in mockbuild. It runs the package_state plugin without a properly initialized installroot, and this results in repoquery exception. https://bugzilla.redhat.com/show_bug.cgi?id=982043#c21 *** This bug has been marked as a duplicate of bug 982043 ***