Re: [squid-users] Squid multiple instances log problem

From: John Doe <jdmls_at_yahoo.com>
Date: Mon, 5 Jan 2009 02:20:59 -0800 (PST)

----- Original Message ----

> From: John S <uhimatoti_at_hotmail.com>
> To: squid-users_at_squid-cache.org
> Sent: Thursday, January 1, 2009 5:22:55 PM
> Subject: [squid-users] Squid multiple instances log problem
>
>
> I'm trying to run multiple instances of squid and I've followed the available
> directions.
>
> The second instance of squid throws an error when it tries to open it's access
> log file.
>
> Jan 1 10:32:12 desktop squid[15527]: Squid Parent: child process 15529 started
> Jan 1 10:32:12 desktop (squid): Cannot open
> '/var/log/squid3/accessSquid3HTTPProxy.log' for writing. ^IThe parent directory
> must be writeable by the ^Iuser 'proxy', which is the cache_effective_user ^Iset
> in squid.conf.
> Jan 1 10:32:12 desktop squid[15527]: Squid Parent: child process 15529 exited
> with status 1
> Jan 1 10:32:42 desktop squid[15540]: Exiting due to repeated, frequent failures
>
> An "ls -l /var/log/squid3/" shows,
>
> -rw-r----- 1 proxy proxy 0 2009-01-01 07:56 access.log
> -rw-r----- 1 proxy proxy 118302 2008-12-31 20:46 access.log.1
> -rw-r----- 1 proxy proxy 0 2009-01-01 10:29 accessSquid3HTTPProxy.log
> -rw-r--r-- 1 proxy proxy 6773 2009-01-01 10:11 cache.log
> -rw-r--r-- 1 proxy proxy 112239 2008-12-31 19:58 cache.log.1
> -rw-r--r-- 1 proxy proxy 7005 2009-01-01 10:32 cacheSquid3HTTPProxy.log
> -rw-r----- 1 proxy proxy 603 2009-01-01 09:58 store.log
> -rw-r----- 1 proxy proxy 154882 2009-01-01 06:58 store.log.1
>
> Why can't it write to it's log file when the first instance can write to it's
> log file and starts up properly?

Is the second squid also running as proxy/proxy? (cache_effective_user/cache_effective_group)
Did you check the /var/log/squid3 permissions?
If you stop/start the working squid, can it still open the log file?

JD

      
Received on Mon Jan 05 2009 - 10:21:09 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 05 2009 - 12:00:02 MST