[MapProxy] Tile Locks

Максим Хитрин hitrymax at gmail.com
Tue Jul 30 04:12:24 PDT 2013


Hi, List!

I've got some strange problem while I'm trying to request first 3 zoom
levels within Mapproxy.
So here it is. There is a MapProxy installed on Windows Server 2008 and
working on IIS+isapi_wsgi. When I access one of my layers through the demo
page - first 3 zoom levels return blank image and then everything works
well. And in the log file there are following errors, saying that
permission is denied (although permissions were set):

IOError: [Errno 13] Permission denied:
'C:\\inetpub\\wwwroot\\mapproxy\\config\\..\\cache_data\\obl_kart\\hydro_cache_EPSG4326\\tile_locks\\750bd8b52916e702d64473cb1c4512f8-4-4-5.lck'
2013-07-30 17:02:02,163 - CRITICAL - mapproxy.wsgiapp - fatal error in
service for /service
LAYERS=hydro&FORMAT=image%2Fpng&SRS=EPSG%3A4326&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=59.821183455141,52.839051098401,60.024105373363,52.939756765013&WIDTH=1209&HEIGHT=600
Traceback (most recent call last):
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\wsgiapp.py",
line 166, in __call__
    resp = self.handlers[handler_name].handle(req)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\ows.py",
line 38, in handle
    return self.services[service].handle(req)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\base.py",
line 30, in handle
    return handler(parsed_req)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\wms.py",
line 111, in map
    renderer.render(merger)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\wms.py",
line 471, in render
    layer_merger)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\util\async.py",
line 204, in _single_call
    result = func(*args)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\wms.py",
line 513, in _render_layer
    layer_img = layer.get_map(self.query)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\layer.py",
line 404, in get_map
    result = self._image(query)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\layer.py",
line 437, in _image
    tile_collection =
self.tile_manager.load_tile_coords(affected_tile_coords,
with_metadata=query.tiled_only)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py",
line 126, in load_tile_coords
    created_tiles = creator.create_tiles(uncached_tiles)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py",
line 227, in create_tiles
    created_tiles = self._create_meta_tiles(meta_tiles)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py",
line 300, in _create_meta_tiles
    created_tiles.extend(self._create_meta_tile(meta_tile))
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py",
line 307, in _create_meta_tile
    with self.tile_mgr.lock(main_tile):
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\platform\cpython\lock.py",
line 42, in __enter__
    self.lock()
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\platform\cpython\lock.py",
line 65, in lock
    self._lock = self._try_lock()
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\platform\cpython\lock.py",
line 56, in _try_lock
    return LockFile(self.lock_file)
  File
"C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\util\ext\lockfile.py",
line 118, in __init__
    fp = open(path, 'w+')
IOError: [Errno 13] Permission denied:
'C:\\inetpub\\wwwroot\\mapproxy\\config\\..\\cache_data\\obl_kart\\hydro_cache_EPSG4326\\tile_locks\\750bd8b52916e702d64473cb1c4512f8-4-4-5.lck'

If I run that config with development server everthing works well and if
access tiles for those zome levels, wich were failed to load, then they aso
will work on IIS.
I've tryed to fix it with setting 'concurent_tile_creators' value and
setting mapproxy worker processes in IIS to 10 but it didn't help.

I understand that that problem somehow connected with IIS, but I don't have
ideas what else should I set up to make it work well.

Cheers,
Max.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130730/57b42bbb/attachment.html>


More information about the MapProxy mailing list