Re: [squid-users] Help with squid cache dir

From: Chris Robertson <crobertson_at_gci.net>
Date: Tue, 16 Jun 2009 11:56:16 -0800

Juan Manuel Perrote wrote:
> Hello:
>
> I have a problem with a cache squid, squid not generate files on the cache
> dir.
>
> * I have a squid as a reverse proxy.
> * My version of squid is 3.0.RC1.
>

Yikes. 3.0.RC1 is at least better than the PRE versions, but it's still
not a Stable release. It's also nearly two years old. There have been
a number of bug fixes and security patches since.

> * On the cache dir structure I have a lot of directories, but all are empty.
> * The cache dir have 777 permissions on all structure
>

Yikes again. 777 permissions are not a good idea. Set the ownership
correctly, and put the directory permissions back to 750.

> * The store log have a content like these
> 1245151352.631 RELEASE -1 FFFFFFFF 289A075B563E3C64D402EB58150B4B28 304
> 1245151388 -1 -1 text/html 0/0 GET
> http://extranet.p/i/1px_trans.gif
>

Are you sure these objects are cacheable? What is the output of
"squidclient -m HEAD http://extranet.p/i/1px_trans.gif"?

> 1245151442.021 RELEASE -1 FFFFFFFF E26713FA0492A44B9DB8DD9E9A472615 200
> 1245151475 -1 -1 text/html 34223/34223 GET
> http://extranet.p/prod/apex/f?
>

Old squid configurations contained an ACL defining anything with
"cgi-bin" or a question mark as a query and denying caching for matching
requests.

> 1245151444.920 RELEASE -1 FFFFFFFF C9251F1B9EC4A88A0EC41EFDFA014A35 404
> 1245151480 -1 -1 text/html 328/328 GET
> http://extranet.p/prod/apex/blank.gif
> 1245151470.982 RELEASE -1 FFFFFFFF DE94CD1480F08E3361199B0F762C2173 200
> 1245151504 -1 -1 text/html 34184/34184 GET
> http://extranet.p/prod/apex/f?
> 1245151474.116 RELEASE -1 FFFFFFFF 1EACA84E18C97E2E964185A85B4EACC0 404
> 1245151510 -1 -1 text/html 328/328 GET
> http://extranet.p/prod/apex/blank.gif
> 1245151499.351 RELEASE -1 FFFFFFFF 44A1536A48A6290890D5E3331C4B9B9A 200
> 1245151533 -1 -1 text/html 34142/34142 GET
> http://extranet.p/prod/apex/f?
> 1245151501.805 RELEASE -1 FFFFFFFF 76DBCDF798B911EC157E388F2280843B 404
> 1245151537 -1 -1 text/html 328/328 GET
> http://extranet.p/prod/apex/blank.gif
> 1245151520.811 RELEASE -1 FFFFFFFF 64C9C1BB78A21DE890D65D654836BDFF 200
> 1245151554 -1 -1 text/html 34221/34221 GET
> http://extranet.p/prod/apex/f?
> 1245151523.960 RELEASE -1 FFFFFFFF 2C115C9A2730865E874723F05BC13994 404
> 1245151560 -1 -1 text/html 328/328 GET
> http://extranet.p/prod/apex/blank.gif
>
> * My operating system is Ubuntu 8.04 LTS
> * Squid is working fine since 1 years
> * We have a average of 180 users per day
>
> Juan Manuel Perrote

Chris
Received on Tue Jun 16 2009 - 19:56:26 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 17 2009 - 12:00:04 MDT