Sanic: [Errno 13] Permission denied: '/access.log' with disabled debug & logging?

Created on 28 May 2017  ·  6Comments  ·  Source: sanic-org/sanic

With:

app.run(host=API_HOST, port=PORT, sock=None, debug=False, workers=API_WORKERS, log_config=None)
app = Sanic(__name__)
  File "/usr/local/anaconda/envs/proj/lib/python3.6/site-packages/sanic/app.py", line 33, in __init__
    logging.config.dictConfig(log_config)
  File "/usr/local/anaconda/envs/proj/lib/python3.6/logging/config.py", line 795, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/local/anaconda/envs/proj/lib/python3.6/logging/config.py", line 566, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'accessTimedRotatingFile': [Errno 13] Permission denied: '/access.log'
bug

All 6 comments

Same here..

Looks like it's trying to create that at the host root folder

Actually, it shouldn't create any log file at all.

I can't reproduce this. Can one of you give the full example you're using? Also the sanic version:

import sanic
sanic.__version__
'0.5.4'

Hi @r0fls, see this repo: https://github.com/woutor/sanic-logging

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

misakar picture misakar  ·  4Comments

sirex picture sirex  ·  4Comments

olalonde picture olalonde  ·  3Comments

ZeeRoc picture ZeeRoc  ·  3Comments

jasonab picture jasonab  ·  3Comments