Error running a container #41025
Replies: 6 comments 2 replies
-
Hi @potiuk can someone from your team please help me with this issue. I can share more details if needed. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Just to clarify. I have no "team" - there are maintainers who can approve changes but ANYONE in the community can answer and help other users raising an issue or discussion - and pointing out one person to be responsible for it to happen is not the way it works. You need to patiently wait until somoene who decided to spend some of their free time to help you - and sometimes you will not get help - this is an open-source project and people contribute and help others here voluntarly - when they see they can help. So please avoid passing responsibility on somoene else to take care of finding someone who can help you - especially - that I am individual contributor here and the team is not mine. |
Beta Was this translation helpful? Give feedback.
-
BTW. converted it to a discussion - because it's not really Airflow issue, it's your troubleshooting |
Beta Was this translation helpful? Give feedback.
-
And clearly - you have a permission issue here. Apparently - your user that you use for running your container does not have permission to write and create files in the folder it shoudl have |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, using the standard aiflow docker compose.
but accessing the web interface, I obtain the error
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? |
Beta Was this translation helpful? Give feedback.
-
This docker compose is not "official" compose. It's definitely not intended to work in all cicumstances on all environments and with all configuraitons and when you decide to use docker-compose, you need to know quite a bit of details how it works and how to debug any problems with it. This docker compose is a quick-start that allows you to get up and running with docker-compose - but it's neither comprehensive nor guaranteed in all kind of cases. Specifically, if you follow all the steps includng https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html#setting-the-right-airflow-user - it has been tested and works in one of the configurations of docker - specifically on Linux Bookworm and standard docker installation. If you have any other OS's, docker-composes, volume configuraitons etc. it might or might not work. Generally For example a number of container engines on Mac OS on Windows have different ways of sharing their volumes with virtual machines and they might cause some permission problems. It's usually something that can be searched for and fixed by configuring things better. So - answering your questions - yes in a number of cases and environments, this docker compose |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.9.3
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I have created a Dockerfile
I created an image
docker build -t my-airflow .
And then a container
docker run --name airflow-container -d -p 8080:8080 -p 5432:5432 -v /path/to/dags:/opt/airflow/dags -v /path/to/logs:/opt/airflow/logs -v /path/to/plugins:/opt/airflow/plugins my-airflow
When I opened logs in docker desktop I see these errors
This is my folder structure
What you think should happen instead?
No response
How to reproduce
Please follow the files shared above
Operating System
WSL
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions