Bug 1222957 - Log files go mute after logrotate runs
Summary: Log files go mute after logrotate runs
Keywords:
Status: CLOSED DUPLICATE of bug 800042
Alias: None
Product: Fedora
Classification: Fedora
Component: sigul
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-19 13:39 UTC by John Florian
Modified: 2015-11-28 09:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-28 09:01:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Florian 2015-05-19 13:39:41 UTC
Description of problem:
After the logrotate job runs for sigul, the sigul log files show no further activity despite sigul continuing to run fine otherwise.

Version-Release number of selected component (if applicable):
sigul-0.100-4.fc21.noarch

How reproducible:
always

Steps to Reproduce:
1. configure a working sigul environment
2. tail -F /var/log/sigul_{bridge,server}.log
3. either wait for the weekly logrotate job to come around or manually trigger it

Actual results:
Both the sigul_bridge.log and the sigul_server.log go silent once logrotate runs.

Expected results:
Logging should continue as it did before logrotate executed.

Additional info:
I successfully used the following patch to remedy the problem for both the bridge and server components.

--- /etc/logrotate.d/sigul.orig 2014-06-08 07:53:25.000000000 -0400
+++ /etc/logrotate.d/sigul      2015-05-19 09:36:32.184033456 -0400
@@ -1,4 +1,5 @@
 /var/log/sigul*.log {
        missingok
        notifempty
+    copytruncate
 }


This approach does leave a very small window where logged content may be lost while logrotate runs, but that's drastically better than the current behavior where all content is lost after logrotate runs.

Comment 1 Fedora End Of Life 2015-11-04 11:54:45 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Till Maas 2015-11-28 09:01:40 UTC

*** This bug has been marked as a duplicate of bug 800042 ***


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