Re: [squid-users] New cache

From: Chris Robertson <crobertson@dont-contact.us>
Date: Wed, 09 Aug 2006 09:58:38 -0800

Matus UHLAR - fantomas wrote:
> On 09.08.06 10:18, George Dominguez wrote:
>
>> I added a new disk to squid (all configured and mounted).
>> Created a directory in /usr/local/cache
>> chown squid:squid
>> chmod 755 cache
>> Added a new "cache_dir" in squid.conf
>> "Cache_dir ufs /usr/local/cache 20000 16 256"
>> Then squid -k shutdown
>> Squid -z
>>
>> The new cache directory was sucessfully created. But when I try to start
>> squid it Fails.
>>
>> I'm running Squid v 2.5.STABLE6 for i386-redhat-linux-gnu
>>
>
> I strongly recommend you to upgrade, alghouth this is probably not the
> problem.
>
FWIW, I second that suggestion...
>
>> 2006/08/09 04:52:26| /usr/local/cache/swap.state: (13) Permission denied
>> FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
>> Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
>> CPU Usage: 0.012 seconds = 0.005 user + 0.007 sys Maximum Resident Size:
>> 0 KB Page faults with physical i/o: 0
>>
>> The swap.state is not in the new directory, I never had this issue
>> before, any ideas?
>>
>
> does squid run under "squid" user? doesn't redhat use user like 'proxy' for
> running squid under?
This is, of course defined by the squid.conf. RedHat's default
squid.conf uses squid.
> what user/group/perm do your logfiles have? and other
> cache dirs? (isn't the partition monter read-only?
To the original poster: One nice thing about RedHat's init script is
that it will create the cache directories defined in squid.conf
automatically. Run...

rm -rf /usr/local/cache/* && service squid start

...and see if that fixes it. But be careful. Make sure you don't rm
-rf some other directory...

Chris
Received on Wed Aug 09 2006 - 11:58:49 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT