Bug 1197547 - [abrt] dnf: lock.py:85:_try_read_lock:ValueError: invalid literal for int() with base 10: ''
Summary: [abrt] dnf: lock.py:85:_try_read_lock:ValueError: invalid literal for int() w...
Keywords:
Status: CLOSED DUPLICATE of bug 1194685
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:3898dcf72a9339b799463c95feb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-02 01:38 UTC by Daniel Villarreal
Modified: 2015-05-06 14:16 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-02 14:23:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.26 KB, text/plain)
2015-03-02 01:38 UTC, Daniel Villarreal
no flags Details
File: environ (2.10 KB, text/plain)
2015-03-02 01:38 UTC, Daniel Villarreal
no flags Details

Description Daniel Villarreal 2015-03-02 01:38:41 UTC
Version-Release number of selected component:
dnf-0.6.4-1.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python -OO /bin/dnf -y update
executable:     /bin/dnf
kernel:         3.18.7-200.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
lock.py:85:_try_read_lock:ValueError: invalid literal for int() with base 10: ''

Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1063, in run
    self._process_demands()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 785, in _process_demands
    load_available_repos=lar)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 227, in fill_sack
    with lock:
  File "/usr/lib/python2.7/site-packages/dnf/lock.py", line 106, in __enter__
    pid = self._try_read_lock()
  File "/usr/lib/python2.7/site-packages/dnf/lock.py", line 85, in _try_read_lock
    return int(f.readline())
ValueError: invalid literal for int() with base 10: ''

Local variables in innermost frame:
self: <dnf.lock.ProcessLock object at 0x7f00407186d0>
f: <closed file u'/var/cache/dnf/x86_64/21/x86_64/21/metadata_lock.pid', mode 'r' at 0x7f00402c1db0>

Potential duplicate: bug 1195956

Comment 1 Daniel Villarreal 2015-03-02 01:38:45 UTC
Created attachment 996926 [details]
File: backtrace

Comment 2 Daniel Villarreal 2015-03-02 01:38:46 UTC
Created attachment 996927 [details]
File: environ

Comment 3 darrell pfeifer 2015-03-02 12:12:01 UTC
Also happens with current rawhide, dnf 0.6.4-2.fc23

Comment 4 Michal Luscon 2015-03-02 14:23:55 UTC
Hi,

thank you for your report, as a workaround solution you can manually remove the lock file.

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


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