[MapProxy] blank tiles at some levels

Oliver Tonnhofer olt at omniscale.de
Mon Mar 7 11:20:45 EST 2011


On 07.03.2011, at 12:04, lionel b wrote:
> I can see this error message  in apache error.log but I don't know If it's related (comming after blank tiles) :
> 
> [Mon Mar 07 11:20:36 2011] [error] Error in atexit._run_exitfuncs:
> [Mon Mar 07 11:20:36 2011] [error] Traceback (most recent call last):
> [Mon Mar 07 11:20:36 2011] [error]   File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
> [Mon Mar 07 11:20:36 2011] [error]     func(*targs, **kargs)
> [Mon Mar 07 11:20:36 2011] [error]   File "/usr/lib/python2.5/logging/__init__.py", line 1354, in shutdown
> [Mon Mar 07 11:20:36 2011] [error]     h.flush()
> [Mon Mar 07 11:20:36 2011] [error]   File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
> [Mon Mar 07 11:20:36 2011] [error]     self.stream.flush()
> [Mon Mar 07 11:20:36 2011] [error] IOError: sys.stdout access restricted by mod_wsgi
> [Mon Mar 07 11:20:36 2011] [error] mod_wsgi (pid=23458): Exception occurred within sys.exitfunc().
> [Mon Mar 07 11:20:36 2011] [error] Traceback (most recent call last):
> [Mon Mar 07 11:20:36 2011] [error]   File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
> [Mon Mar 07 11:20:36 2011] [error]     func(*targs, **kargs)
> [Mon Mar 07 11:20:36 2011] [error]   File "/usr/lib/python2.5/logging/__init__.py", line 1354, in shutdown
> [Mon Mar 07 11:20:36 2011] [error]     h.flush()
> [Mon Mar 07 11:20:36 2011] [error]   File "/usr/lib/python2.5/logging/__init__.py", line 731, in flush
> [Mon Mar 07 11:20:36 2011] [error]     self.stream.flush()
> [Mon Mar 07 11:20:36 2011] [error] IOError: sys.stdout access restricted by mod_wsgi


Ok, it looks like MapProxy tries to log something but the logging is not configured. The logging then goes to stdout, but that is not supported by mod_wsgi.


You can look at the log_deploy.ini in the example configuration. You need to load that configuration inside your WSGI application:

  import logging
  logging.config.fileConfig("logging.conf")


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt





More information about the MapProxy mailing list