ValueError: Unable to configure handler 'file': [Errno 13] Permission denied:
11,669
Looks like the application does not have access to the folder/log file. try
chmod 777
to the folder and try again.
Note: Please do not set 777 in PROD env.

Author by
colonelrascals
solutions architect @ Onit python | elixir | clojure
Updated on June 22, 2022Comments
-
colonelrascals 7 months
Using Django 1.11 and Python 2.7.
I am unable to configure handler 'file' dues to permissions.
Traceback is as follows:
Traceback (most recent call last): File "manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 337, in execute django.setup() File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 22, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) File "/usr/local/lib/python2.7/site-packages/django/utils/log.py", line 75, in configure_logging logging_config_func(logging_settings) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 794, in dictConfig dictConfigClass(config).configure() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 576, in configure '%r: %s' % (name, e)) ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/var/log/welnity/debug.log'