Re: [squid-users] Fw: [ERROR] commonUfsDirOpenSwapLog: Failed to open swap log

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 23 Jul 2012 18:56:25 +1200

On 23/07/2012 6:02 p.m., Anonymous wrote:
> Please to the following steps (in this order):
>> 1) Shut down Squid.
>> 2) Wait until its completed shutting down. ("ps aux | grep squid").
>> 3) if the squid.pid fie is gone skip to step 4
>> 3a) if squid.pid file is still present ensure there is no running process with
>> same ID as inside it.
>> 3b) shutdown the process with PID from inside squid.pid. repeat step 3.
>> 4) erase the cache.log file
>> 5) restart Squid
> Thank you for help, above mentioned steps worked. After these steps Squid start working normally without any errors.

Aha. What those steps confifm is that there are indeed two or more
different Squid running.

Squid-3.2 supports multi-process SMP so there is no need for more than
one instance to run.

> But please help more...! yes after system reboot, same error again. I think it's Squid's Start Up issue. I have tried to setup number of options in /etc/rc.conf: (All tested one by one, none worked)
>
> squid_enable"YES"
> /usr/local/sbin/squid
> /usr/local/sbin/squid start
>
> # Also try to create a startup script
>
> #!/bin/sh
> /usr/local/sbin/squid
> chmod 755 /usr/local/etc/rc.d/squid.sh
>
> Pasted the entry in "rc.conf" as
> /usr/local/etc/rc.d/squid.sh
>
>
> But none of above steps, worked...Only manually start method worked, please help howto setup automatically squid. After all the issue is "...multiple processes running with the same PID file."
> When "/usr/local/sbin/squid" is set in rc.conf, Here's output of "ps aux | grep squid"
> *******************************************************
> # ps aux |grep squid
> squid 289 0.2 0.6 72352 24060 ?? S 10:40AM 0:08.65 (squid-1) (squid)
> root 23 0.0 0.2 47772 7652 ?? Is 10:40AM 0:00.00 /usr/local/sbin/squid
First Squid run by "root" account. This is probably the machine startup
system running Squid.

> squid 290 0.0 0.1 19676 2208 ?? S 10:40AM 0:00.07 (logfile-daemon) /var/l
> squid 291 0.0 0.1 19676 2172 ?? I 10:40AM 0:00.02 (unlinkd) (unlinkd)
> operator 1831 0.0 0.2 47772 8288 ?? Ss 11:00AM 0:00.01 /usr/local/sbin/squid
Second Squid run by user account "operator".

> root 1847 0.0 0.0 16424 1420 0 R+ 11:00AM 0:00.00 grep squid
> *******************************************************
> Thank you very much for you time and continued help.

I'm not familiar with the rc.conf system of FreeBSD. Pehapse someone
else coudl help there. I suspect rc.conf is being run both at startup
and when "operator" log in, which starts Squid twice.

Amos
Received on Mon Jul 23 2012 - 06:56:35 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 23 2012 - 12:00:02 MDT