Project

General

Custom queries

Profile

Actions

Bug #19053

closed

Proxy continues to write to deleted file after log rotation

Added by Jason Nance about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Smart proxy
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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.


Related issues 2 (1 open1 closed)

Copied to SELinux - Bug #19223: AVC denied from logrotate sending signal to foreman-proxy unitNeeds design04/07/2017Actions
Copied to foreman-tasks - Bug #19224: smart_proxy_dynflow_core.log not reopened during logrotateClosedAdam Ruzicka04/07/2017Actions
#1

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
#4

Updated by Anonymous about 8 years ago

  • Priority changed from High to Normal
#21

Updated by Anonymous about 8 years ago

  • Tracker changed from Bug to Support
  • Category changed from Packaging to Core
#22

Updated by Jason Nance about 8 years ago

  • Copied to Bug #19223: AVC denied from logrotate sending signal to foreman-proxy unit added
#23

Updated by Jason Nance about 8 years ago

  • Copied to Bug #19224: smart_proxy_dynflow_core.log not reopened during logrotate added
#24

Updated by Anonymous about 8 years ago

  • Status changed from New to Resolved
#25

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
#26

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
#27

Updated by Lukas Zapletal over 7 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/1814 added
#28

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)
#29

Updated by Lukas Zapletal over 7 years ago

  • Project changed from SELinux to Smart Proxy
  • Category set to Packaging
#30

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
#31

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)
#32

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
#38

Updated by Tomer Brisker almost 6 years ago

  • Fixed in Releases 1.23.0 added
#39

Updated by Anonymous almost 6 years ago

  • Status changed from Ready For Testing to Closed
#40

Updated by Amit Upadhye almost 6 years ago

  • Category set to Smart proxy
Actions

Also available in: Atom PDF