[MapProxy] mapproxy: internal server error

Frank Broniewski brfr at metrico.lu
Thu Aug 2 23:32:58 PDT 2012


Am 02.08.2012 17:06, schrieb Luca Delucchi:
> Hi again,
> In another server I had some services provide by mapproxy and they
> work very well, today to check something to solve the problem with
> mapnik installation I discover that my services are not working more.
> this is the error that I can see on Apache error log
>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90] mod_wsgi
> (pid=9992): Target WSGI script
> '/home/pgis/tiles/ortofoto/etc/config.wsgi' cannot be loaded as Python
> module.
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90] mod_wsgi
> (pid=9992): Exception occurred processing WSGI script
> '/home/pgis/tiles/ortofoto/etc/config.wsgi'.
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90] Traceback
> (most recent call last):
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/home/pgis/tiles/ortofoto/etc/config.wsgi", line 4, in <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]
> application = make_wsgi_app(r'/home/pgis/tiles/ortofoto/etc/mapproxy.yaml')
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/wsgiapp.py", line 92,
> in make_wsgi_app
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     services =
> conf.configured_services()
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/config/loader.py",
> line 206, in configured_services
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     return
> self.services.services()
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/config/loader.py",
> line 1137, in services
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]
> new_services = creator(service_conf or {})
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/config/loader.py",
> line 1204, in wms_service
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.service.wms import WMSServer
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/service/wms.py", line
> 21, in <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.cache.tile import CacheInfo
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/cache/tile.py", line
> 42, in <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.grid import MetaGrid
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/grid.py", line 22, in
> <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.srs import SRS, get_epsg_num, merge_bbox
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/srs.py", line 25, in
> <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.proj import Proj, transform, set_datapath, ProjInitError
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/proj.py", line 17, in
> <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.platform.proj import Proj, transform, set_datapath,
> ProjInitError
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/platform/proj.py",
> line 18, in <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     from
> mapproxy.platform.cpython.proj import (
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/platform/cpython/proj.py",
> line 135, in <module>
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]     libproj =
> init_libproj()
> [Thu Aug 02 17:02:29 2012] [error] [client 10.0.101.90]   File
> "/usr/local/lib/python2.7/dist-packages/mapproxy/platform/cpython/proj.py",
> line 54, in init_libproj
> [Thu Aug 0
>
> I try to clean my installation but nothing change and the error is
> still alive. Some idea how to solve also this error?
>
> thanks
>

Hi Luca,

the traceback of the exception isn't complete. There should be more 
after the last line. If you can provide the complete trace of an error 
it would be easier.
Did you change something related to proj packages?


Frank

-- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu


More information about the MapProxy mailing list