[Tilecache] Error 2 and Error 9

John Cole jcole at carinatek.com
Tue Sep 2 17:36:16 EDT 2008


I'm getting a lot of Error 2 and Error 9 500 results from TileCache
2.04.  I'm running on Apache 2.2.6 mod_python on Windows 2003 Server.
These seem to be random errors and if you resend the same query, it
works 99% of the time.

Any help would be greatly appreciated as OpenLayers is showing pink
tiles for these (retry doesn't seem to help).  I have a mod in OL that
helps somewhat for FF2/3 but it doesn't work in IE7, Safari or Chrome.

Thanks,

John

My TileCache config for this layer is:

[maps4ms2008-1]
type=WMS
url=http://gemini.carinatek.com/ms/mapserv.exe?map=/maps/maps4ms_standar
d_2008-1/map/maps4ms_standard_2008-1_tiger_global_vector.map&
layers=world_countries_large_scale,world_countries_mid_scale,world_count
ries_small_scale1,world_countries_small_scale2,built_up_areas,rivers_and
_streams,canals,regional_borders,international_borders,roads,railroads,s
ea_labels,ocean_labels,continent_labels_large_scale,country_labels,state
_province_labels,world_major_cities,world_capitals,island_labels,us_smal
l_scale_land,us_land,small_scale_urban_areas,us_urban_areas,us_land_use,
us_small_scale_parks,us_parks,us_water,inland_water_small_scale,inland_w
ater,inland_water_no_us,us_rivers_streams,us_small_scale_state_borders,u
s_large_scale_state_borders,us_international_borders,us_county_borders,u
s_county_labels,us_ramps,us_trails,us_ferries,us_streets,us_railways,us_
small_scale_secondary_roads,us_secondary_roads,us_small_scale_primary_ro
ads,us_primary_roads,us_primary_road_shields_small_scale,us_primary_road
_shields,us_secondary_road_shields_small_scale,us_secondary_road_shields
,us_populated_places
extension=jpeg
resolutions=0.19048690128252546,0.09524345064126273,0.047621725320631365
,0.023810862660315683,0.012699126752168366,0.006349563376084183,0.002381
086266031568,0.0012699126752168362,0.0006349563376084181,0.0003968477110
052614,0.00023810862660315684,0.0001111173590814732,0.000055558679540736
6,0.00003809738025650509,0.000023810862660315683,0.000007936954220105226
,0.000003809738025650509,0.0000019048690128252545
metaTile=true
metaSize=5,5

Here are some example Errors (captured with Net Fiddler)

--------------------------------
GET
/tilecache/tilecache.py?LAYERS=maps4ms2008-1&FORMAT=image%2Fpng&SERVICE=
WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SR
S=EPSG%3A4326&REQUEST=GetMap&BBOX=-82.16105103662211,36.57790586624984,-
82.16056339015483,36.57839351271713&WIDTH=256&HEIGHT=256 HTTP/1.1
--------------------------------
319
An error occurred: [Error 2] The system cannot find the file specified:
'd:/tilecache\\maps4ms2008-1\\17\\000\\200\\638\\000\\259\\569.jpeg'
  File "D:/TileCache-2.04\TileCache\Service.py", line 224, in
modPythonHandler
    host )
  File "D:/TileCache-2.04\TileCache\Service.py", line 208, in
dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "D:/TileCache-2.04\TileCache\Service.py", line 138, in renderTile
    data = layer.render(tile)
  File "D:/TileCache-2.04\TileCache\Layer.py", line 429, in render
    image = self.renderMetaTile(metatile, tile)
  File "D:/TileCache-2.04\TileCache\Layer.py", line 416, in
renderMetaTile
    self.cache.set( subtile, subdata )
  File "D:/TileCache-2.04\TileCache\Caches\Disk.py", line 85, in set
    os.unlink(filename)


0
-------------------------------
TileCache has only created levels 00-10 so there isn't a level 17


------------------------------
GET
/tilecache/tilecache.py?LAYERS=maps4ms2008-1&FORMAT=image%2Fpng&SERVICE=
WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SR
S=EPSG%3A4326&REQUEST=GetMap&BBOX=-82.16153868308939,36.57790586624984,-
82.16105103662211,36.57839351271713&WIDTH=256&HEIGHT=256 HTTP/1.1
------------------------------
2dc
An error occurred: [Error 2] The system cannot find the file specified
  File "D:/TileCache-2.04\TileCache\Service.py", line 224, in
modPythonHandler
    host )
  File "D:/TileCache-2.04\TileCache\Service.py", line 208, in
dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "D:/TileCache-2.04\TileCache\Service.py", line 138, in renderTile
    data = layer.render(tile)
  File "D:/TileCache-2.04\TileCache\Layer.py", line 429, in render
    image = self.renderMetaTile(metatile, tile)
  File "D:/TileCache-2.04\TileCache\Layer.py", line 416, in
renderMetaTile
    self.cache.set( subtile, subdata )
  File "D:/TileCache-2.04\TileCache\Caches\Disk.py", line 86, in set
    os.rename(tmpfile, filename)


0
--------------------------------


-------------------------------
GET
/tilecache/tilecache.py?LAYERS=maps4ms2008-1&FORMAT=image%2Fpng&SERVICE=
WMS&VERSION=1.1.1&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SR
S=EPSG%3A4326&REQUEST=GetMap&BBOX=-82.16202632955667,36.5793688056517,-8
2.16153868308939,36.57985645211898&WIDTH=256&HEIGHT=256 HTTP/1.1
-------------------------------
1ac
An error occurred: [Errno 9] Bad file descriptor
  File "D:/TileCache-2.04\TileCache\Service.py", line 224, in
modPythonHandler
    host )
  File "D:/TileCache-2.04\TileCache\Service.py", line 208, in
dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "D:/TileCache-2.04\TileCache\Service.py", line 149, in renderTile
    tile.bbox(), tile.x, tile.y, tile.z, (time.time() - start),
layer.debug) )


0
-------------------------------





More information about the Tilecache mailing list