Open jedcunningham opened 1 year ago
Hi @jedcunningham ! Thank you, it took us some time to find the solution.
We are still having this issue when running 9.5.0
and astro-cli
1.20.1
locally. Setting AIRFLOW__WEBSERVER__UPDATE_FAB_PERMS=True
in .env
solves it.
Describe the bug
apache/airflow#30246, coming in Airflow 2.6, has fixed the webserver to properly honor the
[webserver] update_fab_perms
config option.The astro cli, when starting the webserver, does things in this order:
However, the trick is you can't create the first user until the perms have been explicitly synced! This leads you to hit these errors, as it tries the Airflow 2 then Airflow 1 create user command:
What CLI Version did you experience this bug?
Astro CLI Version: 1.9.0
This CLI bug is related to which Astronomer Platform?
Local
What Operating System is the above CLI installed on?
intel macOS 13.2.1
🪜 Steps To Reproduce
Use this runtime 8 alpha in your Dockerfile:
Disable update_fab_perms (it was enabled again to work around this issue) in your .env:
Then run
astro dev start
, and observe: