LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-23-2005, 11:56 PM   #1
arun_ain
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Cache Swap Directory Creation Problem


CACHE SWAP DIRECTORY CREATION PROBLEM

I am using RED HAT ENTERPRISE LINUX having default squid installed, Everything goes fine with squid . Only problem facing is related to cache directory.

I have created cache directory with other setting as below.

> mkdir /opt/cache
> chown squid.root /opt/cache
> chmod 775 /opt/cache

Above settings work properly with , Suse 9 [SLES] , RHEL3 , FC3 distribution.

Log messages is am getting are :

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
logs of /var/logs/messages
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
May 23 19:57:29 qarhel4test4 kernel: audit(1116858449.448:0): avc: denied { write } for pid=14004 exe=/usr/sbin/squid name=cache dev=dm-0 ino=422721 scontext=root:system_r:squid_t tcontext=root:object_r:root_t tclass=dirMay 23 19:57:29 qarhel4test4 squid: Failed to make swap directory /cache/00: (13) Permission denied

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
logs of /var/logs/squid/cache.log
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2005/05/23 19:55:28| Starting Squid Cache version 2.5.STABLE7 for i386-redhat-linux-gnu...
2005/05/23 19:55:28| Process ID 12510
2005/05/23 19:55:28| With 1024 file descriptors available
2005/05/23 19:55:28| DNS Socket created at 0.0.0.0, port 32784, FD 5
2005/05/23 19:55:28| Adding nameserver 61.0.128.65 from /etc/resolv.conf
2005/05/23 19:55:28| Adding nameserver 61.0.0.5 from /etc/resolv.conf
2005/05/23 19:55:28| User-Agent logging is disabled.
2005/05/23 19:55:28| Referer logging is disabled.
2005/05/23 19:55:28| Unlinkd pipe opened on FD 10
2005/05/23 19:55:28| Swap maxSize 102400 KB, estimated 7876 objects
2005/05/23 19:55:28| Target number of buckets: 393
2005/05/23 19:55:28| Using 8192 Store buckets
2005/05/23 19:55:28| Max Mem size: 8192 KB
2005/05/23 19:55:28| Max Swap size: 102400 KB
2005/05/23 19:55:28| /var/spool/cache: (13) Permission denied
FATAL: Failed to verify one of the swap directories, Check cache.log
for details. Run 'squid -z' to create swap directories
if needed, or if running Squid for the first time.
Squid Cache (Version 2.5.STABLE7): Terminated abnormally.
CPU Usage: 0.254 seconds = 0.024 user + 0.230 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Has any faced these problem..
Please reply me if any body have the solution on the above issue.
Thanks in advance
 
Old 05-25-2005, 12:57 AM   #2
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
RHEL4 - SQUID 2.5 STABLE Release - Problem with Cache

Same problem... with me also. I cannot change the cache Directory... this seems to be a RHEL 4 issue...
can neone help..
 
Old 05-25-2005, 08:08 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
AFAIK the squid cache dir should be owned by user squid and group squid - not group root...
 
Old 05-27-2005, 07:00 AM   #4
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
What is the size of cache u gave
 
Old 06-14-2005, 04:45 AM   #5
raj_cet04
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
squid and rhel 4

This is nothing but the SELinux causes the trouble

solutions
do either one of this steps
1. goto firewall configuration tools and disable selinux and restart machine
2. edit /etc/selinux/config
you will find a entry selinux="enforce"
change to selinux="disabled"
and restart machine
3. in the command prompt run the command
setenforce 0

then run squid -z

rgrds
Rajesh

if it helped you plese mail me @
raj_cet04@yahoo.com
 
  


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
Squid swap folder creation problem selvamporko Linux - Software 1 06-22-2005 08:56 PM
I have a cache directory, I am not sure if that is squid's cache directory Niceman2005 Linux - Software 1 11-26-2004 02:46 AM
Writing swap cache to HD on demand MasterC Linux - General 2 02-27-2004 02:19 PM
squid cache server- error creating swap directory debloxie Linux - Networking 4 01-19-2004 12:49 AM
Stopping Creation of Swap Files SaTaN Linux - General 4 09-02-2003 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:21 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