RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2015243 - NGINX logrotate leads to "gzip: stdin: file size changed while zipping"
Summary: NGINX logrotate leads to "gzip: stdin: file size changed while zipping"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nginx
Version: 8.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: icesalov
URL:
Whiteboard:
Depends On: 2015249
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-18 17:59 UTC by Robert Scheck
Modified: 2022-05-10 13:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 13:32:23 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-100162 0 None None None 2021-10-18 21:37:18 UTC
Red Hat Product Errata RHEA-2022:1767 0 None None None 2022-05-10 13:32:29 UTC

Internal Links: 2015249

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


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