Bug 1059184
Summary: | [abrt] yum: yumcommands.py:2984:_hcmd_stats:TypeError: 'bool' object has no attribute '__getitem__' | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Arsen B. <tha.btg> | ||||||
Component: | yum | Assignee: | Packaging Maintenance Team <packaging-team-maint> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 20 | CC: | admiller, ffesti, jzeleny, packaging-team-maint | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | abrt_hash:5f582054e74e63ba8f5836bdfacb645bf0cfd46b | ||||||||
Fixed In Version: | yum-3.4.3-137.fc19 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-02-28 18:29:43 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: | |||||||||
Attachments: |
|
Description
Arsen B.
2014-01-29 11:41:48 UTC
Created attachment 857015 [details]
File: backtrace
Created attachment 857016 [details]
File: environ
This should never happen, unless something has truncated, locked, or damaged the history file. (it has been already stat()'d correctly). Not sure how to reproduce, but a fix to print an error message instead is simple: commit 3eb4cf70be01ecf4484feeb6ce6233b417889f8f Author: Zdenek Pavlas <zpavlas> Date: Wed Jan 29 15:04:42 2014 +0100 Fix a possible "yum history stats" tb. BZ 1059184 diff --git a/yumcommands.py b/yumcommands.py index 8bba0c5..4214383 100644 --- a/yumcommands.py +++ b/yumcommands.py @@ -2976,6 +2976,9 @@ class HistoryCommand(YumCommand): print _("Transactions:"), 0 return counts = base.history._pkg_stats() + if not counts: + msg = _("could not open history file: %s") % base.history._db_file + raise yum.Errors.MiscError, msg trans_1 = base.history.old("1")[0] print _("Transactions:"), trans_N.tid print _("Begin time :"), time.ctime(trans_1.beg_timestamp) @Zdeněk Pavlas thanks, there is no more error message after patching yumcommands.py Hmm, the patch should have only got rid of the traceback. Seems it really was some transient failure (locking issue, probably). We'd need a reproducer to fix the root cause. yum-3.4.3-135.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/yum-3.4.3-135.fc20 yum-3.4.3-135.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/yum-3.4.3-135.fc19 Package yum-3.4.3-135.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing yum-3.4.3-135.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2482/yum-3.4.3-135.fc20 then log in and leave karma (feedback). yum-3.4.3-137.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. yum-3.4.3-137.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |