Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1599185 - dnf update crashed with exception: TransactionItem state is not set
Summary: dnf update crashed with exception: TransactionItem state is not set
Keywords:
Status: CLOSED DUPLICATE of bug 1629340
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-09 06:57 UTC by Marek Blaha
Modified: 2019-03-08 06:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-08 06:43:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dnf.log (174.32 KB, text/plain)
2018-07-09 06:57 UTC, Marek Blaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1629340 0 unspecified CLOSED PackageKit update crashes at end of transaction with "TransactionItem state is not set: grub2-tools-1:2.02-57.fc29.x86_6... 2022-05-16 11:32:56 UTC

Internal Links: 1629340

Description Marek Blaha 2018-07-09 06:57:45 UTC
Created attachment 1457375 [details]
dnf.log

version:
dnf-3.0.1-1.fc28.noarch
libdnf-0.15.1-1.fc28.x86_64

Description of problem:

$ dnf update
.
.
.
Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 123, in cli_run
    ret = resolving(cli, base)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 154, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 234, in do_transaction
    super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 904, in do_transaction
    self._run_transaction(cb=cb)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 1048, in _run_transaction
    self._verify_transaction(cb.verify_tsi_package)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 1084, in _verify_transaction
    self.history.end(rpmdbv, 0)
  File "/usr/lib/python3.6/site-packages/dnf/db/history.py", line 490, in end
    bool(return_code)
  File "/usr/lib64/python3.6/site-packages/libdnf/transaction.py", line 742, in endTransaction
    return _transaction.Swdb_endTransaction(self, dtEnd, rpmdbVersionEnd, state)
RuntimeError: C++ std::exception: TransactionItem state is not set: vulkan-1.1.73.0-1.fc28.x86_64

There was a lot of tracebacks when running scriptlets like:

2018-07-09T06:27:01Z CRITICAL Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 228, in callback
    return tsi.pkg, tsi.action, tsi
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 310, in _uninst_progress
    self.fd.close()
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 200, in _extract_cbkey
    return None
RuntimeError: TransactionItem not found for key: grub2-tools-extra

All these errors can be seen in attached dnf.log.

Comment 1 Randy Barlow 2018-07-17 05:46:29 UTC
I can confirm this problem happens on Rawhide as well. After a dnf upgrade there, I saw the same traceback:

<snip>
  Verifying        : kernel-4.18.0-0.rc0.git9.1.fc29.x86_64                                                                                                                                                                           208/210 
  Verifying        : kernel-core-4.18.0-0.rc0.git9.1.fc29.x86_64                                                                                                                                                                      209/210 
  Verifying        : kernel-modules-4.18.0-0.rc0.git9.1.fc29.x86_64                                                                                                                                                                   210/210 
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 123, in cli_run
    ret = resolving(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 154, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 234, in do_transaction
    super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 904, in do_transaction
    self._run_transaction(cb=cb)
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 1048, in _run_transaction
    self._verify_transaction(cb.verify_tsi_package)
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 1084, in _verify_transaction
    self.history.end(rpmdbv, 0)
  File "/usr/lib/python3.7/site-packages/dnf/db/history.py", line 490, in end
    bool(return_code)
  File "/usr/lib64/python3.7/site-packages/libdnf/transaction.py", line 742, in endTransaction
    return _transaction.Swdb_endTransaction(self, dtEnd, rpmdbVersionEnd, state)
RuntimeError: C++ std::exception: TransactionItem state is not set: grub2-tools-1:2.02-37.fc29.x86_64

Comment 2 Daniel Mach 2019-03-08 06:43:16 UTC

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


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