Bug 1381387

Summary: Read error - cannot reconstruct rpm from disk files
Product: [Fedora] Fedora Reporter: Edward <edwardp>
Component: selinux-policy-targetedAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dwalsh, fedora2021q2, imc, jreiser, mail, paulo, stanley.king, tomislav.ivek
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1489771 (view as bug list) Environment:
Last Closed: 2017-08-08 19:18:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Edward 2016-10-03 23:37:07 UTC
Description of problem:

Upon updating two systems (Fedora 24, 64-bit) using dnf, the following error displayed during the process on both systems:

/var/lib/selinux/targeted/active/policy.kern: read error
(tried to read 8192 bytes from offset 3786868)
cannot reconstruct rpm from disk files
selinux-policy-targeted-3.13.1-191.17.fc24.noarch: Delta RPM rebuild failed


It appears to have re-downloaded the package after the error occurred on each:

selinux-policy-targeted-3.13.1-191.17.fc24.noar 6.7 MB/s | 8.7 MB     00:01

Comment 1 Fedora End Of Life 2017-07-25 23:20:33 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 2 John Reiser 2017-08-01 22:02:06 UTC
I get the same error on Fedora 25:
=====
 selinux-policy                    noarch    3.13.1-225.19.fc25             updates                   495 k
 selinux-policy-targeted           noarch    3.13.1-225.19.fc25             updates                   9.3 M
   . . .
(19/37): selinux-policy-targeted-3.13.1-225.18.fc25_3.13.1-225.19.fc25.noar  92 kB/s | 4.3 MB     00:47    

   . . .
/var/lib/selinux/targeted/active/policy.kern: read error                  ] 5.4 MB/s |  54 MB     00:18 ETA
(tried to read 8192 bytes from offset 3852492)
cannot reconstruct rpm from disk files
   . . .
selinux-policy-targeted-3.13.1-225.19.fc25.noarch: Delta RPM rebuild failed
selinux-policy-targeted-3.13.1-225.19.fc25.noarch.rpm                       270 kB/s | 9.3 MB     00:35    
=====
# rpm -qf /usr/bin/dnf
dnf-1.1.10-6.fc25.noarch

Comment 3 Fedora End Of Life 2017-08-08 19:18:30 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Stan King 2017-08-09 01:29:48 UTC
I concur with Mr. Reiser in comment #2.  I got the error recently with Fedora 25, and the symptoms looked much the same.  It recovered after fetching the standard RPM, after the processing of the delta RPM failed.  If I see it again, I'll open a new bug, unless I see that this one gets re-opened.

Comment 5 John Reiser 2017-08-15 23:20:30 UTC
I get the same error in f26, so the original Reporter (or someone with privileges) could change the Version to 26, thus keeping this report alive beyond f24 EOL.

=====
(194/382): selinux-policy-targeted-3.13.1-259.fc26_3.13.1-260.4. 1.0 MB/s | 5.3 MB     00:05
   [[snip]]
(369/382): selinux-policy-3.13.1-260.4.fc26.noarch.rpm           271 kB/s | 502 kB     00:01
   [[snip]]
var/lib/selinux/targeted/active/policy.kern: read error
(tried to read 4600 bytes from offset 3888024)
cannot reconstruct rpm from disk files
[DRPM 193/200] sqlite-libs-3.19.1-1.fc26_3.20.0-1.fc26.x86_64.drpm: done
[DRPM 194/200] strace-4.17-1.fc26_4.18-1.fc26.x86_64.drpm: done
[DRPM 195/200] tar-1.29-4.fc26_1.29-5.fc26.x86_64.drpm: done
[DRPM 196/200] unzip-6.0-33.fc26_6.0-34.fc26.x86_64.drpm: done
[DRPM 197/200] totem-pl-parser-3.10.7-2.fc26_3.10.8-1.fc26.x86_64.drpm: done
[DRPM 198/200] unicode-ucd-9.0.0-3.fc26_10.0.0-1.fc26.noarch.drpm: done
[DRPM 199/200] firefox-54.0-2.fc26_55.0.1-1.fc26.x86_64.drpm: done
Some packages were not downloaded. Retrying.
selinux-policy-targeted-3.13.1-260.4.fc26.noarch.rpm             840 kB/s | 9.4 MB     00:11
-------------------------------------------------------------------------------------------------
Total                                                            1.2 MB/s | 379 MB     05:27
=====

Comment 6 Paulo Matos 2017-09-05 08:05:06 UTC
I saw this on Fedora 26 as well. Is there a bug to track this on F26?

Comment 7 AsciiWolf 2017-09-05 09:04:41 UTC
I got the same error during today's update.
(selinux-policy-targeted-3.13.1-260.8.fc26.noarch)

/var/lib/selinux/targeted/active/policy.kern: read error
(tried to read 6452 bytes from offset 3888896)
cannot reconstruct rpm from disk files

Comment 8 Tomislav Ivek 2017-09-06 07:29:54 UTC
Can also confirm the error on today's update of selinux-policy-3.13.1-260.8.fc26.noarch.rpm.

/var/lib/selinux/targeted/active/policy.kern: read error
(tried to read 6452 bytes from offset 3888896)
cannot reconstruct rpm from disk files

Comment 9 fednuc 2017-09-08 10:59:08 UTC
Cloned to https://bugzilla.redhat.com/show_bug.cgi?id=1489771 as a Fedora 26 bug since no-one with privileges has re-opened/re-versioned this one.