[MapProxy] error message in seeding after upgrade

lionel b lionel.bargeot at gmail.com
Mon Mar 7 03:33:23 EST 2011


Hi Oliver,

My mapproxy works in wsgi mode with apache.

Here is the config file :
_____________________
more config.wsgi
# WSGI module for use with Apache mod_wsgi

import os
import site
site.addsitedir('/var/mapproxy/lib/python2.5/site-packages/')

from paste.deploy import loadapp
application = loadapp('config:config.ini', 
relative_to=os.path.dirname(__file__))
_____________________

Here is an apache config file for mapproxy :

more /etc/apache2/conf.d/mapproxy.conf
LoadModule wsgi_module modules/mod_wsgi.so

WSGIScriptAlias /mapproxy /var/mapproxy/mymapproxy/etc/config.wsgi
WSGIPythonHome /var/mapproxy/mymapproxy
<Directory /var/mapproxy/mymapproxy/etc>
Order deny,allow
Allow from all
</Directory>


Here is my seed.yaml :
_____________________
coverages:
     cleanup_france_orthos:
         bbox: [55000, 6000000, 1300000, 7150000]
         bbox_srs: EPSG:2154

views:
     france_orthos:
         level: [0, 7]
         srs: ['EPSG:2154']
         bbox: [55000, 6000000, 1300000, 7150000]
         bbox_srs: EPSG:2154

seeds:
     orthophotos_cache:
         views: ['france_orthos']

cleanups:
     my_orthos_cleanup:
         caches: [orthophotos_cache]
         coverages: ['cleanup_france_orthos']
         levels: [0, 1]

_____________________

What I can really observe is a little more that what I wrote last week.

mapproxy-seed -f mapproxy.yaml -s seed.yaml --seed france_orthos
No handlers could be found for logger "mapproxy.config.loader"


mapproxy-seed -f mapproxy.yaml -s seed.yaml --summary
No handlers could be found for logger "mapproxy.config.loader"
========== Seeding tasks ==========
   france_orthos:
     Seeding cache 'orthophotos_cache' with grid 'myl93grid' (EPSG:2154)
     Limited to: (-6.20873, 40.82284, 11.57148, 51.44372)
     Levels: [0, 1, 2, 3, 4, 5, 6, 7]
     Overwriting: no tiles
========== Cleanup tasks ==========

mapproxy-seed -f mapproxy.yaml -s seed.yaml

works.


Here is my mapproxy.yaml :
_____________________

services:
   demo:
   kml:
   tms:
     # needs no arguments
   wms:
     srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:2154']
     ..........

layers:
   - name: orthophotos
     title: orthophotos
     sources: [orthophotos_cache]

caches:
   orthophotos_cache:
     meta_size: [3,3]
     meta_buffer: 0
     concurrent_tile_creators: 2
     format: image/jpeg
     request_format: image/jpeg
     link_single_color_images: true
     sources: [orthophotos_wms]
     minimize_meta_requests: true
     grids: [myl93grid]

sources:
   orthophotos_wms:
     type: wms
     wms_opts:
       version: 1.1.1
     supported_srs: ['EPSG:2154']
     req:
       url: http://wmshost/cgi-bin/wms
       layers: orthos_tif
       transparent: false

grids:
   myl93grid:
     srs: EPSG:2154
     bbox: [-357824, 6037007,1313633, 7230727]
     bbox_srs: 'EPSG:2154'
     res_factor: sqrt2


Do you need any other config file ? (but I didn't modify any of them 
since I installed mapproxy 9.1).

Regards,
Lionel


Le 07/03/2011 07:54, Oliver Tonnhofer a écrit :
> Hi,
>
> On 04.03.2011, at 11:27, lionel bargeot wrote:
>> I configured tasks in a seed.yaml file an then tryed to run
>> mapproxy-seed -f mapproxy.yaml -s seed.yaml --seed my_cache
>> I got the error message :
>>
>> No handlers could be found for logger "mapproxy.config.loader"
>>
>> Is there something missing in a config file ?
>
> Can't tell that without any configuration file to look at. Does MapProxy itself start (i.e. paster serve develop.ini)? Is there any other output?
>
> Regards,
> Oliver
>



More information about the MapProxy mailing list