LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2006, 05:28 AM   #1
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Rep: Reputation: 15
Squid problem


Dear All

Without seperate cache dir, my squid is working fine.

I plan to create 4 partitions ( cache1..cache4). When i run the squid service, it's failed.it is giving the following error message. Kindly help me for enabling the cache directories.

I verified permission of cache dirs also.
drwxr-xr-x 2 squid squid 4096 May 31 15:30 /cache1
drwxr-xr-x 2 squid squid 4096 May 31 15:30 /cache2
drwxr-xr-x 2 squid squid 4096 May 31 15:30 /cache3
drwxr-xr-x 2 squid squid 4096 May 31 15:30 /cache4

Thanks venkat



Error:.

FATAL: Failed to make swap directory /cache1/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE11): Terminated abnormally.
CPU Usage: 0.001 seconds = 0.001 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache2/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE11): Terminated abnormally.
CPU Usage: 0.002 seconds = 0.000 user + 0.002 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache3/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE11): Terminated abnormally.
CPU Usage: 0.001 seconds = 0.000 user + 0.001 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
FATAL: Failed to make swap directory /cache4/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE11): Terminated abnormally.
CPU Usage: 0.002 seconds = 0.001 user + 0.001 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
 
Old 05-31-2006, 06:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
your squid daemon user doesn't have permission to write to those locations. use chmod or chown to change them.
 
Old 05-31-2006, 08:04 AM   #3
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
Check the cache_effective_user username in squid.conf and see if that user exists in /etc/passwd file If so... Try this
Assuming squid is the cache_effective_user.

chown -R squid.squid /cache*
chmod -R 750 /cache
then run
squid -z
and restart squid
/etc/init.d/squid restart


Regards
Manjunath
 
Old 06-01-2006, 03:49 AM   #4
hinetvenkat
Member
 
Registered: Nov 2004
Location: Mumbai
Posts: 80

Original Poster
Rep: Reputation: 15
Hi

I checked the permission..it is has the correct permissions only for user squid.
I verified through net. I got the info saying that store.c-patch needs to install.

I am not sure..I removed the entire squid.

and download the squid src files..compiled and installation has done. Now i can see the cache directory. I created through 'squid -z' command only.

Now problem is, i am getting the following error..i am not using the squidguard.
in squid.conf, time is not specified. why i am getting the following error. How to solve.

Server time is also correct time. i verified that also.

-------------------------------------------
ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://www.linuxquestions.org/

The following error was encountered:

Access Denied.

Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is webmaster.

---------------------------------------------
 
  


Reply



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
Squid problem yuriwalker Linux - Newbie 7 12-02-2005 05:02 AM
Squid Problem vivekthemind Linux - Security 16 10-04-2005 12:24 PM
Squid problem John Micheal Linux - Software 1 05-07-2005 05:26 PM
problem in squid alvi2 Linux - Networking 1 03-10-2005 05:34 AM
squid problem supon Linux - Networking 0 10-05-2004 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:22 PM.

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
Open Source Consulting | Domain Registration