Bug 2015249

Summary: NGINX logrotate leads to "gzip: stdin: file size changed while zipping"
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: nginxAssignee: Felix Kaechele <felix>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: felix, jeremy, jkaluza, jorton, luhliari, ollie.yeoh, pavel.lisy, peter.borsa, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nginx-1.20.1-8.fc34 nginx-1.20.1-8.fc33 nginx-1.20.1-8.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 02:08:55 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:    
Bug Blocks: 2015243, 2015250    

Description Robert Scheck 2021-10-18 18:03:16 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 Fedora, too.

Comment 1 Fedora Update System 2021-10-19 00:40:25 UTC
FEDORA-2021-e4dbeb2fd8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e4dbeb2fd8

Comment 2 Fedora Update System 2021-10-19 00:40:26 UTC
FEDORA-2021-c739f71850 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c739f71850

Comment 3 Fedora Update System 2021-10-19 00:40:27 UTC
FEDORA-2021-ff3c6456d8 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ff3c6456d8

Comment 4 Fedora Update System 2021-10-19 16:13:06 UTC
FEDORA-2021-e4dbeb2fd8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e4dbeb2fd8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e4dbeb2fd8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-10-19 16:22:57 UTC
FEDORA-2021-c739f71850 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c739f71850`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c739f71850

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-10-20 13:47:46 UTC
FEDORA-2021-ff3c6456d8 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ff3c6456d8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ff3c6456d8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-10-27 02:08:55 UTC
FEDORA-2021-e4dbeb2fd8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-10-27 03:04:28 UTC
FEDORA-2021-c739f71850 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2021-10-29 23:08:40 UTC
FEDORA-2021-ff3c6456d8 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.