RE: [squid-users] Squid TCP_MISS/502

From: Dawie Pretorius <dawie_at_tradebridge.co.za>
Date: Wed, 20 Jan 2010 11:39:06 +0200

Hello Amos

Thanks for coming back to me,

I upgraded to squid Beta Squid 3.1.0.15, /var/log/squid/access.log now has this error:

1263975667.799 92 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? Xxxxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975670.945 3115 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975671.136 164 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads xxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975674.302 3135 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975677.539 3208 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975680.722 3155 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975680.923 170 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975681.068 117 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975681.152 55 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxx DIRECT/72.14.204.154 text/html
1263975681.248 66 172.16.9.158 TCP_MISS/302 1361 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxx DIRECT/72.14.204.154 text/html

1263975553.382 240861 172.16.9.158 TCP_MISS/502 7688 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxxx DIRECT/72.14.204.155 text/html
1263975553.401 240869 172.16.9.158 TCP_MISS/502 7680 GET http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxxxxxx DIRECT/72.14.204.155 text/html

Here is the cache.log

2010/01/20 10:25:25| Starting Squid Cache version 3.1.0.15 for x86_64-unknown-linux-gnu...
2010/01/20 10:25:25| Process ID 20800
2010/01/20 10:25:25| With 1024 file descriptors available 2010/01/20 10:25:25| Initializing IP Cache...
2010/01/20 10:25:25| DNS Socket created at [::], FD 7 2010/01/20 10:25:25| Adding nameserver 208.67.222.222 from squid.conf 2010/01/20 10:25:25| Adding nameserver 208.67.220.220 from squid.conf 2010/01/20 10:25:25| helperOpenServers: Starting 10/10 'ntlm_auth' processes 2010/01/20 10:25:25| Unlinkd pipe opened on FD 32 2010/01/20 10:25:25| Swap maxSize 102400 + 262144 KB, estimated 28041 objects 2010/01/20 10:25:25| Target number of buckets: 1402 2010/01/20 10:25:25| Using 8192 Store buckets 2010/01/20 10:25:25| Max Mem size: 262144 KB 2010/01/20 10:25:25| Max Swap size: 102400 KB 2010/01/20 10:25:25| Version 1 of swap file without LFS support detected...
2010/01/20 10:25:25| Rebuilding storage in /var/spool/squid (DIRTY) 2010/01/20 10:25:25| Using Least Load store dir selection 2010/01/20 10:25:25| Set Current Directory to /var/spool/squid 2010/01/20 10:25:25| Loaded Icons.
2010/01/20 10:25:25| Accepting HTTP connections at [::]:3128, FD 36.
2010/01/20 10:25:25| Accepting ICP messages at [::]:3130, FD 37.
2010/01/20 10:25:25| HTCP Disabled.
2010/01/20 10:25:25| Squid modules loaded: 0 2010/01/20 10:25:25| Ready to serve requests.
2010/01/20 10:25:25| Store rebuilding is 49.02% complete 2010/01/20 10:25:25| Done reading /var/spool/squid swaplog (8354 entries) 2010/01/20 10:25:25| Finished rebuilding storage from disk.
2010/01/20 10:25:25| 8187 Entries scanned
2010/01/20 10:25:25| 0 Invalid entries.
2010/01/20 10:25:25| 0 With invalid flags.
2010/01/20 10:25:25| 8020 Objects loaded.
2010/01/20 10:25:25| 0 Objects expired.
2010/01/20 10:25:25| 167 Objects cancelled.
2010/01/20 10:25:25| 0 Duplicate URLs purged.
2010/01/20 10:25:25| 0 Swapfile clashes avoided.
2010/01/20 10:25:25| Took 0.03 seconds (276570.80 objects/sec).
2010/01/20 10:25:25| Beginning Validation Procedure
2010/01/20 10:25:25| Completed Validation Procedure
2010/01/20 10:25:25| Validated 16065 Entries
2010/01/20 10:25:25| store_swap_size = 92156
2010/01/20 10:25:26| storeLateRelease: released 0 objects

Here is the page that I get back from the browser:

ERROR
The requested URL could not be retrieved

Invalid Response error was encountered while trying to process the request:

    GET /pagead/ads?client=ca-pub-7266757337600734&format=336x280_as&output=html&h=280&w=336&lmt=1199983288&channel=5629109116%2B6771450170%2B2275486144&ad_type=text_image&alternate_ad_url=http%3A%2F%2Fwww.mail-archive.com%2Fblank.png&color_bg=FFFFFF&color_border=FFFFFF&color_link=006792&color_text=000000&color_url=006792&flash=10.0.32&url=http%3A%2F%2Fwww.mail-archive.com%2Fsquid-users%40squid-cache.org%2Fmsg51945.html&dt=1263975312151&correlator=1263975312153&frm=0&ga_vid=866186005.1263975312&ga_sid=1263975312&ga_hid=523487483&ga_fc=0&u_tz=120&u_his=1&u_java=0&u_h=1024&u_w=1280&u_ah=1024&u_aw=1280&u_cd=32&u_nplug=8&u_nmime=24&biw=1280&bih=862&ref=http%3A%2F%2Fwww.google.co.za%2Furl%3Fsa%3Dt%26source%3Dweb%26ct%3Dres%26cd%3D1%26ved%3D0CAcQFjAA%26url%3Dhttp%253A%252F%252Fwww.mail-archive.com%252Fsquid-users%2540squid-cache.org%252Fmsg51945.html%26rct%3Dj%26q%3DTCP_MISS%252F502%2Bsquid%26ei%3DV7tWS7yqK4S9lAeP-dz3Aw%26usg%3DAFQjCNGZUlUd4iFBeTKD1KXThtG3w31cLQ&fu=0&ifi=1&dtd=31&xpc=WgwVHxdvOD&p=http%3A//www.mail-archive.com HTTP/1.1
    Host: googleads.g.doubleclick.net
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    Referer: http://www.mail-archive.com/squid-users@squid-cache.org/msg51945.html
    Cookie: test_cookie=CheckForPermission; id=22ac216e0800009b||t=1263975130|et=730|cs=mr_u8kmr
    Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAIgAAAAYABgAoAAAABAAEABIAAAAHgAeAFgAAAASABIAdgAAAAAAAAC4AAAABYKIogUBKAoAAAAPVABCAEEARgBSAEkAQwBBAGQAYQB3AGkAZQAuAHAAcgBlAHQAbwByAGkAdQBzAEQAQQBXAEkARQBQAC0ATABUACncpJrZCLgCAAAAAAAAAAAAAAAAAAAAAOpZoYZfwwoauJ0u1F2AVKjAm/c35ZRlVw==

The HTTP Response message received from the contacted server could not be understood or was otherwise malformed. Please contact the site operator.

Your cache administrator may be able to provide you with more details about the exact nature of the problem if needed.

Your cache administrator is webmaster.

Generated Wed, 20 Jan 2010 08:19:13 GMT by XXXXXXXXXXXXX (squid/3.1.0.15)

Is this something in squid causing this? Or is this something on the network? If you are not getting this errors, then this has to be something on my side?

Thanks again,
Dawie

-----Original Message-----
From: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
Sent: 20 January 2010 09:37 AM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Squid TCP_MISS/502

Dawie Pretorius wrote:
> To whom it may concern
>
> squid.conf:
<snip>

>
> Squid version: Squid Cache: Version 3.0.STABLE10 configure options:

There is one possible problem. Please use 3.0.STABLE19+.

>
> CentOS release 5.4 (Final)
>
> 1263963136.820 240992 172.16.9.158 TCP_MISS/502 6012 GET
> http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxx
> DIRECT/72.14.204.154 text/html

<snip repeats>

>
>
> ERROR The requested URL could not be retrieved
>
> Invalid Response error was encountered while trying to process the
> request:
>
> GET
> /pagead/ads?client=ca-pub-5884878215917141&format=728x90_as&output=htm
> l&h=90&w=728&lmt=1263962894&ad_type=text_image&alternate_ad_url=http%3
> A%2F%2Fgmane.org%2Fblank.php&color_bg=FFFFFF&color_border=FFFFFF&color
> _link=002390&color_text=000000&color_url=000000&flash=10.0.32&url=http
> %3A%2F%2Farticle.gmane.org%2Fgmane.comp.web.squid.general%2F77905&dt=1
> 263962895706&correlator=1263962895712&frm=0&ga_vid=1818576121.12639628
> 96&ga_sid=1263962896&ga_hid=1380304372&ga_fc=0&u_tz=120&u_his=1&u_java
> =0&u_h=1024&u_w=1280&u_ah=1024&u_aw=1280&u_cd=32&u_nplug=8&u_nmime=24&
> biw=1263&bih=862&ref=http%3A%2F%2Fwww.google.co.za%2Furl%3Fsa%3Dt%26so
> urce%3Dweb%26ct%3Dres%26cd%3D1%26ved%3D0CAkQFjAA%26url%3Dhttp%253A%252
> F%252Farticle.gmane.org%252Fgmane.comp.web.squid.general%252F77905%26r
> ct%3Dj%26q%3DTCP_MISS%252F502%2Bsolved%2Bsquid%26ei%3DyIpWS7_FN5WHlAfS
> tPDyAw%26usg%3DAFQjCNGDv9EHtorrL30y-3aYaWt_UBHeog&loc=http%3A%2F%2Fart
> icle.gmane.org%2Fgmane.comp.web.squid.general%2F77905&fu=0&ifi=1&dtd=1
> 45&xpc=S
MG2BszZPp&p=http%3A//article.gmane.org
> HTTP/1.1

WOW. If only I could say I'm surprised.
The URL itself is almost as long as the HTML page being sent in response.

Here is the problem in plain english:
> The HTTP Response message received from the contacted server could not
> be understood or was otherwise malformed.

Check your cache.log file to see what Squid is reporting about it there.

<snip> ...

>
> Generated Wed, 20 Jan 2010 04:52:16 GMT by XXXXXXXXXXXXX
> (squid/3.0.STABLE10)
>
> Error TCP_MISS/502 followed by this page gets displayed, when
> disabling proxy googleads.g.doubleclick.net/pagead/ads? Displays
> fine, is there something is squid.conf that is causing this not to
> load?
>

I've done some tests here with a copy of 3.0.STABLE21 and I can't replicate that. The page always comes back.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE21
   Current Beta Squid 3.1.0.15
-----Original Message-----
From: Amos Jeffries [mailto:squid3_at_treenet.co.nz] 
Sent: 20 January 2010 09:37 AM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Squid TCP_MISS/502
Dawie Pretorius wrote:
> To whom it may concern
> 
> squid.conf:
<snip>
> 
> Squid version: Squid Cache: Version 3.0.STABLE10 configure options:
There is one possible problem. Please use 3.0.STABLE19+.
> 
> CentOS release 5.4 (Final)
> 
> 1263963136.820 240992 172.16.9.158 TCP_MISS/502 6012 GET
> http://googleads.g.doubleclick.net/pagead/ads? xxxxxxxxxxxx
> DIRECT/72.14.204.154 text/html
<snip repeats>
> 
> 
> ERROR The requested URL could not be retrieved
> 
> Invalid Response error was encountered while trying to process the
> request:
> 
> GET
> /pagead/ads?client=ca-pub-5884878215917141&format=728x90_as&output=html&h=90&w=728&lmt=1263962894&ad_type=text_image&alternate_ad_url=http%3A%2F%2Fgmane.org%2Fblank.php&color_bg=FFFFFF&color_border=FFFFFF&color_link=002390&color_text=000000&color_url=000000&flash=10.0.32&url=http%3A%2F%2Farticle.gmane.org%2Fgmane.comp.web.squid.general%2F77905&dt=1263962895706&correlator=1263962895712&frm=0&ga_vid=1818576121.1263962896&ga_sid=1263962896&ga_hid=1380304372&ga_fc=0&u_tz=120&u_his=1&u_java=0&u_h=1024&u_w=1280&u_ah=1024&u_aw=1280&u_cd=32&u_nplug=8&u_nmime=24&biw=1263&bih=862&ref=http%3A%2F%2Fwww.google.co.za%2Furl%3Fsa%3Dt%26source%3Dweb%26ct%3Dres%26cd%3D1%26ved%3D0CAkQFjAA%26url%3Dhttp%253A%252F%252Farticle.gmane.org%252Fgmane.comp.web.squid.general%252F77905%26rct%3Dj%26q%3DTCP_MISS%252F502%2Bsolved%2Bsquid%26ei%3DyIpWS7_FN5WHlAfStPDyAw%26usg%3DAFQjCNGDv9EHtorrL30y-3aYaWt_UBHeog&loc=http%3A%2F%2Farticle.gmane.org%2Fgmane.comp.web.squid.general%2F77905&fu=0&ifi=1&dtd=145&xpc=S
MG2BszZPp&p=http%3A//article.gmane.org
> HTTP/1.1
WOW. If only I could say I'm surprised.
The URL itself is almost as long as the HTML page being sent in response.
Here is the problem in plain english:
> The HTTP Response message received from the contacted server could
> not be understood or was otherwise malformed.
Check your cache.log file to see what Squid is reporting about it there.
<snip> ...
> 
> Generated Wed, 20 Jan 2010 04:52:16 GMT by XXXXXXXXXXXXX
> (squid/3.0.STABLE10)
> 
> Error TCP_MISS/502 followed by this page gets displayed, when
> disabling proxy  googleads.g.doubleclick.net/pagead/ads? Displays
> fine, is there something is squid.conf that is causing this not to
> load?
> 
I've done some tests here with a copy of 3.0.STABLE21 and I can't 
replicate that. The page always comes back.
Amos
-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE21
   Current Beta Squid 3.1.0.15
 
Note: Privileged/Confidential information may be contained in this message and may be subject to legal privilege. Access to this e-mail by anyone other than the intended is unauthorised. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents ) or take any action in reliance on it. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use. The views, opinions, conclusions and other information expressed in this electronic mail are not given or endorsed by the company unless otherwise indicated by an authorized representative independent of this message.
Received on Wed Jan 20 2010 - 09:38:41 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 20 2010 - 12:00:04 MST