Bug 1302510 - dnf: unhandled exception for dnf history info command
Summary: dnf: unhandled exception for dnf history info command
Status: CLOSED DUPLICATE of bug 1303149
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2016-01-28 02:44 UTC by Marek Doležel
Modified: 2016-02-01 19:53 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2016-02-01 13:04:43 UTC

Attachments (Terms of Use)
DNF backtrace (1.33 KB, text/plain)
2016-01-28 02:44 UTC, Marek Doležel
no flags Details

System ID Priority Status Summary Last Updated
Red Hat Bugzilla 1239274 None None None Never

Internal Links: 1239274

Description Marek Doležel 2016-01-28 02:44:01 UTC
Created attachment 1118979 [details]
DNF backtrace

Description of problem: Unhandled exception occurs when running dnf history info command. 

Version-Release number of selected component (if applicable):1.1.6-1.fc24

How reproducible: Always

Steps to Reproduce:
1. run sudo dnf history info 
sudo dnf history 2 # crashes regardless of actual transaction id

Actual results: Exception is not handled and program "crashes".

Expected results:Show information about specified transaction.

Additional info:

Comment 1 Erick 2016-01-29 05:37:49 UTC
I have the described issue since this morning. Also to mention that a repodata directory was mislabeled in SELinux. However relabeling with restorecon didn't fix the issue with dnf history info.

Comment 2 Erick 2016-01-29 07:07:37 UTC
Also another AVC error re performing finds on repodata directories was also found. Fixing this error also didn fix the dnf history info command.

Comment 3 Vít Ondruch 2016-01-29 09:04:57 UTC
I observed the same issue. Disappeared after first installation. Now it seems I can use "history" as I wish.

Comment 4 Vít Ondruch 2016-01-29 09:09:38 UTC
Actually, I was wrong. I can see the history of last operation, but can't see the "last-1". I suspect this will be related to bug 1239274 (yes, I can see the cmdline in output now).

Comment 5 Erick 2016-01-29 10:06:19 UTC
same situation here as at Vit's.

Comment 6 fulminemizzega 2016-01-29 12:42:56 UTC
Vit, Erick,
I'm seeing a different behaviour: dnf history info of every transaction happened after dnf update to 1.1.6 (that fixed bug 1239274) works fine. If you look at the attachment I uploaded in that bug (I'm sorry I did the wrong thing, should I also attach the same file on this bug report?), I did update dnf in transaction 132, and dnf history info works with everything with id >= 133. If I instead try to see info of every id < 133, I get the error.
I did check that every transaction with id < 133 does not work doing this:
for i in {1..132}; do dnf history info $i 2>&1 | grep AttributeError ; done >> output
then wc -l  and got 132 lines.
If you still look at my dnf history attachment, I was running F22 until transaction 92, where you can see that I did the upgrade to F23. So even transactions done with dnf in F22 that didn't have bug 1239274 do not work with dnf history info.

Comment 7 Honza Silhan 2016-02-01 13:04:43 UTC

*** This bug has been marked as a duplicate of bug 1303149 ***

Comment 8 srakitnican 2016-02-01 13:44:20 UTC
By downgrading to dnf-plugins-core-0.1.15-1.fc23.noarch.rpm both history info and history command line works.


Comment 9 srakitnican 2016-02-01 13:51:58 UTC
Never mind, it is working only for last transaction, still the same traceback.

Comment 10 Marek Doležel 2016-02-01 19:53:00 UTC
(In reply to Jan Silhan from comment #7)
> *** This bug has been marked as a duplicate of bug 1303149 ***

I think it should be the other way. As this bug was reported earlier.

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