<div dir="ltr">Hi, List!<div><br></div><div>I've got some strange problem while I'm trying to request first 3 zoom levels within Mapproxy.</div><div>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):</div>
<div><br></div><div><div>IOError: [Errno 13] Permission denied: 'C:\\inetpub\\wwwroot\\mapproxy\\config\\..\\cache_data\\obl_kart\\hydro_cache_EPSG4326\\tile_locks\\750bd8b52916e702d64473cb1c4512f8-4-4-5.lck'</div>
<div>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</div>
<div>Traceback (most recent call last):</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\wsgiapp.py", line 166, in __call__</div><div>    resp = self.handlers[handler_name].handle(req)</div>
<div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\ows.py", line 38, in handle</div><div>    return self.services[service].handle(req)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\base.py", line 30, in handle</div>
<div>    return handler(parsed_req)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\wms.py", line 111, in map</div><div>    renderer.render(merger)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\wms.py", line 471, in render</div>
<div>    layer_merger)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\util\async.py", line 204, in _single_call</div><div>    result = func(*args)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\service\wms.py", line 513, in _render_layer</div>
<div>    layer_img = layer.get_map(self.query)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\layer.py", line 404, in get_map</div><div>    result = self._image(query)</div><div>
  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\layer.py", line 437, in _image</div><div>    tile_collection = self.tile_manager.load_tile_coords(affected_tile_coords, with_metadata=query.tiled_only)</div>
<div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py", line 126, in load_tile_coords</div><div>    created_tiles = creator.create_tiles(uncached_tiles)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py", line 227, in create_tiles</div>
<div>    created_tiles = self._create_meta_tiles(meta_tiles)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py", line 300, in _create_meta_tiles</div><div>    created_tiles.extend(self._create_meta_tile(meta_tile))</div>
<div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\cache\tile.py", line 307, in _create_meta_tile</div><div>    with self.tile_mgr.lock(main_tile):</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\platform\cpython\lock.py", line 42, in __enter__</div>
<div>    self.lock()</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\platform\cpython\lock.py", line 65, in lock</div><div>    self._lock = self._try_lock()</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\platform\cpython\lock.py", line 56, in _try_lock</div>
<div>    return LockFile(self.lock_file)</div><div>  File "C:\Python27\lib\site-packages\mapproxy-1.5.0-py2.7.egg\mapproxy\util\ext\lockfile.py", line 118, in __init__</div><div>    fp = open(path, 'w+')</div>
<div>IOError: [Errno 13] Permission denied: 'C:\\inetpub\\wwwroot\\mapproxy\\config\\..\\cache_data\\obl_kart\\hydro_cache_EPSG4326\\tile_locks\\750bd8b52916e702d64473cb1c4512f8-4-4-5.lck'</div></div><div><br></div>
<div>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.</div><div>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.</div>
<div><br></div><div>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.</div><div><br></div><div>Cheers,
</div><div>Max.</div></div>