[MapProxy] mapproxy and mapnik2

Luca Delucchi lucadeluge at gmail.com
Thu Aug 2 07:59:56 PDT 2012


Hi everybody,
I'm quite new about mapproxy, and usually I used it only like cache
system of WMS. Now I have to set up it with mapnik2.
I'm using mapproxy 1.4 installed by pip.
I test mapnik2 with my xml file and there are no problems, but when I
try to look my service on demo page I obtain this into mapproxy.log:

2012-08-02 16:15:00,136 - CRITICAL - mapproxy.wsgiapp - fatal error in
tms for /tms/1.0.0/osm_EPSG900913/1/0/1.png
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/wsgiapp.py",
line 133, in __call__
    resp = self.handlers[handler_name].handle(req)
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/service/base.py",
line 30, in handle
    return handler(parsed_req)
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/service/tile.py",
line 68, in map
    tile = layer.render(tile_request, use_profiles=tile_request.use_profiles)
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/service/tile.py",
line 211, in render
    tile = self.tile_manager.load_tile_coord(tile_coord, with_metadata=True)
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/cache/tile.py",
line 105, in load_tile_coord
    created_tiles = creator.create_tiles([tile])
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/cache/tile.py",
line 227, in create_tiles
    created_tiles = self._create_meta_tiles(meta_tiles)
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/cache/tile.py",
line 299, in _create_meta_tiles
    created_tiles.extend(self._create_meta_tile(meta_tile))
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/cache/tile.py",
line 306, in _create_meta_tile
    with self.tile_mgr.lock(main_tile):
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/platform/cpython/lock.py",
line 42, in __enter__
    self.lock()
  File "/usr/local/lib/python2.6/dist-packages/mapproxy/platform/cpython/lock.py",
line 72, in lock
    raise LockTimeout('another process is still running with our lock')
LockTimeout: another process is still running with our lock

I set up mapproxy embedded into apache2 because it's the simple way for me.
Have you some idea how to solve this problem?

thanks

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the MapProxy mailing list