[MapProxy] log permission denied

BERÉNYI Attila aberenyi at gislab.hu
Wed Jul 11 01:28:59 PDT 2018


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

Christoph Schettler <christoph.schettler at tu-dresden.de> ezt írta (időpont:
2018. júl. 11., Sze, 10:17):

> 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/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)
>
> IOError: [Errno 13] Permission denied:
> '/mnt/0a0caead-2478-405e-9924-90617b1656f7/itvs_osm/itvs_wmts/mapproxy.log'
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180711/253f81e1/attachment-0001.html>


More information about the MapProxy mailing list