Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission error #59

Open
josu98 opened this issue Mar 22, 2024 · 0 comments
Open

Permission error #59

josu98 opened this issue Mar 22, 2024 · 0 comments

Comments

@josu98
Copy link

josu98 commented Mar 22, 2024

After following the installation instruction using docker container and running the command to start the container I get the following error:

PermissionError: [Errno 13] Permission denied: '/usr/src/app/debug.log'

Complete log:

2024-03-22 12:17:04 + set -e
2024-03-22 12:17:04 + python manage.py migrate --noinput
2024-03-22 12:17:04 Running in Development mode!
2024-03-22 12:17:04 DJANGO_SETTINGS_MODULE: opal.settings
2024-03-22 12:17:04 GPG_KEY: <** removed by me ** >
2024-03-22 12:17:04 HOME: /home/opal
2024-03-22 12:17:04 HOSTNAME: d22b222e39c4
2024-03-22 12:17:04 LANG: C.UTF-8
2024-03-22 12:17:04 PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-03-22 12:17:04 PWD: /usr/src/app
2024-03-22 12:17:04 PYTHONDONTWRITEBYTECODE: 1
2024-03-22 12:17:04 PYTHONUNBUFFERED: 1
2024-03-22 12:17:04 PYTHON_GET_PIP_SHA256: <** removed by me **
2024-03-22 12:17:04 PYTHON_GET_PIP_URL: https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
2024-03-22 12:17:04 PYTHON_PIP_VERSION: 24.0
2024-03-22 12:17:04 PYTHON_SETUPTOOLS_VERSION: 65.5.1
2024-03-22 12:17:04 PYTHON_VERSION: 3.11.8
2024-03-22 12:17:04 SHLVL: 1
2024-03-22 12:17:04 _: /usr/local/bin/python
2024-03-22 12:17:04 Traceback (most recent call last):
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/logging/config.py", line 573, in configure
2024-03-22 12:17:04 handler = self.configure_handler(handlers[name])
2024-03-22 12:17:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/logging/config.py", line 757, in configure_handler
2024-03-22 12:17:04 result = factory(**kwargs)
2024-03-22 12:17:04 ^^^^^^^^^^^^^^^^^
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/logging/init.py", line 1181, in init
2024-03-22 12:17:04 StreamHandler.init(self, self._open())
2024-03-22 12:17:04 ^^^^^^^^^^^^
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/logging/init.py", line 1213, in _open
2024-03-22 12:17:04 return open_func(self.baseFilename, self.mode,
2024-03-22 12:17:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-03-22 12:17:04 PermissionError: [Errno 13] Permission denied: '/usr/src/app/debug.log'
2024-03-22 12:17:04
2024-03-22 12:17:04 The above exception was the direct cause of the following exception:
2024-03-22 12:17:04
2024-03-22 12:17:04 Traceback (most recent call last):
2024-03-22 12:17:04 File "/usr/src/app/manage.py", line 22, in
2024-03-22 12:17:04 main()
2024-03-22 12:17:04 File "/usr/src/app/manage.py", line 18, in main
2024-03-22 12:17:04 execute_from_command_line(sys.argv)
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
2024-03-22 12:17:04 utility.execute()
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/site-packages/django/core/management/init.py", line 416, in execute
2024-03-22 12:17:04 django.setup()
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/site-packages/django/init.py", line 19, in setup
2024-03-22 12:17:04 configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/site-packages/django/utils/log.py", line 76, in configure_logging
2024-03-22 12:17:04 logging_config_func(logging_settings)
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/logging/config.py", line 823, in dictConfig
2024-03-22 12:17:04 dictConfigClass(config).configure()
2024-03-22 12:17:04 File "/usr/local/lib/python3.11/logging/config.py", line 580, in configure
2024-03-22 12:17:04 raise ValueError('Unable to configure handler '
2024-03-22 12:17:04 ValueError: Unable to configure handler 'file'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant