<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I am resently having an issue on debian with TileCache. All pre-cached
tiles are rendered fine and tilecache_seed works perfectly with every
layer. However a WMS request via a browser to a tile that is not
cached give the following error:<br>
<br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<pre style="">An error occurred: <urlopen error (111, 'Connection refused')>
File "/var/lib/python-support/python2.5/TileCache/Service.py", line 221, in modPythonHandler
host )
File "/var/lib/python-support/python2.5/TileCache/Service.py", line 205, in dispatchRequest
return self.renderTile(tile, params.has_key('FORCE'))
File "/var/lib/python-support/python2.5/TileCache/Service.py", line 138, in renderTile
data = layer.render(tile)
File "/var/lib/python-support/python2.5/TileCache/Layer.py", line 440, in render
return self.renderTile(tile)
File "/var/lib/python-support/python2.5/TileCache/Layers/WMS.py", line 29, in renderTile
tile.data, response = wms.fetch()
File "/var/lib/python-support/python2.5/TileCache/Client.py", line 54, in fetch
response = self.client.open(urlrequest)
File "/usr/lib/python2.5/urllib2.py", line 381, in open
response = self._open(req, data)
File "/usr/lib/python2.5/urllib2.py", line 399, in _open
'_open', req)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
raise URLError(err)
</pre>
</span><br class="Apple-interchange-newline">
The portion of tilecache.cfg is:<br>
<br>
[cache]<br>
type=AWSS3<br>
access_key=xxx<br>
secret_access_key=yyy<br>
.<br>
.<br>
.<br>
[naip]<br>
bucket=17d4tcvdsd1mwwrfxa82-tilecache-naip<br>
type=WMSLayer<br>
url=<a class="moz-txt-link-freetext" href="http://www.lrcwe-data.net/TileCache/tilecache.py">http://www.lrcwe-data.net/TileCache/tilecache.py</a><br>
extension=png<br>
layers=naip<br>
srs=EPSG:26913<br>
bbox=139000,4094000,763000,4550000<br>
maxResolution=2048<br>
levels=12<br>
<br>
<br>
.<br>
.<br>
.<br>
<br>
This setup works perfectly with tilecache_seed but does not work when I
make a requests like<br>
<a
href="http://www.lrcwe-data.net/TileCache/y.py?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=naip&SRS=EPSG:26913&BBOX=213752,4303920,214776,4304944&width=256&height=256">http://www.lrcwe-data.net/TileCache/y.py?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=naip&SRS=EPSG:26913&BBOX=213752,4303920,214776,4304944&width=256&height=256</a><br>
if the tile is not cached. If the tile is cached the image is returned.<br>
<br>
I am running mod_python and apache2 (the latest debian releases).<br>
Thanks<br>
<br>
<br>
</body>
</html>