Closed akihiro-inui closed 3 years ago
You missed 'before you begin' and/or especially 'initialize environment' steps of the quick-start. https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html .
You likely did not initialize the database.
Please follow them precisely as they are written.
The quick start is written in the way that you have to follow it step-by-step. It's not production ready, it's not gonna work if you omit certain steps or modify them.
It's not a good idea to omit the steps from it if you do not know exactly what you are doing.
Clean up everything, including your docker environment 'docker compose down --volumes --remove-orphans' remove everything from the directory you work in and just follow the quick start precisely step-by-step.
Note that the docker compose is NOT production ready - things like database initialisation for example (which you apparently missed) is a separate step for example. If you want to make production-ready docker-compose you should modify it (for example the postgres db used for quick start uses Local docker volume which is likely not best solution for production db).
Apache Airflow version: apache/airflow:2.1.2-python3.8
Environment: Ubuntu 18.04
What happened: When launching Airflow scheduler together with other Airflow services, it throws an error.
Error message
What you expected to happen: I expected Airflow scheduler to properly launch.
How to reproduce it: I use docker-compose to launch Airflow services which use Dockerfile-Airflow to build the image.
Dockerfile-Airflow
And this is my docker-compose.yml
Then, use docker-compose build docker-compose up
should replicate the error.