Bug 529038
| Summary: | repoquery: weird traceback on "can't open db" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bill Nottingham <notting> |
| Component: | yum-utils | Assignee: | Seth Vidal <skvidal> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | james.antill, maxamillion, pmatilai, rvokal, tim.lauridsen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-10-14 18:16:29 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 528233 *** |
Description of problem: [root@nostromo ~]# repoquery -C -qi nmap rpmdb: Thread/process 14547/139850993047296 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/usr/bin/repoquery", line 853, in <module> main(sys.argv) File "/usr/bin/repoquery", line 758, in main repoq.doConfigSetup(debuglevel=initnoise, init_plugins=opts.plugins) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 199, in doConfigSetup return self.conf File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 723, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 249, in _getConfig startupconf = config.readStartupConfig(fn, root) File "/usr/lib/python2.6/site-packages/yum/config.py", line 805, in readStartupConfig startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.6/site-packages/yum/config.py", line 916, in _getsysver if sys.hexversion < 0x02050000: NameError: global name 'sys' is not defined Seems like we should catch this error earlier. (Also, it's queriyng a repo, why should it care about the local rpm db?) Version-Release number of selected component (if applicable): yum-utils-1.1.23-3.fc12.noarch How reproducible: 100% Steps to Reproduce: 1. Screw up your db environment files 2. Run repoquery