Course
data-engineering-zoomcamp
Question
Why am I getting “Invalid login” or missing users in Airflow?
Answer
This usually happens when the Airflow database is not initialized correctly.
Fix
Run the following command inside your container:
docker exec -it weather-dag-airflow-1 airflow db init
then paste this code:
docker exec -it weather-dag-airflow-1 airflow users create
--username admin
--password admin
--firstname admin
--lastname user
--role Admin
--email admin@example.com
After this, type exit and press enter.
You're done the username and password will be admin as shown above
Checklist
Course
data-engineering-zoomcamp
Question
Why am I getting “Invalid login” or missing users in Airflow?
Answer
This usually happens when the Airflow database is not initialized correctly.
Fix
Run the following command inside your container:
docker exec -it weather-dag-airflow-1 airflow db init
then paste this code:
docker exec -it weather-dag-airflow-1 airflow users create
--username admin
--password admin
--firstname admin
--lastname user
--role Admin
--email admin@example.com
After this, type exit and press enter.
You're done the username and password will be admin as shown above
Checklist