Bug 1149090

Summary: squidGuard: link to log file removed after logrotate
Product: [Fedora] Fedora EPEL Reporter: Giacomo Sanchietti <giacomo.sanchietti>
Component: squidGuardAssignee: Gwyn Ciesla <gwync>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: el6CC: gwync
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-30 15:00:51 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:

Description Giacomo Sanchietti 2014-10-03 08:11:06 UTC
Description of problem:

SquidGuard package contains two log files:
* log file: /var/log/squidGuard/squidGuard.log
* link: /var/log/squid/squidGuard.log -> /var/log/squidGuard/squidGuard.log

After log rotation, the link is removed and squidGuard package is broken:

[root@localhost ~]# rpm -qV squidGuard
missing     /var/log/squid/squidGuard.log


Version-Release number: 
* squid-3.1.10-19.el6_4.x86_64.rpm
* squidGuard-1.4-9.el6.x86_64
* logrotate-3.7.8-17.el6.x86_64


How reproducible:

Always after log rotation.

Steps to Reproduce:

Force logorotate:

logortate -f /etc/logrotate.d/squid 
 or
logrotate -f /etc/logrotate.d/squidGuard


Actual results:

Link /var/log/squid/squidGuard.log is missing.

Expected results:

Link should not be missing or should not be created at all.

SquidGuard default configuration uses /var/log/squidGuard as log directory, so the link is not really useful.
I propose to remove the link from the package because logorate can't handle it.

Comment 1 Giacomo Sanchietti 2014-10-03 08:17:31 UTC
Also we could change logrotate configuration like this:

diff -u /etc/logrotate.d/squidGuard.ori /etc/logrotate.d/squidGuard
--- /etc/logrotate.d/squidGuard.ori	2014-10-02 18:11:08.153173647 +0000
+++ /etc/logrotate.d/squidGuard	2014-10-02 18:12:37.243117878 +0000
@@ -1,4 +1,4 @@
-/var/log/squid/squidGuard.log {
+/var/log/squidGuard/squidGuard.log {
     weekly
     compress
     notifempty

Comment 2 Ben Cotton 2020-11-05 16:47:29 UTC
This message is a reminder that EPEL 6 is nearing its end of life. Fedora will stop maintaining and issuing updates for EPEL 6 on 2020-11-30. It is our 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 'version' of 'el6'.

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 EPEL version.

Thank you for reporting this issue and we are sorry that we were not able to fix it before EPEL 6 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.

Comment 3 Ben Cotton 2020-11-30 15:00:51 UTC
EPEL el6 changed to end-of-life (EOL) status on 2020-11-30. EPEL el6 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
EPEL please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.