[MapProxy] Invalid configuration error in mapproxy.yaml

Andrea Peri aperi2007 at gmail.com
Mon Sep 11 07:49:22 PDT 2017


resolved.

Is missing a "log.ini" (as reported in the docs)
and it is create using:

mapproxy-util create -t log-ini log.ini

A.


2017-09-11 16:44 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> Hi,
>
> I try to enable the log from the config.py generater.
> But I have a new error .
>
> NoSectionError: No section: 'formatters'
>
> Unfortunatelly I don't find any reference to a "formatter" section in
> the mapproxy manual.
>
> A.
>
>
> 2017-09-11 15:42 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
>> Hi, Im newbye of mapproxy and try to configure a test site.
>>
>> I have installed it , create a virtualenv, configure my apache,
>> generate a mapproxy.yaml using autogenerate tools.
>> And generate also a config.py for wsgi module uing the mapproxy-util.
>>
>> But when I try to call the mapproxy from a browser web I have
>> an Internal Server Error
>>
>> and see-ing the apache error.log I see the log report a generic:
>> "Invalid configuration" error.
>>
>> Unfortunatelly I'm no so skilled to understand if and where is the
>> error in the yaml file.
>>
>> So is possile to set mapproxy to give a more detailed error rather than
>> "Invalid configuration"  ?
>>
>> I report the fragment of my error.log.
>>
>> [Mon Sep 11 14:32:47.007058 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681]   File
>> "/home/archivio/server/mapproxy/configuration/dbtm/config.py", line
>> 10, in <module>
>> [Mon Sep 11 14:32:47.007101 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681]     application =
>> make_wsgi_app(r'/home/archivio/server/mapproxy/configuration/dbtm/mapproxy.yaml')
>> [Mon Sep 11 14:32:47.007112 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681]   File
>> "/home/tomcat/virtualenv/mapproxy/lib/python2.7/site-packages/mapproxy/wsgiapp.py",
>> line 105, in make_wsgi_app
>> [Mon Sep 11 14:32:47.007132 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681]     conf =
>> load_configuration(mapproxy_conf=services_conf,
>> ignore_warnings=ignore_config_warnings)
>> [Mon Sep 11 14:32:47.007141 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681]   File
>> "/home/tomcat/virtualenv/mapproxy/lib/python2.7/site-packages/mapproxy/config/loader.py",
>> line 1963, in load_configuration
>> [Mon Sep 11 14:32:47.007172 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681]     raise
>> ConfigurationError('invalid configuration')
>> [Mon Sep 11 14:32:47.007191 2017] [wsgi:error] [pid 25556:tid
>> 140395008448256] [client 159.213.4.51:52681] ConfigurationError:
>> invalid configuration
>>
>>
>> Many thx for every hint.
>> A.
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -----------------
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the MapProxy mailing list