Bug 2015243

Summary: NGINX logrotate leads to "gzip: stdin: file size changed while zipping"
Product: Red Hat Enterprise Linux 8 Reporter: Robert Scheck <redhat-bugzilla>
Component: nginxAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: icesalov
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.4CC: bnater, jorton, mosvald, robert.scheck, tbriceno
Target Milestone: rcKeywords: AutoVerified, EasyFix, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:32:23 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:
Embargoed:
Bug Depends On: 2015249    
Bug Blocks:    

Description Robert Scheck 2021-10-18 17:59:17 UTC
Description of problem:
NGINX logrotate may end like this:

--- snipp ---
/etc/cron.daily/logrotate:

error: Compressing program wrote following message to stderr when compressing log /var/log/nginx/access.log-20211017:
gzip: stdin: file size changed while zipping
--- snapp ---

Version-Release number of selected component (if applicable):
nginx-1.14.1-9.module+el8.0.0+4108+af250afe.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Ensure NGINX logging to /var/log/nginx/access.log

Actual results:
NGINX logrotate leads to "gzip: stdin: file size changed while zipping"

Expected results:
NGINX logrotate must not lead to "gzip: stdin: file size changed while zipping"

Additional info:
From my point of view, this also affects Fedora and CentOS 9 Stream.

Comment 1 Robert Scheck 2021-10-18 18:09:02 UTC
Cross-filed case #03060134 at the Red Hat customer portal.

Comment 3 Joe Orton 2021-11-02 13:40:03 UTC
Thanks for the report and upstrema link.

Note that nginx:1.14 is already retired so we'd likely fix this only for nginx:1.20 unless there is a specific need for it in 1.18 as well?

https://access.redhat.com/support/policy/updates/rhel8-app-streams-life-cycle

Comment 4 Robert Scheck 2021-11-02 13:57:15 UTC
The issue affects any nginx version, thus also nginx:1.20 and nginx:1.18. Given I don't see nginx:1.20 there yet, a fix for nginx:1.18 would be really appreciated.

Comment 14 errata-xmlrpc 2022-05-10 13:32:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nginx:1.20 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:1767