[squid-users] HTTP/1.0 502 Bad Gateway Squid 2.7.Stable6

From: Christoph Moormann <cm_at_netuse.de>
Date: Fri, 23 Apr 2010 14:18:33 +0200

Hello,
after upgrading some proxies to a more recent release, i experienced
some sites not working correctly anymore.

The current proxy version i test with are:
Solaris 10:
Squid Cache: Version 2.7.STABLE6 (CSW packet)
Ubuntu 9.10
Version 2.7.STABLE (provided by distribution)

When accessing the following site:
http://www.fotofinder.com/
-> Search for any picture
-> Click a thumbnail

With no proxy enabled there is a picture on the left side and some text
on the right side.

With squid enabled, the picture is missing (broken link IE or no picture
at all FF), the text is there.

Example:
http://www.fotofinder.com/preview.ep?imagesid=821365&resultid=13&ownerid=281&searchresultid=02677e2b721ce1d3f0ed92485e9af07f&text=kiel&usrtrck=searchresult_link_icon_preview

Checking the link in the page i get:
http://imginfo.fotofinder.net/cgi-bin/nph-ffpic2.pl/?crossid=281&res=half&nomark=1&imagesid=821365&resource=extern

Calling this with the proxy enabled i get:
Invalid Response error was encountered while trying to process the request:

     GET
/cgi-bin/nph-ffpic2.pl/?crossid=281&res=half&nomark=1&imagesid=821365&resource=extern
HTTP/1.1
     Host: imginfo.fotofinder.net
     User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
     Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
     Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
     Accept-Encoding: gzip,deflate
     Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
     Keep-Alive: 115
     Proxy-Connection: keep-alive

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

Some things from the access and cache log (maybe not related).

access.log
TCP_MISS/502 2333 GET
http://imginfo.fotofinder.net/cgi-bin/nph-ffpic2.pl/WDD0912161812.jpg? -
DIRECT/212.87.63.67 text/html

cache.log
2010/04/23 12:54:54| destroying entry 0x221e5df0: 'Server:
squid/2.7.STABLE6'
2010/04/23 12:54:54| destroying entry 0x22252540: 'Date: Fri, 23 Apr
2010 10:54:54 GMT'
2010/04/23 12:54:54| destroying entry 0x22252468: 'Content-Type: text/html'
2010/04/23 12:54:54| destroying entry 0x222524f8: 'Content-Length: 1990'
2010/04/23 12:54:54| destroying entry 0x22253f18: 'X-Squid-Error:
ERR_INVALID_RESP 0'
2010/04/23 12:54:54| destroying entry 0x222562e0: 'X-Cache: MISS from proxy'
2010/04/23 12:54:54| destroying entry 0x22255f20: 'X-Cache-Lookup: MISS
from ubuntu910.intern.netuse.de:8080'
2010/04/23 12:54:54| destroying entry 0x22255f68: 'Via: 1.0 proxy:8080
(squid/2.7.STABLE6)'
2010/04/23 12:54:54| destroying entry 0x22255ed8: 'Connection: close'

My questions are:

- Has anyone an idea what is causing this?
- Does anyone know how to generally "fix" this on the squid side (even
if the error webserver is in error), as older 2.x version seem to could
handle this (though maybe violating standards)

Best regards
Christoph

-- 
Christoph Moormann
Vorstand: Dr. Joerg Posewang (Vorsitz), Dr. Roland Kaltefleiter, Andreas Seeger
Aufsichtsrat: Detlev Huebner (Vorsitz)
Sitz der AG: Kiel, HRB 5358 USt.ID: DE156073942
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Das unbefugte Kopieren dieser E-Mail oder die unbefugte Weitergabe der
enthaltenen Informationen ist nicht gestattet.
The information contained in this message is confidential or protected by
law. Any unauthorised copying of this message or unauthorised distribution
of the information contained herein is prohibited.
Received on Fri Apr 23 2010 - 12:18:37 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 23 2010 - 12:00:05 MDT