Actions
Bug #19053
closedProxy continues to write to deleted file after log rotation
Difficulty:
Triaged:
No
Description
After logrotate
runs both foreman-proxy
and squid
continue to write to the rotated log, which is a deleted file handle.
$ sudo lsof /var/log | grep deleted squid 1357 root 5u REG 253,6 18393 2117707 /var/log/squid/cache.log-20170327 (deleted) squid 1359 squid 5u REG 253,6 18393 2117707 /var/log/squid/cache.log-20170327 (deleted) ruby 1792 foreman-proxy 7w REG 253,6 21154 1048669 /var/log/foreman-proxy/proxy.log-20170325 (deleted)
This happens both on the Katello host and any Capsules.
I have tried manually running /bin/systemctl kill --signal=SIGUSR1 foreman-proxy >/dev/null 2>&1 || true
(which is the postrotate
script) but the file is not released and new file is not written to.
CentOS 7.3
Katello 3.2.2
Foreman 1.13.4
Squid 3.5.20
Logrotate 3.8.6
The only modification to /etc/logrotate.conf
from the RPM-provided file is that compress
has been uncommented.
Updated by Justin Sherrill about 8 years ago
- Project changed from Katello to Smart Proxy
- Category set to Packaging
- Priority changed from Urgent to High
Updated by Anonymous about 8 years ago
- Tracker changed from Bug to Support
- Category changed from Packaging to Core
Updated by Jason Nance about 8 years ago
- Copied to Bug #19223: AVC denied from logrotate sending signal to foreman-proxy unit added
Updated by Jason Nance about 8 years ago
- Copied to Bug #19224: smart_proxy_dynflow_core.log not reopened during logrotate added
Updated by Lukas Zapletal over 7 years ago
- Tracker changed from Support to Bug
- Status changed from Resolved to Assigned
- Assignee set to Lukas Zapletal
Updated by The Foreman Bot over 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/544 added
Updated by Lukas Zapletal over 7 years ago
- Pull request https://github.com/theforeman/foreman-packaging/pull/1814 added
Updated by Lukas Zapletal over 7 years ago
- Project changed from Smart Proxy to SELinux
- Category deleted (
Core) - Status changed from Ready For Testing to New
- Pull request deleted (
https://github.com/theforeman/foreman-packaging/pull/1814, https://github.com/theforeman/smart-proxy/pull/544)
Updated by Lukas Zapletal over 7 years ago
- Project changed from SELinux to Smart Proxy
- Category set to Packaging
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/556 added
Updated by Lukas Zapletal over 7 years ago
- Project changed from Smart Proxy to SELinux
- Category deleted (
Packaging) - Status changed from Ready For Testing to New
- Pull request deleted (
https://github.com/theforeman/smart-proxy/pull/556)
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-selinux/pull/75 added
Actions