Description of problem: dnf update of rawhide 20130410 failed on: Cleanup : lvm2-2.02.98-5.fc19.x86_64 101/157 ^CNon-fatal POSTUN scriptlet failure in rpm package lvm2-2.02.98-5.fc19.x86_64 ^C was mine as cleanup frozen over 30 minutes. No dnf-complete-transaction available it seems, so looked around and tried dnf history folled by dnf history info 37 and then traceback (copied here just in case). [kunkelc@P5K-EWIFI <20> ~]$ sudo dnf history info 37 Transaction ID : 37 Begin time : Wed Apr 10 13:53:10 2013 Begin rpmdb : 2233:a15bce5e2290e1126f1e81f190362dcfeaff8ee6 User : Clyde E. Kunkel <kunkelc> Return-Code : ** Aborted ** Command Line : update Transaction performed with: Traceback (most recent call last): File "/bin/dnf", line 35, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 304, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 132, in main result, resultmsgs = cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1386, in run return self.command.doCommand(self.base.basecmd, self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 2236, in doCommand ret = self.base.historyInfoCmd(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2042, in historyInfoCmd self._historyInfoCmd(tid, pats) File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2178, in _historyInfoCmd _simple_pkg(hpkg, 4, was_installed=True, pkg_max_len=pkg_max_len) File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2075, in _simple_pkg ipkgs = dnf.queries.installed_by_name(self.sack, hpkg.name) File "/usr/lib/python2.7/site-packages/dnf/queries.py", line 205, in installed_by_name get_query=get_query) File "/usr/lib/python2.7/site-packages/dnf/queries.py", line 179, in _construct_result q = sack.query() AttributeError: 'NoneType' object has no attribute 'query' Version-Release number of selected component: dnf-0.3.2-1.gitf3818b4.fc20 Additional info: cmdline: /usr/bin/python /bin/dnf history info 37 executable: /bin/dnf kernel: 3.9.0-0.rc6.git0.1.fc20.x86_64 runlevel: N 5 uid: 0 ureports_counter: 1 Truncated backtrace: queries.py:179:_construct_result:AttributeError: 'NoneType' object has no attribute 'query' Traceback (most recent call last): File "/bin/dnf", line 35, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 304, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 132, in main result, resultmsgs = cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1386, in run return self.command.doCommand(self.base.basecmd, self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 2236, in doCommand ret = self.base.historyInfoCmd(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2042, in historyInfoCmd self._historyInfoCmd(tid, pats) File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2178, in _historyInfoCmd _simple_pkg(hpkg, 4, was_installed=True, pkg_max_len=pkg_max_len) File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2075, in _simple_pkg ipkgs = dnf.queries.installed_by_name(self.sack, hpkg.name) File "/usr/lib/python2.7/site-packages/dnf/queries.py", line 205, in installed_by_name get_query=get_query) File "/usr/lib/python2.7/site-packages/dnf/queries.py", line 179, in _construct_result q = sack.query() AttributeError: 'NoneType' object has no attribute 'query' Local variables in innermost frame: ignore_case: False patterns: [u'dnf'] latest_only: False glob: False get_query: False sack: None include_repo: '@System' exclude_repo: None flags: [] downgrades_only: False updates_only: False
Created attachment 733825 [details] File: backtrace
Created attachment 733826 [details] File: core_backtrace
Created attachment 733827 [details] File: environ
Hi Clyde, thanks for reporting this. I accidentally stumbled upon this traceback on Wednesday and can confirm this is already fixed on master: https://github.com/akozumpl/dnf/commit/15a04cacad1d1b939c6e566120fd4d837338354e Please just wait for the next dnf build (0.3.3).
Thanks for the fix. A couple of questions: 1) On which mail list is dnf discussed? 2) Is there a dnf-complete-transaction? TIA
(In reply to comment #5) > Thanks for the fix. A couple of questions: > > 1) On which mail list is dnf discussed? http://lists.baseurl.org/mailman/listinfo/yum-devel and it's best to use "[dnf]" prefix in the message subject. > 2) Is there a dnf-complete-transaction? Not yet, if you want to have some impact on the speed of reintroduction please open an RFE bugzilla. This is the complete list of the known and currently unsolved DNF issues: https://bugzilla.redhat.com/buglist.cgi?classification=Fedora&query_format=advanced&bug_status=NEW&bug_status=ASSIGNED&component=dnf&product=Fedora&list_id=1274196
dnf-0.3.3-3.git91ba5e0.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/dnf-0.3.3-3.git91ba5e0.fc19
Package dnf-0.3.3-3.git91ba5e0.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.3.3-3.git91ba5e0.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-6012/dnf-0.3.3-3.git91ba5e0.fc19 then log in and leave karma (feedback).
dnf-0.3.9-1.giteff4c49.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/dnf-0.3.9-1.giteff4c49.fc19
dnf-0.3.9-1.giteff4c49.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.