Bug 1480790 - pyanaconda.payload.PayloadError: Payload error - invalid package cache is being used on repeated installation
pyanaconda.payload.PayloadError: Payload error - invalid package cache is bei...
Status: NEW
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
26
x86_64 Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Anaconda Maintenance Team
Fedora Extras Quality Assurance
abrt_hash:ab6a84bc389cd45c9f159a23ff6...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-11 17:46 EDT by Tomas Dolezal
Modified: 2017-08-14 12:25 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: anaconda-tb (5.23 MB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: anaconda.log (39.94 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: dnf.librepo.log (1.49 MB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: environ (529 bytes, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: hawkey.log (38.53 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: lsblk_output (5.99 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: lvm.log (900.31 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: os_info (447 bytes, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: program.log (119.37 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: storage.log (469.61 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: syslog (2.70 MB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: ifcfg.log (8.66 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details
File: packaging.log (115.53 KB, text/plain)
2017-08-11 17:46 EDT, Tomas Dolezal
no flags Details

  None (edit)
Description Tomas Dolezal 2017-08-11 17:46:05 EDT
Description of problem:
just installing form netinstall, using updates repository found via closes mirrors.

Version-Release number of selected component:
anaconda-26.21.11-1

The following was filed automatically by anaconda:
anaconda 26.21.11-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.6/site-packages/pyanaconda/payload/dnfpayload.py", line 923, in install
    raise payload.PayloadError(msg)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 437, in run_task
    self._task(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 471, in start
    self.run_task()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 303, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 303, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install.py", line 363, in doInstall
    installation_queue.start()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/threads.py", line 251, in run
    threading.Thread.run(self)
pyanaconda.payload.PayloadError: Payload error - DNF installation has ended up abruptly: error reading package headerTraceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/pyanaconda/payload/dnfpayload.py", line 276, in do_transaction
    base.do_transaction(display=display)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 677, in do_transaction
    self.transaction._populate_rpm_ts(self._ts)
  File "/usr/lib/python3.6/site-packages/dnf/transaction.py", line 196, in _populate_rpm_ts
    hdr = tsi.installed._header
  File "/usr/lib/python3.6/site-packages/dnf/package.py", line 87, in _header
    return dnf.rpm._header(self.localPkg())
  File "/usr/lib/python3.6/site-packages/dnf/rpm/__init__.py", line 70, in _header
    return ts.hdrFromFdno(fdno)
  File "/usr/lib64/python3.6/site-packages/rpm/transaction.py", line 175, in hdrFromFdno
    raise rpm.error("error reading package header")
_rpm.error: error reading package header


Additional info:
addons:         com_redhat_docker, com_redhat_kdump
cmdline:        /usr/libexec/system-python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/fc26/vmlinuz inst.stage2=https://mirrors.nic.cz/fedora/linux/releases/26/Everything/x86_64/os/ acpi_enforce_resources=lax libata.atapi_passthru16=0 quiet rd.blackist=nouveau
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.11.8-300.fc26.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        26
Comment 1 Tomas Dolezal 2017-08-11 17:46:17 EDT
Created attachment 1312290 [details]
File: anaconda-tb
Comment 2 Tomas Dolezal 2017-08-11 17:46:19 EDT
Created attachment 1312291 [details]
File: anaconda.log
Comment 3 Tomas Dolezal 2017-08-11 17:46:24 EDT
Created attachment 1312292 [details]
File: dnf.librepo.log
Comment 4 Tomas Dolezal 2017-08-11 17:46:26 EDT
Created attachment 1312293 [details]
File: environ
Comment 5 Tomas Dolezal 2017-08-11 17:46:28 EDT
Created attachment 1312294 [details]
File: hawkey.log
Comment 6 Tomas Dolezal 2017-08-11 17:46:29 EDT
Created attachment 1312295 [details]
File: lsblk_output
Comment 7 Tomas Dolezal 2017-08-11 17:46:33 EDT
Created attachment 1312296 [details]
File: lvm.log
Comment 8 Tomas Dolezal 2017-08-11 17:46:35 EDT
Created attachment 1312297 [details]
File: nmcli_dev_list
Comment 9 Tomas Dolezal 2017-08-11 17:46:36 EDT
Created attachment 1312298 [details]
File: os_info
Comment 10 Tomas Dolezal 2017-08-11 17:46:38 EDT
Created attachment 1312299 [details]
File: program.log
Comment 11 Tomas Dolezal 2017-08-11 17:46:41 EDT
Created attachment 1312300 [details]
File: storage.log
Comment 12 Tomas Dolezal 2017-08-11 17:46:49 EDT
Created attachment 1312301 [details]
File: syslog
Comment 13 Tomas Dolezal 2017-08-11 17:46:50 EDT
Created attachment 1312302 [details]
File: ifcfg.log
Comment 14 Tomas Dolezal 2017-08-11 17:46:53 EDT
Created attachment 1312303 [details]
File: packaging.log
Comment 15 Tomas Dolezal 2017-08-14 12:25:41 EDT
I found the issue. It was due to anaconda reusing RPMs downloaded in previous attempt to install which failed on nouveau kernel crash.
The data were downloaded to /home/dnf-something-cache-dir but were never deleted or revalidated. There were about 10 files with zero lenght that weren't redownloaded.

My first approach was to use other online repos but the error still persisted until I found, checked and removed that cache folder manually. If I wasn't reusing /home partition, this wouldn't have happened I suppose.

If the folder cannot be deleted, I believe it should not be just appended with new files without rechecking the contents anyhow. It is not unusual that the installation is aborted for user's or other reason.

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