Bug 2015250

Summary: NGINX logrotate leads to "gzip: stdin: file size changed while zipping"
Product: Red Hat Enterprise Linux 9 Reporter: Robert Scheck <redhat-bugzilla>
Component: nginxAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: icesalov
Severity: medium Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bnater, bstinson, jorton, jwboyer, mosvald, robert.scheck, tbriceno
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nginx-1.20.1-9.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:51: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:
Embargoed:
Bug Depends On: 2015249    
Bug Blocks:    

Description Robert Scheck 2021-10-18 18:04:27 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:
This has been cloned from bug #2015243 but seems to be applicable to CentOS 9 Stream, too.

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

Comment 13 errata-xmlrpc 2022-05-17 12:51:30 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 (new packages: nginx), 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/RHBA-2022:2410