Discussion:
[MapProxy] log permission denied
Christoph Schettler
2018-07-11 08:02:22 UTC
Permalink
Hey list,



i want to set up the logging form y mapproxy implementation on ubuntu 18
machine.

But I'm getting a no permission error from the mod_wsgi when i try to
access the mapproxy page on my apache.



I created the log file config as described in the docs.



The error output:



mod_wsgi (pid=7512): Failed to exec Python script file
'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/conf/config.py
'.

mod_wsgi (pid=7512): Exception occurred processing WSGI script
'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/conf/config.py
'.

Traceback (most recent call last):

File
"/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/conf/config.py
", line 10, in <module>


fileConfig(r'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/lo
g/log.ini', {'here':
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))})

File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig

handlers = _install_handlers(cp, formatters)

File "/usr/lib/python2.7/logging/config.py", line 163, in
_install_handlers

h = klass(*args)

File "/usr/lib/python2.7/logging/__init__.py", line 920, in __init__

StreamHandler.__init__(self, self._open())

File "/usr/lib/python2.7/logging/__init__.py", line 950, in _open

stream = open(self.baseFilename, self.mode)

IOError: [Errno 13] Permission denied:
'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/mapproxy.log'
BERÉNYI Attila
2018-07-11 08:28:59 UTC
Permalink
Hi,

"/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/" should be
writable by the user running MapProxy.

Alternatively, you can create a log folder in there (e.g.
/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/log), set it
to writable by everyone (i.e. chmod 777) and change the config to use the
newly created folder for the log file.

HTH.

Cheers
Post by Christoph Schettler
Hey list,
i want to set up the logging form y mapproxy implementation on ubuntu 18
machine.
But I’m getting a no permission error from the mod_wsgi when i try to
access the mapproxy page on my apache.
I created the log file config as described in the docs.
mod_wsgi (pid=7512): Failed to exec Python script file
'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/conf/config.py'.
mod_wsgi (pid=7512): Exception occurred processing WSGI script
'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/conf/config.py'.
File
"/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/conf/config.py",
line 10, in <module>
fileConfig(r'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/log/log.ini',
{'here': os.path.dirname(os.path.dirname(os.path.abspath(__file__)))})
File "/usr/lib/python2.7/logging/config.py", line 85, in fileConfig
handlers = _install_handlers(cp, formatters)
File "/usr/lib/python2.7/logging/config.py", line 163, in
_install_handlers
h = klass(*args)
File "/usr/lib/python2.7/logging/__init__.py", line 920, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 950, in _open
stream = open(self.baseFilename, self.mode)
'/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/mapproxy.log'
_______________________________________________
MapProxy mailing list
https://lists.osgeo.org/mailman/listinfo/mapproxy
--
BERÉNYI Attila, PhD
ÃŒgyvezető

GISLab Consulting Kft.
H-1031 Budapest, Kadosa utca 59.

M: +36 20 457 1800
W: http://gislab.hu
Loading...