Bug 1608686 - [abrt] dnf: __init__(): transaction.py:713:__init__:RuntimeError: C++ std::exception: Exec failed: database is locked
Summary: [abrt] dnf: __init__(): transaction.py:713:__init__:RuntimeError: C++ std::ex...
Keywords:
Status: CLOSED DUPLICATE of bug 1631533
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: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e2e3ea4ab19976548f07cf48428...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-26 07:21 UTC by Erik Faye-Lund
Modified: 2018-10-16 08:54 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-10-16 08:54:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: _var_log_dnf.log (1.79 MB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details
File: backtrace (1.89 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.20 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.13 KB, text/plain)
2018-07-26 07:21 UTC, Erik Faye-Lund
no flags Details

Description Erik Faye-Lund 2018-07-26 07:21:09 UTC
Version-Release number of selected component:
dnf-3.0.3-2.fc29

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/dnf install acpi
crash_function: __init__
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:713:__init__:RuntimeError: C++ std::exception: Exec failed: database is locked

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 146, in resolving
    base.resolve(cli.demands.allow_erasing)
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 832, in resolve
    self._transaction = self._goal2transaction(goal)
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 729, in _goal2transaction
    ts.add_install(pkg, obs, reason)
  File "/usr/lib/python3.7/site-packages/dnf/db/group.py", line 256, in add_install
    ti_new = self.new(new, libdnf.transaction.TransactionItemAction_INSTALL, reason)
  File "/usr/lib/python3.7/site-packages/dnf/db/group.py", line 219, in new
    rpm_item = self._pkg_to_swdb_rpm_item(pkg)
  File "/usr/lib/python3.7/site-packages/dnf/db/group.py", line 210, in _pkg_to_swdb_rpm_item
    rpm_item = self.history.swdb.createRPMItem()
  File "/usr/lib/python3.7/site-packages/dnf/db/history.py", line 290, in swdb
    self._swdb = libdnf.transaction.Swdb(self.dbpath)
  File "/usr/lib64/python3.7/site-packages/libdnf/transaction.py", line 713, in __init__
    this = _transaction.new_Swdb(*args)
RuntimeError: C++ std::exception: Exec failed: database is locked

Local variables in innermost frame:
self: <libdnf.transaction.Swdb;  >
args: ('/var/lib/dnf/history.sqlite',)

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

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

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

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

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

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

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

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

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

Comment 10 Daniel Mach 2018-08-14 07:18:09 UTC
This should be fixed in dnf-3.3

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

Comment 12 Kamil Páral 2018-10-16 08:54:42 UTC

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


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