Bug 1122900

Summary: [abrt] dnf: package.py:73:header:RuntimeError: (Rpm file does not exist)
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, jzeleny, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/547652cdbfb73d77939d31440e1435c8e4c33aad
Whiteboard: abrt_hash:4bc07661c7984692078ce8481f826fefabf47636
Fixed In Version: dnf-0.5.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 07:19:42 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: backtrace
none
File: environ none

Description Lukas Slebodnik 2014-07-24 10:51:52 UTC
Description of problem:
dnf update --disablerepo=* --enablerepo=localrepo

Version-Release number of selected component:
dnf-0.5.4-1.fc20

Additional info:
reporter:       libreport-2.2.2
cmdline:        /usr/bin/python -OO /bin/dnf update --disablerepo=* --enablerepo=localrepo
executable:     /bin/dnf
kernel:         3.15.4-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
package.py:73:header:RuntimeError: (u"Rpm file does not exist: '%s'", u'/dev/shm/repo/libipa_hbac-1.12.1-0.20140723.1323.gitcd61aff.mit.fc20.x86_64.rpm')

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 200, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 83, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 140, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 165, in resolving
    return_code, resultmsgs = base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 233, in do_transaction
    return_code, resultmsgs = super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 566, in do_transaction
    self.transaction.populate_rpm_ts(self.ts)
  File "/usr/lib/python2.7/site-packages/dnf/transaction.py", line 189, in populate_rpm_ts
    hdr = tsi.installed.header
  File "/usr/lib/python2.7/site-packages/dnf/package.py", line 73, in header
    raise RuntimeError("Rpm file does not exist: '%s'", rpmfile)
RuntimeError: (u"Rpm file does not exist: '%s'", u'/dev/shm/repo/libipa_hbac-1.12.1-0.20140723.1323.gitcd61aff.mit.fc20.x86_64.rpm')

Local variables in innermost frame:
self: <hawkey.Package object id 2164, libipa_hbac-1.12.1-0.20140723.1323.gitcd61aff.mit.fc20.x86_64, localrepo>
rpmfile: u'/dev/shm/repo/libipa_hbac-1.12.1-0.20140723.1323.gitcd61aff.mit.fc20.x86_64.rpm'

Comment 1 Lukas Slebodnik 2014-07-24 10:51:55 UTC
Created attachment 920499 [details]
File: backtrace

Comment 2 Lukas Slebodnik 2014-07-24 10:51:56 UTC
Created attachment 920500 [details]
File: environ

Comment 3 Ales Kozumplik 2014-07-24 12:15:24 UTC
Looking.

Comment 4 Lukas Slebodnik 2014-07-24 13:23:09 UTC
After rebooting machine, packages were not available in localrepo (/deve/shm/repo) Expiring cache fixed this problem.

dnf clean expire-cache --disablerepo=* --enablerepo=localrepo

I would expect reasonable error message instead of stack trace from unhandled exception.

Comment 5 Ales Kozumplik 2014-07-24 14:15:33 UTC
Fixed on master by 224e924, thanks for the report.