[MapProxy] mapproxy and mapnik2

Luca Delucchi lucadeluge at gmail.com
Fri Sep 7 06:15:08 PDT 2012


2012/8/6 Luca Delucchi <lucadeluge at gmail.com>:
> Now the mapproxy-seeds it's finished and it's possible to see the
> tiles on the demo client. But when I zoom to a level zoom that I
> didn't pre-rendering (for example 6) I obtain again the error of lock.
> This could be a problem of mapnik when the request come from the web?
> Someone never use mapproxy with mapnik?
>
> 2012-08-05 15:21:55,719 - CRITICAL - mapproxy.wsgiapp - fatal error in
> tms for /tms/1.0.0/osm_EPSG900913/6/1197/1535.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
>

Hi continue to have this problem? how could debug it to understand at
least where the problem is?

I would like to know if the problem is on mapnik integration with
mapproxy or if the problem in on our machine. I try to replicate this
error but I cannot, I create a local copy and all is working well

Thanks a lot


-- 
ciao
Luca

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


More information about the MapProxy mailing list