psubudhi opened a new issue, #42558:
URL: https://github.com/apache/airflow/issues/42558
### Apache Airflow version
2.10.1
### If "Other Airflow 2 version" selected, which one?
2.3.3
### What happened?
Started airflow scheduler and webserver and opened the endpoint for 6007
from Jarvis lab. Got below error.
Ooops!
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:
* [GitHub Discussions](https://github.com/apache/airflow/discussions)
* [GitHub Issues](https://github.com/apache/airflow/issues)
* [Stack Overflow](https://stackoverflow.com/questions/tagged/airflow)
* the usual search engine you use on a daily basis
* 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](https://github.com/apache/airflow/issues/new/choose).
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: f6d2b5df6971
-------------------------------------------------------------------------------
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)
}}</time>.
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?
UI should open
### How to reproduce
Open the UI
### Operating System
Linux f6d2b5df6971 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC
Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
### Versions of Apache Airflow Providers
2.3.3
### Deployment
Other
### Deployment details
NA
### Anything else?
NA
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]