Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-01-2009, 09:41 AM   #1
Registered: Jun 2008
Posts: 111

Rep: Reputation: 15
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?
Old 01-01-2009, 10:08 PM   #2
LQ Newbie
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0

Your first instance is using those files. Try making another config file for your second instance with diferent location for the log files and pid, and run the second instance with the other config.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple instances tekmann33 Linux - Newbie 1 01-28-2008 03:05 PM
Squid : Multiple access log files (ACL Wise) suhas! Linux - Server 0 09-24-2007 12:43 AM
kickstart; how-to info needed for multiple instances of RH OS's and multiple unique v Joe_Wulf Linux - Server 4 06-21-2007 11:18 PM
how to log out from all instances of unix? u4u Linux - General 1 01-11-2005 07:22 AM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 10:51 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration