Bug 1608685 - [abrt] dnf: endTransaction(): transaction.py:742:endTransaction:RuntimeError: C++ std::exception: TransactionItem state is not set: grub2-tools-1:2.02-42.fc29.x86_64
Summary: [abrt] dnf: endTransaction(): transaction.py:742:endTransaction:RuntimeError:...
Keywords:
Status: CLOSED DUPLICATE of bug 1629340
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Daniel Mach
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:54fcf830f396f3944e1f878b490...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-26 07:20 UTC by Erik Faye-Lund
Modified: 2019-03-08 06:44 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:44:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: _var_log_dnf.log (1.84 MB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: backtrace (1.92 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: cgroup (389 bytes, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: cpuinfo (1.39 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: dnf-makecache.log (33.63 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: environ (2.19 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: mountinfo (3.91 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: namespaces (129 bytes, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: open_fds (1.44 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
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... 2021-02-22 00:41:40 UTC

Internal Links: 1629340

Description Erik Faye-Lund 2018-07-26 07:20:45 UTC
Version-Release number of selected component:
dnf-3.0.4-1.fc29

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/dnf update
crash_function: endTransaction
exception_type: RuntimeError
executable:     /usr/bin/dnf
interpreter:    python3-3.7.0-3.fc29.x86_64
kernel:         4.18.0-0.rc4.git4.1.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
transaction.py:742:endTransaction:RuntimeError: C++ std::exception: TransactionItem state is not set: grub2-tools-1:2.02-42.fc29.x86_64

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
    timer()
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 1048, in _run_transaction
    logger.critical(e[0])  # should this be 'to_unicoded'?
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 1084, in _verify_transaction
    q = rpmdb_sack.query().installed()
  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-42.fc29.x86_64

Local variables in innermost frame:
self: <libdnf.transaction.Swdb; proxy of <Swig Object of type 'libdnf::Swdb *' at 0x7f03593d4d20> >
dtEnd: 1532525499
rpmdbVersionEnd: '2239:7a93484dd54bf0c720c1bcfd71c84d8b93bf0f0f'
state: True

Comment 1 Erik Faye-Lund 2018-07-26 07:21:03 UTC
Created attachment 1470611 [details]
File: _var_log_dnf.log

Comment 2 Erik Faye-Lund 2018-07-26 07:21:05 UTC
Created attachment 1470612 [details]
File: backtrace

Comment 3 Erik Faye-Lund 2018-07-26 07:21:06 UTC
Created attachment 1470613 [details]
File: cgroup

Comment 4 Erik Faye-Lund 2018-07-26 07:21:08 UTC
Created attachment 1470614 [details]
File: cpuinfo

Comment 5 Erik Faye-Lund 2018-07-26 07:21:10 UTC
Created attachment 1470615 [details]
File: dnf-makecache.log

Comment 6 Erik Faye-Lund 2018-07-26 07:21:12 UTC
Created attachment 1470616 [details]
File: environ

Comment 7 Erik Faye-Lund 2018-07-26 07:21:14 UTC
Created attachment 1470617 [details]
File: mountinfo

Comment 8 Erik Faye-Lund 2018-07-26 07:21:16 UTC
Created attachment 1470618 [details]
File: namespaces

Comment 9 Erik Faye-Lund 2018-07-26 07:21:17 UTC
Created attachment 1470619 [details]
File: open_fds

Comment 10 Jan Kurik 2018-08-14 08:41:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 11 Paul DeStefano 2018-08-31 05:41:12 UTC
Hmm, this seems to be preventing me from successful update to F30 from F29.


During dnf distro-sync, I got several repeats of this error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 216, in callback
    self._elemProgress(key, amount)
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 259, in _elemProgress
    _, _, tsi = self._extract_cbkey(key)
  File "/usr/lib/python3.6/site-packages/dnf/yum/rpmtrans.py", line 200, in _extract_cbkey
    raise RuntimeError("TransactionItem not found for key: %s" % cbkey)
RuntimeError: TransactionItem not found for key: grub2-tools-efi

And the same error occurred for grub2-tools-1:2.02-45.fc29.

At the end of the operation, I get the OP's error.  Is this serious?

Comment 12 Daniel Mach 2019-03-08 06:44:10 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.