[Tilecache] Connection refused error in TileCache

Bruce Rindahl rindahl at lrcwe.com
Thu Feb 5 14:26:08 EST 2009


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:

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)


The portion of tilecache.cfg is:

[cache]
type=AWSS3
access_key=xxx
secret_access_key=yyy
.
.
.
[naip]
bucket=17d4tcvdsd1mwwrfxa82-tilecache-naip
type=WMSLayer
url=http://www.lrcwe-data.net/TileCache/tilecache.py
extension=png
layers=naip
srs=EPSG:26913
bbox=139000,4094000,763000,4550000
maxResolution=2048
levels=12


.
.
.

This setup works perfectly with tilecache_seed but does not work when I 
make a requests like
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>
if the tile is not cached.  If the tile is cached the image is returned.

I am running mod_python  and apache2 (the latest debian releases).
Thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20090205/32969e4a/attachment.html


More information about the Tilecache mailing list