Bug 1639965 - RuntimeError: Exec failed: database is locked
Summary: RuntimeError: Exec failed: database is locked
Keywords:
Status: CLOSED DUPLICATE of bug 1631533
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
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-10-17 03:15 UTC by Mikhail
Modified: 2019-06-02 04:27 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-02 04:27:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dnf output (65.47 KB, text/plain)
2018-10-17 03:15 UTC, Mikhail
no flags Details

Description Mikhail 2018-10-17 03:15:37 UTC
Created attachment 1494693 [details]
dnf output

Description of problem:
# dnf upgrade --refresh

***
                                                                                                                                           78/82 
  Verifying        : mutter-debuginfo-3.30.1-3.fc30.x86_64                                                                                                                                                   79/82 
  Verifying        : mutter-debuginfo-3.30.1-1.fc30.x86_64                                                                                                                                                   80/82 
  Verifying        : mutter-debugsource-3.30.1-3.fc30.x86_64                                                                                                                                                 81/82 
  Verifying        : mutter-debugsource-3.30.1-1.fc30.x86_64                                                                                                                                                 82/82 
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 235, in do_transaction
    tid = super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 847, in do_transaction
    # put back our depcheck callback
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 997, in _run_transaction
    try:
  File "/usr/lib/python3.7/site-packages/dnf/base.py", line 1035, in _verify_transaction
    
  File "/usr/lib/python3.7/site-packages/dnf/db/history.py", line 508, in end
    self.swdb.initTransaction()
  File "/usr/lib/python3.7/site-packages/dnf/db/history.py", line 291, in swdb
    self._swdb = libdnf.transaction.Swdb(self.dbpath)
  File "/usr/lib64/python3.7/site-packages/libdnf/transaction.py", line 729, in __init__
    this = _transaction.new_Swdb(*args)
RuntimeError: Exec failed: database is locked
[root@localhost ~]# dnf upgrade --refresh
Adobe Systems Incorporated                     2.4 kB/s | 2.9 kB     00:01    
Fedora - Modular Rawhide - Developmental packa 8.6 kB/s |  18 kB     00:02    
Fedora - Rawhide - Developmental packages for   10 kB/s |  19 kB     00:01    
Fedora - Rawhide - Debug                        13 kB/s |  18 kB     00:01    
google-chrome-unstable                         883  B/s | 951  B     00:01    
local repo                                     2.9 MB/s | 3.0 kB     00:00    
Opera packages                                 2.2 kB/s | 2.9 kB     00:01    
RPM Fusion for Fedora Rawhide - Free           8.7 kB/s |  11 kB     00:01    
RPM Fusion for Fedora Rawhide - Nonfree        8.6 kB/s |  11 kB     00:01    
Visual Studio Code                             2.3 kB/s | 2.9 kB     00:01    
Dependencies resolved.
Nothing to do.
Complete!

Comment 1 Marek Blaha 2018-10-22 11:45:09 UTC
Please, can you try to reproduce this with latest libdnf 0.22.0-5?

Comment 2 David Juran 2019-05-29 05:52:12 UTC
I've seen this with:

libdnf-0.31.0-3.fc29.x86_64
dnf-4.2.5-1.fc29.noarch

Is this a dup of Bug 1631533 ?

Comment 3 Daniel Mach 2019-06-02 04:27:38 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.