LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-01-2009, 10:41 AM   #1
Shwick
Member
 
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.
Code:
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,
Code:
-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, 11:08 PM   #2
Aratas
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Hi,

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.

Regards
 
  


Reply


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 04:05 PM
Squid : Multiple access log files (ACL Wise) suhas! Linux - Server 0 09-24-2007 01:43 AM
kickstart; how-to info needed for multiple instances of RH OS's and multiple unique v Joe_Wulf Linux - Server 4 06-22-2007 12:18 AM
how to log out from all instances of unix? u4u Linux - General 1 01-11-2005 08:22 AM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 11:51 PM


All times are GMT -5. The time now is 05:14 AM.

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