-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Error when opening Airflow - Something bad has happened. #36560
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
A couple questions for you:
|
I've been experiencing a similar issue, can you check which version of I use Airflow 2.3.1 and I see it asks for
In certain test I instantiate the If that's the case, you must rollback to |
You need to use constraints and install pendulum 2 instead of pendulum 3. We do not have support of pendulum 3 yet. Repost from SO: Tip The main goal for everyone who use Apache Airflow is follow Installation from PyPI for avoid surprises when upstream package is updated and breaks some critical part of the Airflow, for more detail you could check mail [Reminder] How to reproducibly install Airflow from the users mailing list. Presumably pendulum 3 support will be added in Airflow 2.8.1, but not sooner. There is no guarantee that 2.8.1 would have this support, so better check Airflow's Release Notes when new version of Airflow would be released. |
Apache Airflow version
2.8.0
If "Other Airflow 2 version" selected, which one?
2.3.3
What happened?
"Something bad has happened.
Airflow is used by many users, and it is very likely that others had similar problems and you can easily find
a solution to your problem.
Consider following these steps:
gather the relevant information (detailed logs with errors, reproduction steps, details of your deployment)
find similar issues using:
if you run Airflow on a Managed Service, consider opening an issue using the service support channels
if you tried and have difficulty with diagnosing and fixing the problem yourself, consider creating a bug report.
Make sure however, to include all relevant details and results of your investigation so far.
Python version: 3.8.12
Airflow version: 2.3.3
Node: 33fdeb948042
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 1519, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/conda/lib/python3.8/site-packages/flask/app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/opt/conda/lib/python3.8/site-packages/airflow/www/auth.py", line 46, in decorated
return func(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/airflow/www/views.py", line 964, in index
return self.render_template(
File "/opt/conda/lib/python3.8/site-packages/airflow/www/views.py", line 709, in render_template
return super().render_template(
File "/opt/conda/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 322, in render_template
return render_template(
File "/opt/conda/lib/python3.8/site-packages/flask/templating.py", line 154, in render_template
return _render(
File "/opt/conda/lib/python3.8/site-packages/flask/templating.py", line 128, in _render
rv = template.render(context)
File "/opt/conda/lib/python3.8/site-packages/jinja2/environment.py", line 1291, in render
self.environment.handle_exception()
File "/opt/conda/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/opt/conda/lib/python3.8/site-packages/airflow/www/templates/airflow/dags.html", line 43, in top-level template code
{% elif curr_ordering_direction == 'asc' and request.args.get('sorting_key') == attribute_name %}
File "/opt/conda/lib/python3.8/site-packages/airflow/www/templates/airflow/main.html", line 21, in top-level template code
{% from 'airflow/_messages.html' import show_message %}
File "/opt/conda/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 2, in top-level template code
{% import 'appbuilder/baselib.html' as baselib %}
File "/opt/conda/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 37, in top-level template code
{% block body %}
File "/opt/conda/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 16, in block 'body'
{% block messages %}
File "/opt/conda/lib/python3.8/site-packages/airflow/www/templates/airflow/dags.html", line 104, in block 'messages'
{{ super() }}
File "/opt/conda/lib/python3.8/site-packages/airflow/www/templates/airflow/main.html", line 62, in block 'messages'
{% call show_message(category='warning', dismissible=false) %}
File "/opt/conda/lib/python3.8/site-packages/jinja2/runtime.py", line 828, in _invoke
rv = self._func(*arguments)
File "/opt/conda/lib/python3.8/site-packages/airflow/www/templates/airflow/_messages.html", line 25, in template
{{ caller() }}
File "/opt/conda/lib/python3.8/site-packages/jinja2/runtime.py", line 828, in _invoke
rv = self._func(*arguments)
File "/opt/conda/lib/python3.8/site-packages/airflow/www/templates/airflow/main.html", line 70, in template
>{{ macros.datetime_diff_for_humans(scheduler_job.latest_heartbeat) }}.
File "/opt/conda/lib/python3.8/site-packages/airflow/macros/init.py", line 77, in datetime_diff_for_humans
return pendulum.instance(dt).diff_for_humans(since)
File "/opt/conda/lib/python3.8/site-packages/pendulum/datetime.py", line 824, in diff_for_humans
other = self.now()
File "/opt/conda/lib/python3.8/site-packages/pendulum/datetime.py", line 106, in now
return pendulum.now(tz)
File "/opt/conda/lib/python3.8/site-packages/pendulum/init.py", line 211, in now
dt = _datetime.datetime.now(local_timezone())
File "/opt/conda/lib/python3.8/site-packages/pendulum/tz/init.py", line 60, in local_timezone
return get_local_timezone()
File "/opt/conda/lib/python3.8/site-packages/pendulum/tz/local_timezone.py", line 35, in get_local_timezone
tz = _get_system_timezone()
File "/opt/conda/lib/python3.8/site-packages/pendulum/tz/local_timezone.py", line 63, in _get_system_timezone
return _get_unix_timezone()
File "/opt/conda/lib/python3.8/site-packages/pendulum/tz/local_timezone.py", line 242, in _get_unix_timezone
raise RuntimeError("Unable to find any timezone configuration")
RuntimeError: Unable to find any timezone configuration"
What you think should happen instead?
No response
How to reproduce
Requesting early resolution.
Operating System
windows
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
JarvisLabs.ai
Anything else?
Need permanent solution.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: