[MapProxy] log permission denied

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MapProxy] log permission denied

Christoph Schettler-2

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
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapproxy

smime.p7s (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [MapProxy] log permission denied

BERÉNYI Attila-2
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 <[hidden email]> 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
[hidden email]
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

_______________________________________________
MapProxy mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapproxy