GitHub user andreabisellonamirial edited a comment on the discussion: Error 
running a container

I have the same problem, using the standard aiflow docker compose.

Following 
https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html#fetching-docker-compose-yaml
 

1. I have created an empty folder
2. I have downloaded 
https://airflow.apache.org/docs/apache-airflow/2.10.4/docker-compose.yaml
3. I have executed docker compose up airflow-init
4. I have executed docker compose up , and everything is up and running5. 

but accessing the web interface, I obtain the error

> 2025-01-16 16:42:53 PermissionError: [Errno 13] Permission denied: 
> '/opt/airflow/logs/scheduler'
> 2025-01-16 16:42:53 
> 2025-01-16 16:42:53 The above exception was the direct cause of the following 
> exception:
> 2025-01-16 16:42:53 
> 2025-01-16 16:42:53 Traceback (most recent call last):
> 2025-01-16 16:42:53   File "/home/airflow/.local/bin/airflow", line 5, in 
> <module>
> 2025-01-16 16:42:53     from airflow.__main__ import main
> 2025-01-16 16:42:53   File 
> "/home/airflow/.local/lib/python3.12/site-packages/airflow/__init__.py", line 
> 74, in <module>
> 2025-01-16 16:42:53     settings.initialize()
> 2025-01-16 16:42:53   File 
> "/home/airflow/.local/lib/python3.12/site-packages/airflow/settings.py", line 
> 785, in initialize
> 2025-01-16 16:42:53     LOGGING_CLASS_PATH = configure_logging()
> 2025-01-16 16:42:53                          ^^^^^^^^^^^^^^^^^^^
> 2025-01-16 16:42:53   File 
> "/home/airflow/.local/lib/python3.12/site-packages/airflow/logging_config.py",
>  line 74, in configure_logging
> 2025-01-16 16:42:53     raise e
> 2025-01-16 16:42:53   File 
> "/home/airflow/.local/lib/python3.12/site-packages/airflow/logging_config.py",
>  line 69, in configure_logging
> 2025-01-16 16:42:53     dictConfig(logging_config)
> 2025-01-16 16:42:53   File "/usr/local/lib/python3.12/logging/config.py", 
> line 942, in dictConfig
> 2025-01-16 16:42:53     dictConfigClass(config).configure()
> 2025-01-16 16:42:53   File "/usr/local/lib/python3.12/logging/config.py", 
> line 615, in configure
> 2025-01-16 16:42:53     raise ValueError('Unable to configure handler '
> 2025-01-16 16:42:53 ValueError: Unable to configure handler 'processor'
> 2025-01-16 16:42:53
> 

So now i'm trying to solve the problem with the permissions ... struggling with 
chmod that can lock the folder, etc.

It is normal that the official docker compose file is giving to me this kind of 
problems?


GitHub link: 
https://github.com/apache/airflow/discussions/41025#discussioncomment-11857099

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to