Bug 1608685

Summary: [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
Product: [Fedora] Fedora Reporter: Erik Faye-Lund <kusmabite>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Daniel Mach <dmach>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dmach, mblaha, packaging-team-maint, prd-fedora, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c1881b954e130521795591efcdd8d992007a8d14
Whiteboard: abrt_hash:54fcf830f396f3944e1f878b490d9e9e67c4459b;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-08 06:44:10 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 Flags
File: _var_log_dnf.log
none
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: dnf-makecache.log
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

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 ***