Bug 1329058

Summary: [abrt] dnf: transaction.py:175:hdrFromFdno:_rpm.error: error reading package header
Product: [Fedora] Fedora Reporter: Christopher Meng <i>
Component: dnfAssignee: rpm-software-management
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: i, jmracek, mluscon, packaging-team-maint, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: i686   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/44f38730902366cfc6cd7feaa8225e0eea210bdb
Whiteboard: abrt_hash:1f10d9c18f53fc02540726525c1b6cdb72b797f3;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-23 15:36:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: _var_cache_dnf_i386_22_hawkey.log
none
File: _var_log_dnf.log
none
File: backtrace
none
File: environ none

Description Christopher Meng 2016-04-21 04:26:43 UTC
Version-Release number of selected component:
dnf-1.1.8-1.fc25

Additional info:
reporter:       libreport-2.7.0
cmdline:        /usr/bin/python3 /usr/bin/dnf update l* b* z* x* b* q* y* x* f* n* perl* A* R* k* g*
dnf-makecache.log: -- No entries --
executable:     /usr/bin/dnf
kernel:         4.6.0-0.rc3.git2.1.fc25.i686
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
transaction.py:175:hdrFromFdno:_rpm.error: error reading package header

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.5/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 120, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 149, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 228, in do_transaction
    super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python3.5/site-packages/dnf/base.py", line 564, in do_transaction
    self.transaction.populate_rpm_ts(self.ts)
  File "/usr/lib/python3.5/site-packages/dnf/transaction.py", line 193, in populate_rpm_ts
    hdr = tsi.installed.header
  File "/usr/lib/python3.5/site-packages/dnf/package.py", line 78, in header
    return dnf.rpm.header(self.localPkg())
  File "/usr/lib/python3.5/site-packages/dnf/rpm/__init__.py", line 58, in header
    return ts.hdrFromFdno(fdno)
  File "/usr/lib/python3.5/site-packages/rpm/transaction.py", line 175, in hdrFromFdno
    raise rpm.error("error reading package header")
_rpm.error: error reading package header

Local variables in innermost frame:
h: None
fd: 25
res: 1
self: <rpm.transaction.TransactionSet object at 0xb5678cec>

Comment 1 Christopher Meng 2016-04-21 04:26:51 UTC
Created attachment 1149285 [details]
File: _var_cache_dnf_i386_22_hawkey.log

Comment 2 Christopher Meng 2016-04-21 04:27:10 UTC
Created attachment 1149286 [details]
File: _var_log_dnf.log

Comment 3 Christopher Meng 2016-04-21 04:27:12 UTC
Created attachment 1149287 [details]
File: backtrace

Comment 4 Christopher Meng 2016-04-21 04:27:13 UTC
Created attachment 1149288 [details]
File: environ

Comment 5 Honza Silhan 2016-04-25 11:30:54 UTC
IT should give warning instead of traceback.

If you want to install packages just from available repositories then escape the glob expression, otherwise it would try to match the file.

Comment 6 Fedora Admin XMLRPC Client 2016-07-08 09:25:05 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Jan Kurik 2016-07-26 05:01:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 8 Jaroslav Mracek 2017-05-23 15:58:14 UTC
I am sorry to ask you so late, but do you have RPM that produce that problem? Without that or other reproducer we have no other option that close the bug report.

Comment 9 Jaroslav Mracek 2017-06-23 15:36:36 UTC
Unfortunately I am unable to reproduce the problem with dnf-2.5.1. Please if the problem will appear again with dnf-2.5.1+, don't hesitate to reopen the bug report (it is available for rawhide, Fedora 26, or from our testing repository "dnf copr enable rpmsoftwaremanagement/dnf-nightly" for Fedora 24+)