[Tilecache] 502 Proxy Error on localhost
Gilles Bassière
gilles.bassiere at makina-corpus.com
Thu Sep 25 11:55:30 EDT 2008
Hi Christopher,
Thanks for help. Below is a sample layer from my tilecache.cfg, all
layers roughly have the same configuration (except layer name).
[orthophoto.png]
bbox=972032.5,144784.796875,982541.6875,152132.25
extension=png
layers=orthophoto
mime_type=image/png
resolutions=14.994802295918367, 7.49740114795918350000,
3.74870057397959175000, 1.87435028698979587500, 0.93717514349489793750,
0.46858757174744896875, 0.23429378587372448437, 0.11714689293686224218,
0.05857344646843112109, 0.02928672323421556054, 0.01464336161710778027,
0.00732168080855389013, 0.00366084040427694506, 0.00183042020213847253,
0.00091521010106923626, 0.00045760505053461813
srs=EPSG:27563
type=WMS
url=http://localhost/geoserver/wms?transparent=true
Regards,
Gilles
Christopher Schmidt wrote:
> 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
>>
>
>
>
--
Gilles Bassiere
MAKINA CORPUS
30 rue des Jeuneurs
FR-75002 PARIS
+33 (0) 1 44 82 00 80
http://www.makina-corpus.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gilles_bassiere.vcf
Type: text/x-vcard
Size: 368 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20080925/3fd48587/gilles_bassiere.vcf
More information about the Tilecache
mailing list