[squid-users] Squid3 error: CHILD: hello write test failed logrotate

Amos Jeffries squid3 at treenet.co.nz
Wed Jun 22 14:42:23 UTC 2016


On 23/06/2016 1:44 a.m., Roberto Carna wrote:
> Dear Antony, thanks for your help..below is the
> /etc/logrotate.d/squid3 file....but before I have to say I've seen in
> the web that this problem is solved by enabling IPv6, and was reported
> by a ticket (https://forum.opnsense.org/index.php?topic=879.0) ..can
> this be true???

You misread that ticket. It is not about logging. It is about other things.

If you are logging with the TCP or UDP log modules then IPv6 might
matter. For local files its not related.

> 
> /var/log/squid3/*.log {
>         daily
>         compress
>         delaycompress
>         rotate 2
>         missingok
>         nocreate
>         sharedscripts
>         postrotate
>                 test ! -e /var/run/squid3.pid || test ! -x
> /usr/sbin/squid3 || /usr/sbin/squid3 -k rotate
>         endscript
> }
> 

Okay, thats the script that used to be bundled with Squid in Debian.

However, you need to know that use of logrotate requires Squid to have
"logfile_rotate 0" configured. Debian packages patch that in as a
default config setting.

If you don't have that some weird things happen.

Amos



More information about the squid-users mailing list