t4n1o opened a new issue #18541: URL: https://github.com/apache/airflow/issues/18541
### Apache Airflow version 2.1.3 ### Operating System Ubuntu server 20.04 lTS ### Versions of Apache Airflow Providers _No response_ ### Deployment Virtualenv installation ### Deployment details It's deployed according to this ansible role: https://github.com/idealista/airflow-role ### What happened ``` 26 15:21:37 avantry01 airflow[62557]: [2021-09-26 15:21:37,284] {app.py:1891} ERROR - Exception on /last_dagruns [POST] Sep 26 15:21:37 avantry01 airflow[62557]: Traceback (most recent call last): Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app Sep 26 15:21:37 avantry01 airflow[62557]: response = self.full_dispatch_request() Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request Sep 26 15:21:37 avantry01 airflow[62557]: rv = self.handle_user_exception(e) Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception Sep 26 15:21:37 avantry01 airflow[62557]: reraise(exc_type, exc_value, tb) Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise Sep 26 15:21:37 avantry01 airflow[62557]: raise value Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request Sep 26 15:21:37 avantry01 airflow[62557]: rv = self.dispatch_request() Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request Sep 26 15:21:37 avantry01 airflow[62557]: return self.view_functions[rule.endpoint](**req.view_args) Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/airflow/www/auth.py", line 34, in decorated Sep 26 15:21:37 avantry01 airflow[62557]: return func(*args, **kwargs) Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/airflow/utils/session.py", line 70, in wrapper Sep 26 15:21:37 avantry01 airflow[62557]: return func(*args, session=session, **kwargs) Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/airflow/www/views.py", line 852, in last_dagruns Sep 26 15:21:37 avantry01 airflow[62557]: resp = { Sep 26 15:21:37 avantry01 airflow[62557]: File "/opt/airflow/lib/python3.9/site-packages/airflow/www/views.py", line 856, in <dictcomp> Sep 26 15:21:37 avantry01 airflow[62557]: 'start_date': r.start_date.isoformat(), Sep 26 15:21:37 avantry01 airflow[62557]: AttributeError: 'NoneType' object has no attribute 'isoformat' ``` ### What you expected to happen It's hard to say what this error is about - it seems to be related to the webserver displaying what's happening, but the dag doesn't manage to exit (continues on indefinitely) because of it. ### How to reproduce _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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
