You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/08 07:27:09 UTC

[GitHub] [airflow] Rey-93 opened a new issue, #22853: Airflow version: 2.2.5 Webserver returning error

Rey-93 opened a new issue, #22853:
URL: https://github.com/apache/airflow/issues/22853

   ### Apache Airflow version
   
   2.2.5 (latest released)
   
   ### 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:
        * [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.10
   Airflow version: 2.2.5
   Node: KANVWPRDIIS03.fqm.internal
   -------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/auth.py", line 51, in decorated
       return func(*args, **kwargs)
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/views.py", line 730, in index
       return self.render_template(
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/views.py", line 502, in render_template
       return super().render_template(
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 287, in render_template
       return render_template(
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/templating.py", line 137, in render_template
       return _render(
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask/templating.py", line 120, in _render
       rv = template.render(context)
     File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
       return original_render(self, *args, **kwargs)
     File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
       return self.environment.handle_exception(exc_info, True)
     File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
       reraise(exc_type, exc_value, tb)
     File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
       raise value.with_traceback(tb)
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/templates/airflow/dags.html", line 22, in <module>
       {% from 'airflow/_messages.html' import show_message %}
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/templates/airflow/main.html", line 21, in <module>
       {% from 'airflow/_messages.html' import show_message %}
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 2, in <module>
       {% import 'appbuilder/baselib.html' as baselib %}
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 37, in <module>
       {% block body %}
     File "/home/aggrey/.local/lib/python3.8/site-packages/flask_appbuilder/templates/appbuilder/baselayout.html", line 16, in <module>
       {% block messages %}
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/templates/airflow/dags.html", line 63, in <module>
       {{ super() }}
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/templates/airflow/main.html", line 55, in <module>
       {% call show_message(category='warning', dismissible=false) %}
     File "/usr/lib/python3/dist-packages/jinja2/runtime.py", line 583, in _invoke
       rv = self._func(*arguments)
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/templates/airflow/_messages.html", line 25, in <module>
       {{ caller() }}
     File "/usr/lib/python3/dist-packages/jinja2/runtime.py", line 583, in _invoke
       rv = self._func(*arguments)
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/www/templates/airflow/main.html", line 63, in <module>
       >{{ macros.datetime_diff_for_humans(scheduler_job.latest_heartbeat) }}</time>.
     File "/home/aggrey/.local/lib/python3.8/site-packages/airflow/macros/__init__.py", line 83, in datetime_diff_for_humans
       return pendulum.instance(dt).diff_for_humans(since)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/datetime.py", line 824, in diff_for_humans
       other = self.now()
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/datetime.py", line 106, in now
       return pendulum.now(tz)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/__init__.py", line 211, in now
       dt = _datetime.datetime.now(local_timezone())
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/__init__.py", line 60, in local_timezone
       return get_local_timezone()
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/local_timezone.py", line 35, in get_local_timezone
       tz = _get_system_timezone()
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/local_timezone.py", line 63, in _get_system_timezone
       return _get_unix_timezone()
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/local_timezone.py", line 240, in _get_unix_timezone
       return TimezoneFile(tzpath)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/timezone.py", line 370, in __init__
       tz = read_file(path)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/zoneinfo/__init__.py", line 16, in read_file
       return Reader(extend=extend).read(path)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/zoneinfo/reader.py", line 66, in read
       return self._parse(fd)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/zoneinfo/reader.py", line 145, in _parse
       return Timezone(transitions, posix_rule=trule, extended=self._extend)
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/zoneinfo/timezone.py", line 28, in __init__
       self._extends()
     File "/home/aggrey/.local/lib/python3.8/site-packages/pendulum/tz/zoneinfo/timezone.py", line 49, in _extends
       raise ValueError("Posix spec does not match last transition")
   ValueError: Posix spec does not match last transition
   
   ### What you think should happen instead
   
   I should be able to see the web UI
   
   ### How to reproduce
   
   Install Airflow on windows server 2019 inside install Linux ubuntu 2004 WSL
   
   ### Operating System
   
   windows server 2019
   
   ### Versions of Apache Airflow Providers
   
   pip
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #22853: Airflow version: 2.2.5 Webserver returning error

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #22853:
URL: https://github.com/apache/airflow/issues/22853#issuecomment-1092540165

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] tirkarthi commented on issue #22853: Airflow version: 2.2.5 Webserver returning error

Posted by GitBox <gi...@apache.org>.
tirkarthi commented on issue #22853:
URL: https://github.com/apache/airflow/issues/22853#issuecomment-1093660002

   This could be a problem with WSL only : https://camcops.readthedocs.io/en/latest/administrator/server_troubleshooting.html#posix-spec-does-not-match-last-transition


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #22853: Airflow version: 2.2.5 Webserver returning error

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #22853:
URL: https://github.com/apache/airflow/issues/22853#issuecomment-1093832958

   Yep. Very much so. We are not going to address as WSL is not a "production" environment for us - at most it can be development environment and even there we recommend using Docker that should not have this problem. 
   It's better that WSL fixes it (or maybe it's already. Cionverting it into a discussion in case someone wants to discuss and propose potential workarounds.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org