[squid-users] squid not caching anything to disk

From: Jason Maher <maher.jason.b@dont-contact.us>
Date: Wed, 06 Dec 2006 13:24:21 +1100

Hello,
I'm having a problem with squid that I have been unable to solve through
the FAQ or reading the mailing list.

Squid is not caching any files at all.

It looks as though all objects are being released from memory immediately.
Everything else (acls, authentication, proxying) is working fine.
The system is a fairly fresh Gentoo server, with gentoo's version of
squid 2.6 stable 4 installed (see below for squid -v)
The system is also running NAT for the network, but since proxying is
working I don't imagine this is an issue
The swapfile/cache is on a separate reiserfs formatted harddisk mounted
on /cache. I tested moving the the cache to /var/cache/squid (on the /
filesystem) and it made no difference.
The group and owner for /cache/squid are 'squid' and the permissions are 770
Running squid -z produces no errors.

I am hoping that this is a simple config error :-)

Details follow.....

/etc/squid/squid.conf (comments grepped out)

http_port 172.16.0.5:3128
icp_port 0
cache_peer 203.12.22.34 parent 8080 0 proxy-only no-query default
login=squid:squidpass
acl QUERY urlpath_regex cgi-bin /?
no_cache deny QUERY
cache_mem 32 MB
maximum_object_size_in_memory 128 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir ufs /cache/squid 4096 16 256
access_log /var/log/squid/access.log squid
debug_options ALL,1
auth_param ntlm program /usr/bin/ntlm_auth
--helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 100
auth_param ntlm keep_alive on
auth_param basic program /usr/bin/ntlm_auth
--helper-protocol=squid-2.5-basic
auth_param basic children 20
auth_param basic realm MGC Internet via Kleio > ntlm basic
auth_param basic credentialsttl 60 seconds
external_acl_type check_group ttl=30 children=50 %LOGIN
/usr/lib/squid/wbinfo_group.pl
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 10000 10001 10002 10003 10004 10005 10006
10007 10008 10009 10010
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 10000 10001 10002 10003 10004 10005 10006
10007 10008 10009 10010 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl mgc_hosts dst 172.16.0.0/255.255.0.0
acl local_hosts src 172.16.0.0/16 10.159.194.0/24
acl mgc dstdomain .melbourne-girls-co.edu.vic.gov.au
acl deet dstdomain .education.vic.gov.au .eduweb.vic.gov.au
.edumail.vic.gov.au .sofweb.vic.gov.au .det.vic.gov.au .tafe.vic.gov.au
.acfe.vic.gov.au .mpb.vic.gov.au .vass.vic.edu.au .vicone.net.au
.vcaa.vic.edu.au .vqa.vic.gov.au .vlesc.vic.gov.au
acl deet_hosts dst 10.0.0.0/255.0.0.0
acl authorised external check_group proxy_users
acl authenticated proxy_auth REQUIRED
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow authorised authenticated local_hosts
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user squid
cache_effective_group squid
visible_hostname kleio.melboure-girls-co.edu.vic.gov.au
always_direct allow mgc
always_direct allow mgc_hosts
always_direct allow deet
always_direct allow deet_hosts
never_direct allow all
strip_query_terms off
coredump_dir /var/cache/squid

version:

squid -v
Squid Cache: Version 2.6.STABLE4
configure options: '--prefix=/usr' '--bindir=/usr/bin'
'--exec-prefix=/usr' '--sbindir=/usr/sbin' '--localstatedir=/var'
'--mandir=/usr/share/man' '--sysconfdir=/etc/squid'
'--libexecdir=/usr/lib/squid' '--datadir=/usr/share/squid'
'--enable-auth=basic,digest,ntlm' '--enable-removal-policies=lru,heap'
'--enable-digest-auth-helpers=password'
'--enable-basic-auth-helpers=YP,SASL,PAM,LDAP,getpwnam,NCSA,SMB,MSNT,multi-domain-NTLM'

'--enable-external-acl-helpers=ldap_group,ip_user,session,unix_group,wbinfo_group'

'--enable-ntlm-auth-helpers=SMB,fakeauth' '--enable-ident-lookups'
'--enable-useragent-log' '--enable-cache-digests' '--enable-delay-pools'
'--enable-referer-log' '--enable-arp-acl' '--with-pthreads'
'--with-large-files' '--enable-htcp' '--enable-carp'
'--enable-follow-x-forwarded-for' '--disable-snmp' '--enable-ssl'
'--host=i686-pc-linux-gnu' '--enable-storeio=ufs,diskd,coss,aufs,null'
'--enable-async-io' '--enable-linux-netfilter' '--enable-epoll'
'CC=i686-pc-linux-gnu-gcc' 'CFLAGS=-O2 -march=pentium3
-fomit-frame-pointer' 'host_alias=i686-pc-linux-gnu'

/var/log/squid/store.log (sample > every entry is 'RELEASE -1 FFFFFFFF')

1165365999.006 RELEASE -1 FFFFFFFF BBC1BE23D707BD620740462D78C75B94 200
1165366096 -1 -1 text/html 70685/70685 GET
http://www.gymworld.de/gymboard/forumdisplay.php3?s=&forumid=19
1165365999.394 RELEASE -1 FFFFFFFF 1DB440924F394EB4328B420D48D8019A 200
1165366093 -1 -1 text/html -1/1110 GET
http://images.google.com.au/imgres?imgurl=http://www.mushroommusic.com.au/img_artist/hi_327.jpg&imgrefurl=http://www.mushroommusic.com.au/songwriters/songwriter.asp%3Fid%3D327&h=225&w=300&sz=21&hl=en&start=16&tbnid=V5SQV7v-vMfD-M:&tbnh=87&tbnw=116&prev=/images%3Fq%3Deskimo%2Bjoe%26svnum%3D10%26hl%3Den%26lr%3D
1165365999.731 RELEASE -1 FFFFFFFF CE6404A8C4CA518280D1B80AFF09071C 200
1165366090 -1 1165365997 text/html -1/23446 GET
http://www.quia.com/pages/tomlinsonnoel.html
1165366000.062 RELEASE -1 FFFFFFFF 6DB86CC8865F45327791EE40EF19311E 200
1165366099 1064786400 -1 image/gif 369/369 GET
http://www.gymworld.de/gymboard/images/dot_hotfolder.gif
1165366000.082 RELEASE -1 FFFFFFFF 83CDB2D46D796B55246A2B6473735658 200
1165366093 -1 -1 text/html -1/1718 GET
http://images.google.com.au/imgres?imgurl=http://www.mushroommusic.com.au/img_artist/hi_327.jpg&imgrefurl=http://www.mushroommusic.com.au/songwriters/songwriter.asp%3Fid%3D327&h=225&w=300&sz=21&tbnid=V5SQV7v-vMfD-M:&tbnh=87&tbnw=116&hl=en&prev=/images%3Fq%3Deskimo%2Bjoe%26svnum%3D10%26hl%3Den%26lr%3D&frame=small
1165366000.403 RELEASE -1 FFFFFFFF A47A3398879BE62D50D4B7B6174B8FFF 200
1165366094 973626761 1165538894 image/gif 1259/1259 GET
http://www.quia.com/img/create_classpage.gif
1165366000.515 RELEASE -1 FFFFFFFF 03F51373E1EA7BF68667FA2F2F0E46B1 200
1165366094 -1 -1 image/jpeg 3386/3386 GET
http://images.google.com.au/images?q=tbn:V5SQV7v-vMfD-M:http://www.mushroommusic.com.au/img_artist/hi_327.jpg
1165366002.888 RELEASE -1 FFFFFFFF A7077A660DC5708E308F4F31C97B710E 407
1165366002 0 1165366002 text/html 1626/1626 GET
http://go.microsoft.com/fwlink/?LinkId=32129&locale=409&geoid=f4&version=10.0.0.4036&userlocale=c09
1165366002.914 RELEASE -1 FFFFFFFF 575AAF59A826F23863AA517F9B1A3A5C 407
1165366002 0 1165366002 text/html 1626/1626 GET
http://go.microsoft.com/fwlink/?LinkId=32129&locale=409&geoid=f4&version=10.0.0.4036&userlocale=c09
1165366003.701 RELEASE -1 FFFFFFFF 64F0592EFB63C836546FDD1804F9DF93 304
1165366090 1163507871 -1 unknown -1/0 GET
http://www.richmondrowing.com.au/photos.htm
1165366003.851 RELEASE -1 FFFFFFFF 9DB3BFD832223E1AF19EF487F5D6A346 206
1165366090 1069121882 -1 image/jpeg 16519/16519 GET
http://www.richmondrowing.com.au/images/Social.web.jpg
1165366003.863 RELEASE -1 FFFFFFFF B236026A14FEC753780781EEAFE8E825 206
1165366090 1069121840 -1 image/jpeg 21047/21047 GET
http://www.richmondrowing.com.au/images/Fitness.web.jpg
1165366004.466 RELEASE -1 FFFFFFFF 9C96B1A69582A26AF5A03B73065D561C 302
1165366097 -1 -1 text/html 281/281 GET
http://go.microsoft.com/fwlink/?LinkId=32129&locale=409&geoid=f4&version=10.0.0.4036&userlocale=c09
1165366005.048 RELEASE -1 FFFFFFFF B849D2BA81ED876BCBBB8791A9E9ABF0 206
1165366090 1069121826 -1 image/jpeg 15080/15080 GET
http://www.richmondrowing.com.au/images/Blades.web.jpg
1165366005.401 RELEASE -1 FFFFFFFF 69B2FC8114890276E1437CB91A644C26
0 -1 -1 -1 unknown -1/0 GET
http://www.mushroommusic.com.au/songwriters/songwriter.asp?id=327
1165366005.828 RELEASE -1 FFFFFFFF DD993EE2357F1DB276343D9B0E73FF67 200
1165366099 1154998473 -1 image/jpeg 21165/21165 GET
http://www.mushroommusic.com.au/img_artist/hi_327.jpg
1165366006.001 RELEASE -1 FFFFFFFF 88D410AA315E659E36C566EFE6BE4ECC 404
1165366171 -1 -1 text/html 1635/1241 GET
http://www.mtsinai.k12.ny.us/images/WinterGraphics/happyholidays3.gif
1165366007.387 RELEASE -1 FFFFFFFF 9E0E240D31C1B8E2EAFAB04DCF60D921 200
1165366100 -1 -1 text/html -1/20349 GET
http://images.google.com.au/images?q=garbage+bag&svnum=10&hl=en&lr=&sa=G&imgsz=
1165366007.476 RELEASE -1 FFFFFFFF E0CD00417FC301301FDB22ACA7364304 407
1165366007 0 1165366007 text/html 1671/1671 GET
http://images.google.com.au/images?q=tbn:o-c_PGhXONzPUM:http://www.metrokc.gov/dnrp/swd/ecoconsumer/images/Kitchen_garbage-bag.jpg
1165366007.482 RELEASE -1 FFFFFFFF 26F63F7ED29E3AF0F31D2526F5AACAB7 407
1165366007 0 1165366007 text/html 1671/1671 GET
http://images.google.com.au/images?q=tbn:o-c_PGhXONzPUM:http://www.metrokc.gov/dnrp/swd/ecoconsumer/images/Kitchen_garbage-bag.jpg
1165366007.619 RELEASE -1 FFFFFFFF B8B3AC1DB59580B44F90D5B6FF10B629 200
1165366101 -1 -1 image/jpeg 2095/2095 GET
http://images.google.com.au/images?q=tbn:JLZ7vgwU8QChHM:http://www.wastaway.com/images/Trash-Bag.gif
1165366007.736 RELEASE -1 FFFFFFFF 4AB06BE24517F2A2B0DE1775ABE7B8B6 200
1165366101 -1 -1 image/jpeg 3391/3391 GET
http://images.google.com.au/images?q=tbn:Zwz_-LdEf19T7M:http://www.eastlink.com.hk/Plastic%2520bag.jpg
1165366007.826 RELEASE -1 FFFFFFFF D4A629261579B25C3AFD56B3B23BA715 301
1165366101 -1 -1 text/html 183/183 GET
http://windowsmedia.com/MediaGuide/Images/SmallArrow.gif
1165366007.829 RELEASE -1 FFFFFFFF 5E5AA77F2EB20A455177181192739C4C 304
1165366101 989429392 1165366007 unknown -1/0 GET
http://redir.windowsmedia.com/pv/WM3-en-au/8/-166/d.htm?WMPFriendly=true&version=10.0.0.4036&search=teenage+dirtbag|&results=25973&page=3&type=mg&num=0&culture=en-au&version=10.0.0.4036&WMPFriendly=true
1165366007.832 RELEASE -1 FFFFFFFF 37B8D97D6084E8881287C40ED63F9F0A 301
1165366101 -1 -1 text/html 180/180 GET
http://windowsmedia.com/Mediaguide/images/WMCLogo.png
1165366007.868 RELEASE -1 FFFFFFFF BEA489E6637C4CFCC0E5F0883FD965B2 200
1165366101 -1 -1 image/jpeg 3242/3242 GET
http://images.google.com.au/images?q=tbn:L3HDLeuSTbZJeM:http://www.src-group.com/images/garbage%2520bag.jpg
1165366008.001 RELEASE -1 FFFFFFFF C13E76A6259315D678E1A6AA12A1A8E1 200
1165366101 -1 -1 image/jpeg 1584/1584 GET
http://images.google.com.au/images?q=tbn:o-c_PGhXONzPUM:http://www.metrokc.gov/dnrp/swd/ecoconsumer/images/Kitchen_garbage-bag.jpg
1165366008.003 RELEASE -1 FFFFFFFF F78ED03D79496A56DB07D2A0BB2F80CA 200
1165366101 -1 -1 image/jpeg 3313/3313 GET
http://images.google.com.au/images?q=tbn:ZN5LplrvvbLLJM:http://wqm.igsb.uiowa.edu/publications/fact%2520sheets/2004-6/Garbage%2520Bag.gif
1165366008.384 RELEASE -1 FFFFFFFF 72D964298146C76512400C32561DAE98 200
1165366102 -1 -1 image/jpeg 2169/2169 GET
http://images.google.com.au/images?q=tbn:9w6xekUHooKi8M:http://www.winnipeg.ca/waterandwaste/images/recycle/phil_catching.gif
1165366008.385 RELEASE -1 FFFFFFFF EEE8EB777F4763C2155478A33CA6AD56 304
1165366102 -1 -1 unknown -1/0 GET
http://gallery.richmondrowing.com.au/css/embedded_style.css.default
1165366008.401 RELEASE -1 FFFFFFFF 0C240789CF93053EED324D7162118EEB 200
1165366102 -1 -1 image/jpeg 4431/4431 GET
http://images.google.com.au/images?q=tbn:d01MeBcChy6oGM:http://www.kyes.com/damage/bag.jpg
1165366008.875 RELEASE -1 FFFFFFFF 2ADB6E6C87B96F7191434B50CC910669 200
1165366102 -1 -1 image/jpeg 2618/2618 GET
http://images.google.com.au/images?q=tbn:JQXy2lnZYinvLM:http://www.plasticbagsource.com/Pics/LGB.jpg
1165366008.875 RELEASE -1 FFFFFFFF 1B9ACCB84A99268C5D4F6BB9686CFFC1 304
1165366102 -1 -1 unknown -1/0 GET
http://gallery.richmondrowing.com.au/html_wrap/frames/simple_book/pixel_trans.gif
1165366008.892 RELEASE -1 FFFFFFFF D23BEE1A4C8A78CCEE4A57670B2829DB 200
1165366102 -1 -1 image/jpeg 4261/4261 GET
http://images.google.com.au/images?q=tbn:Rm-bQCU9BAD_EM:http://tea.armadaproject.org/Images/stoyles/stoyles_garbage_bag.JPG.jpg
1165366008.892 RELEASE -1 FFFFFFFF C6C5CAB1ADCF55A508BAA454953BEA06 200
1165366102 -1 -1 image/jpeg 4436/4436 GET
http://images.google.com.au/images?q=tbn:ck54SqiQrogPHM:http://www.calvarychapel.com/auburn/images/School/Gallery/spirit%2520week%2520garbage%2520bag-tin%2520foil%2520day.jpg
1165366008.955 RELEASE -1 FFFFFFFF 53A5B6F607DE5E35714A996A1BBF753B 304
1165366102 -1 -1 unknown -1/0 GET
http://gallery.richmondrowing.com.au/css/standalone_style.css.default

/var/log/squid/cache.log (after squid -k reconfigure)

2006/12/06 11:01:14| Reconfiguring Squid Cache (version 2.6.STABLE4)...
2006/12/06 11:01:14| FD 179 Closing HTTP connection
2006/12/06 11:01:14| Closing unlinkd pipe on FD 182
2006/12/06 11:01:14| Cache dir '/cache/squid' size remains unchanged at
4194304 KB
2006/12/06 11:01:14| Initialising SSL.
2006/12/06 11:01:14| User-Agent logging is disabled.
2006/12/06 11:01:14| Referer logging is disabled.
2006/12/06 11:01:14| DNS Socket created at 0.0.0.0, port 32774, FD 7
2006/12/06 11:01:14| Adding nameserver 172.16.2.12 from /etc/resolv.conf
2006/12/06 11:01:14| Adding nameserver 10.180.1.1 from /etc/resolv.conf
2006/12/06 11:01:14| helperStatefulOpenServers: Starting 100 'ntlm_auth'
processes
2006/12/06 11:01:17| helperOpenServers: Starting 20 'ntlm_auth' processes
2006/12/06 11:01:18| helperOpenServers: Starting 50 'wbinfo_group.pl'
processes
2006/12/06 11:01:19| Unlinkd pipe opened on FD 182
2006/12/06 11:01:19| Accepting proxy HTTP connections at 172.16.0.5,
port 3128, FD 179.
2006/12/06 11:01:19| HTCP Disabled.
2006/12/06 11:01:19| WCCP Disabled.
2006/12/06 11:01:19| Configuring Parent 203.12.22.34/8080/0
2006/12/06 11:01:19| Loaded Icons.
2006/12/06 11:01:19| Ready to serve requests.
2006/12/06 11:01:20| temporary disabling (Forbidden) digest from
203.12.22.34

Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education & Training.
Received on Tue Dec 05 2006 - 19:24:48 MST

This archive was generated by hypermail pre-2.1.9 : Mon Jan 01 2007 - 12:00:01 MST