[Tilecache] 502 Proxy Error on localhost

Christopher Schmidt crschmidt at metacarta.com
Thu Sep 25 11:27:49 EDT 2008


On Thu, Sep 25, 2008 at 05:18:31PM +0200, Gilles Bassière wrote:
> Hi list,
> 
> I face a weird problem with TileCache on windows. The "basic" WMS layer 
> works fine but I get a "502 Proxy Error" with WMS layers served from 
> localhost. More details :
> - The system is Windows XP version 2002 SP3 and Python is 2.5.2.
> - WMS stream come from Geoserver 1.6.4 installed in Tomcat. Tomcat is 
> connected to Apache through mod_jk.
> - TileCache run in CGI mode.
> 
> I said it's weird for two reasons. First there's no proxy on localhost, 
> so why Apache complains about a proxy? Second, the WMS request failed on 
> TileCache but worked great when sent straight to GeoServer, so is there 
> something unusual in TileCache HTTP request?

What is the "url" in your type=WMS configuration?

> Below is the stacktrace returned by TileCache when requesting tiles from 
> local GeoServer :
> An error occurred: HTTP Error 502: Proxy Error ( The specified network 
> name is no longer available.  )
>  File 
> "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Service.py", line 
> 264, in cgiHandler
>    format, image = service.dispatchRequest( params, path_info, 
> req_method, host )
>  File 
> "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Service.py", line 
> 182, in dispatchRequest
>    return self.renderTile(tile, params.has_key('FORCE'))
>  File 
> "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Service.py", line 
> 119, in renderTile
>    data = layer.render(tile)
>  File "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Layer.py", 
> line 250, in render
>    image = self.renderMetaTile(metatile, tile)
>  File "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Layer.py", 
> line 212, in renderMetaTile
>    data = self.renderTile(metatile)
>  File 
> "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Layers\WMS.py", 
> line 20, in renderTile
>    tile.data, response = wms.fetch()
>  File 
> "C:\WEBMAPPING\apache\cgi-bin\TileCache-2.01\TileCache\Client.py", line 
> 46, in fetch
>    response = self.client.open(urlrequest)
>  File "C:\WEBMAPPING\python25\lib\urllib2.py", line 387, in open
>    response = meth(req, response)
>  File "C:\WEBMAPPING\python25\lib\urllib2.py", line 498, in http_response
>    'http', request, response, code, msg, hdrs)
>  File "C:\WEBMAPPING\python25\lib\urllib2.py", line 425, in error
>    return self._call_chain(*args)
>  File "C:\WEBMAPPING\python25\lib\urllib2.py", line 360, in _call_chain
>    result = func(*args)
>  File "C:\WEBMAPPING\python25\lib\urllib2.py", line 506, in 
> http_error_default
>    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> 
> Does someone has experience to share regarding this issue?
> Gilles
> 
> -- 
> Gilles Bassiere
> MAKINA CORPUS
> 30 rue des Jeuneurs
> FR-75002 PARIS
> +33 (0) 1 44 82 00 80
> http://www.makina-corpus.com
> 

> begin:vcard
> fn;quoted-printable:Gilles Bassi=C3=A8re
> n;quoted-printable:Bassi=C3=A8re;Gilles
> org:Makina Corpus;GIS
> adr;quoted-printable:;;30 rue des Je=C3=BBneurs;Paris;;FR-75011;France
> email;internet:gilles.bassiere at makina-corpus.com
> title:Web GIS developper
> tel;work:+33 (0) 1 44 82 00 80
> x-mozilla-html:FALSE
> url:http://www.makina-corpus.com
> version:2.1
> end:vcard
> 

> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache


-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list