Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airflow breaks after authenticating when using astro dev start #1629

Open
2 of 3 tasks
FrikadelleHelle opened this issue Apr 23, 2024 · 18 comments
Open
2 of 3 tasks

Airflow breaks after authenticating when using astro dev start #1629

FrikadelleHelle opened this issue Apr 23, 2024 · 18 comments

Comments

@FrikadelleHelle
Copy link

FrikadelleHelle commented Apr 23, 2024

Describe the bug

I am using the Astro CLI to boot airflow locally and get redirected to the login screen. But after

The issue has also been created here: apache/airflow#39170, but it seems to be a astro specific thing.

This is the logs from astro dev logs

2024-04-23 12:01:43 +0000] [84] [INFO] Listening at: http://0.0.0.0:8080 (84)
 [2024-04-23 12:01:43 +0000] [84] [INFO] Using worker: sync
 [2024-04-23 12:01:43 +0000] [111] [INFO] Booting worker with pid: 111
 [2024-04-23 12:01:43 +0000] [112] [INFO] Booting worker with pid: 112
 [2024-04-23 12:01:43 +0000] [113] [INFO] Booting worker with pid: 113
 [2024-04-23 12:01:43 +0000] [114] [INFO] Booting worker with pid: 114
 172.18.0.5 - - [23/Apr/2024:12:01:44 +0000] "GET /health HTTP/1.1" 200 318 "-" "curl/7.74.0"
 172.18.0.1 - - [23/Apr/2024:12:01:46 +0000] "GET / HTTP/1.1" 302 197 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.5 - - [23/Apr/2024:12:01:46 +0000] "GET /health HTTP/1.1" 200 318 "-" "curl/7.74.0"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /home HTTP/1.1" 302 285 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome HTTP/1.1" 200 19167 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/fontawesome/fontawesome.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/fontawesome/v4-shims.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/bootstrap.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/fontawesome/brands.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/bootstrap-datepicker/bootstrap-datepicker3.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/select2/select2.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/flags/flags16.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/select2/select2-bootstrap.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/ab.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/loadingDots.84963375c34df3f17aab.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/airflowDefaultTheme.c93fb34380b84747e945.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/main.6f9728400381098372e3.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/fontawesome/regular.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/bootstrap-datetimepicker.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /astro/static/update-notice.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/ab_actions.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/ab_filters.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/fontawesome/solid.min.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/flash.39f43f5a4fffad4cd720.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /astro/static/update-notice.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/materialIcons.ce0f77d10d4dc51f5f07.css HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/bootstrap.min.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/jquery-latest.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/bootstrap-datepicker/bootstrap-datepicker.min.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/bootstrap-datetimepicker.min.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/bootstrap3-typeahead.min.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/main.6f9728400381098372e3.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/ab.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/dist/moment.0fcb6b41ff6a87cf079e.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/js/select2/select2.min.js HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/webfonts/fa-regular-400.5da313b0467f7c1b18d9.woff2 HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.1 - - [23/Apr/2024:12:01:47 +0000] "GET /static/appbuilder/css/webfonts/fa-solid-900.8f06540fd77f1effe1e2.woff2 HTTP/1.1" 304 0 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.5 - - [23/Apr/2024:12:01:49 +0000] "GET /health HTTP/1.1" 200 318 "-" "curl/7.74.0"
 172.18.0.5 - - [23/Apr/2024:12:01:51 +0000] "GET /health HTTP/1.1" 200 318 "-" "curl/7.74.0"
 [2024-04-23T12:01:52.602+0000] {override.py:1597} INFO - Updated user admin user
 172.18.0.1 - - [23/Apr/2024:12:01:52 +0000] "POST /login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome HTTP/1.1" 302 239 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 [2024-04-23T12:01:53.023+0000] {app.py:1744} ERROR - Exception on /home [GET]
 Traceback (most recent call last):
   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 2529, in wsgi_app
     response = self.full_dispatch_request()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
     rv = self.handle_user_exception(e)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
     rv = self.dispatch_request()
          ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/auth.py", line 139, in decorated
     return _has_access(
            ^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/auth.py", line 163, in _has_access
     return func(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/views.py", line 1038, in index
     return self.render_template(
            ^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/views.py", line 714, in render_template
     return super().render_template(
            ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask_appbuilder/baseviews.py", line 342, in render_template
     return render_template(
            ^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask/templating.py", line 147, in render_template
     return _render(app, template, context)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask/templating.py", line 130, in _render
     rv = template.render(context)
          ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
     self.environment.handle_exception()
   File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
     raise rewrite_traceback_stack(source=source)
   File "/usr/local/lib/python3.11/site-packages/airflow/www/templates/airflow/dags.html", line 44, in top-level template code
     {% elif curr_ordering_direction == 'asc' and request.args.get('sorting_key') == attribute_name %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/astronomer/runtime/templates/runtime_base.html", line 1, in top-level template code
     {% extends original_base_template %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/astronomer/airflow/version_check/templates/astro-baselayout.html", line 1, in top-level template code
     {% extends airflow_base_template %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/templates/airflow/main.html", line 21, in top-level template code
     {% from 'airflow/_messages.html' import show_message %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 2, in top-level template code
     {% import 'appbuilder/baselib.html' as baselib %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 42, in top-level template code
     {% block body %}
   File "/usr/local/lib/python3.11/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 16, in block 'body'
     {% block messages %}
   File "/usr/local/lib/python3.11/site-packages/airflow/www/templates/airflow/dags.html", line 108, in block 'messages'
     {{ super() }}
   File "/usr/local/lib/python3.11/site-packages/astronomer/airflow/version_check/templates/astro-baselayout.html", line 3, in block 'messages'
     {% include "update-available.html" %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/astronomer/airflow/version_check/templates/update-available.html", line 4, in top-level template code
     {% if "can_dismiss" | is_item_visible("UpdateAvailable") %}
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/flask_appbuilder/filters.py", line 171, in is_item_visible
     return self.security_manager.has_access(permission_name, item)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/security_manager.py", line 142, in has_access
     return is_authorized_method(action_name, resource_pk, user)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.11/site-packages/airflow/www/security_manager.py", line 340, in <lambda>
     method=get_method_from_fab_action_map()[action],
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
 KeyError: 'can_dismiss'
 172.18.0.1 - - [23/Apr/2024:12:01:53 +0000] "GET /home HTTP/1.1" 500 1593 "http://localhost:8080/login/?next=http%3A%2F%2Flocalhost%3A8080%2Fhome" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15"
 172.18.0.5 - - [23/Apr/2024:12:01:53 +0000] "GET /health HTTP/1.1" 200 318 "-" "curl/7.74.0"
 172.18.0.5 - - [23/Apr/2024:12:01:55 +0000] "GET /health HTTP/1.1" 200 318 "-" "curl/7.74.0"

What CLI Version did you experience this bug?

Astro CLI Version: 1.25.0

This CLI bug is related to which Astronomer Platform?

  • Astro
  • Software
  • None/Unknown

What Operating System is the above CLI installed on?
macOS Sonoma 14.2.1 (23C71)

🪜 Steps To Reproduce

  1. Run astro dev start
  2. Wait for it open a browser
  3. type admin:admin
  4. get this error screen
image
@casper-voltgoed
Copy link

I encountered the same problem. From the error description it seems to be caused by the fact that version 11.1.0 was recently released. I tried upgrading but that didn't solve it. A solution was going back to an older version 10.6.0. But i had to delete my docker volumes.

@rahulsain
Copy link

Same issue, any possible solution to this?

@BradleyOwenThompson
Copy link

BradleyOwenThompson commented Apr 24, 2024

I encountered the same issue yesterday using astro runtime 11.0.0.

I managed to get it working using the below steps. I'm not sure if all these steps are necessary.

  1. Installed the astro-cli 1.26.0 (pre-release)
  2. Ran the command astro dev kill
  3. Made sure any airflow docker volumes were removed
  4. Change the version to 11.1.0
  5. Ran the command astro dev start like usual and logged in without error.

UPDATE: @FrikadelleHelle confirmed that only upgrading to runtime 11.1.0 was necessary.

UPDATE 2: It looks each time a new runtime version is released, local development breaks for prior 11.x.x versions. Using the latest runtime version appears to let you continue working locally.

@FrikadelleHelle
Copy link
Author

FrikadelleHelle commented Apr 24, 2024

Nice! Only upgrading to runtime 11.1.0 worked for me. Wasn't sure what was meant at first, as im new to our astro deployment, so for anyone in same boat:

I went to the Dockerfile in the project and changed the image tag to
FROM quay.io/astronomer/astro-runtime:11.1.0

I guess that its just a workaround still

@BradleyOwenThompson
Copy link

Nice! Only upgrading to runtime 11.1.0 worked for me. Wasn't sure what was meant at first, as im new to our astro deployment, so for anyone in same boat:

I went to the Dockerfile in the project and changed the image tag to FROM quay.io/astronomer/astro-runtime:11.1.0

I guess that its just a workaround still

I'm glad you got it working! It's very much a workaround.

@Misantonio
Copy link

Misantonio commented Apr 27, 2024

It is still not working for me. Exact same error on Macbook pro with M3 pro.

Astro CLI 1.26.0
Airflow 2.9.0+astro.1
macOS Sonoma 14.4.1
Python 3.11.9

@keithbentrup
Copy link

keithbentrup commented Apr 27, 2024

I just had this error (with same steps to reproduce) on 11.0.0. I bumped to the image to 11.1.0, and it "worked" for a couple days until I ran some very long running, very data intensive jobs (possibly unrelated). Eventually 11.1.0 gave the same error after login - same stacktrace ending in KeyError: 'can_dismiss'.

So I don't think the issue is resolved in 11.1.0, it's just starting with a fresh environment. I see in the stacktrace a reference to astronomer/airflow/version_check/templates/update-available.html and 11.2.0 was just released (possibly related?). Regardless, I guess it's time to bump the version again and hope it's actually resolved in this next release 🤞 ...

@JarroVGIT
Copy link

What @keithbentrup says seems correct, and this issue has started in runtime 11.0.0. As of now, you can no longer run a local instance of Astro if you are not on the last runtime release when you use major version 11.

@TJaniF
Copy link
Contributor

TJaniF commented Apr 29, 2024

Hi :)

This is likely related to this issue: apache/airflow#39144 (which will be fixed in Airflow 2.9.1)

As a workaround you can either set AIRFLOW__ASTRONOMER__UPDATE_CHECK_INTERVAL=0 or, since the issue only occurs if there is a newer Runtime version, use version (EDIT:) 11.3.0. The issue is fixed as of 11.3.0.

@VRBradley
Copy link

encountering with 11.2.0 as of yesterday

@TJaniF
Copy link
Contributor

TJaniF commented May 7, 2024

encountering with 11.2.0 as of yesterday

Yes, the issue is with custom plugin code that runs when a new version exists. It was now fixed in 11.3.0 and wont occur on 11.3.0 or later. :)

@franckishemezwe-plb
Copy link

I confirmed, I had the same issue and I upgrade the runtime from 11.2.0 to 11.3.0 as suggested. Problem solved

@rajukrishnamurthy
Copy link

2.9.1/11.3 has been working for us too, however, as of today it stopped working. I noticed that 11.4 was released today, I'm not sure if this is related.

@TJaniF
Copy link
Contributor

TJaniF commented May 29, 2024

2.9.1/11.3 has been working for us too, however, as of today it stopped working. I noticed that 11.4 was released today, I'm not sure if this is related.

Hi! I think that is could be a separate issue. I just tested 11.3.0 on a fresh, empty Astro CLI project and am not getting any errors.
apache/airflow#39167 and apache/airflow#39421 should have fixed this, though you might have found an edge case.

Can you please file a new issue with some additional information about your set up? :)

@rajukrishnamurthy
Copy link

The underlying issue does not appear to be fixed and setting AIRFLOW__ASTRONOMER__UPDATE_CHECK_INTERVAL=0 still works as a workaround.

@jedcunningham
Copy link
Member

@rajukrishnamurthy can you provide your dockerfile and requirements.txt? If not, can you try experimenting to identify a minimal reproduction that you can share? That would be very helpful. I suspect something in those files are causing the issue to continue happening.

@rajukrishnamurthy
Copy link

@jedcunningham we use bazel as our build system and we have a custom macro that creates the image, so there's not a dockerfile and an minimal example is going to be hard to create. I'm assuming that needing update_check_interval means that we have some older dependency that doesn't contain the two fix, let me check that and I'll report back.

@jedcunningham
Copy link
Member

@rajukrishnamurthy can you run pip freeze | grep apache-airflow in your image? 2 packages matter here afaik, apache-airflow-providers-fab>=1.1.0 and apache-airflow>=2.9.1+astro.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests