Bug #3190
SquidGuard stops logging after logorate
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-squidguard | |||
Target version: | v6.6 | |||
Security class: | Resolution: | |||
Affected version: | v6.6-final | NEEDINFO: | No |
Description
After weekly logorate, squidGuard stops logging inside /var/log/squidGuard/urlfilter.log
.
- Enable the proxy and create a filter with a blocked category
- Configure a client to use the proxy and browse a blocked site
- The blocked page is logged in
/var/log/squidGuard/urlfilter.log
- Force the logrotate:
logrotate -v -f /etc/logrotate.conf
- Re-open the blocked page
- The log
/var/log/squidGuard/urlfilter.log
is not written, size is 0
- After logorate squidGuard must keep logging blocked pages
- Restart squid
Associated revisions
Logrotate: restart squid after rotation. Refs #3190
Logrotate: merge into one config file. Refs #3190
History
#1 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from NEW to TRIAGED
- Target version set to v6.6
- % Done changed from 0 to 20
- Affected version set to v6.6-final
#2 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Giacomo Sanchietti
- % Done changed from 20 to 30
#3 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
#4 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 60 to 70
Package in nethserver-testing:
- nethserver-squidguard-1.3.0-1.1.gc9b3c3c.ns6.noarch.rpm
- Check the bug is not reproducible
#5 Updated by Filippo Carletti about 6 years ago
- Status changed from ON_QA to VERIFIED
- % Done changed from 70 to 90
After logrotate, nothing appears in urlfilter.og. Aggiornato: nethserver-squidguard.noarch 0:1.3.0-1.1.gc9b3c3c.ns6 Completo! [root@nsent ~]# logrotate -v -f /etc/logrotate.conf rotating pattern: /var/log/squidGuard/urlfilter.log forced from command line (52 rotations) empty log files are not rotated, old logs are removed considering log /var/log/squidGuard/urlfilter.log log needs rotating rotating log /var/log/squidGuard/urlfilter.log, log->rotateCount is 52 dateext suffix '-20150610' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding logs to compress failed glob finding old rotated logs failed fscreate context set to unconfined_u:object_r:squid_log_t:s0 renaming /var/log/squidGuard/urlfilter.log to /var/log/squidGuard/urlfilter.log-20150610 creating new /var/log/squidGuard/urlfilter.log mode = 0644 uid = 23 gid = 23 running postrotate script
I went to a blocked site and it appeared in the log.
#6 Updated by Davide Principi about 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
In nethserver-updates:
nethserver-squidguard-1.3.1-1.ns6.noarch.rpm