You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Mark Lavrynenko (JIRA)" <ji...@apache.org> on 2018/09/13 16:32:00 UTC

[jira] [Comment Edited] (AIRFLOW-2263) stack trace from null dag in webserver output

    [ https://issues.apache.org/jira/browse/AIRFLOW-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613727#comment-16613727 ] 

Mark Lavrynenko edited comment on AIRFLOW-2263 at 9/13/18 4:31 PM:
-------------------------------------------------------------------

[~sanand] 

Opened link of this kind [http://airflow.grinder.uaprom/admin/airflow/tree?dag_id=xxxxxxx]

 

Version is 1.10.0 (Latest release from here [https://pypi.org/project/apache-airflow/#history)]

 

I came across this use-case when people open URLs saved few months ago (Actually we updated Airflow, some DAGS were removed)

 

P.S. My stacktrace looks like this
{code:java}
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.6/dist-packages/flask_admin/base.py", line 69, in inner
    return self._run_view(f, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/flask_admin/base.py", line 368, in _run_view
    return fn(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/flask_login.py", line 755, in decorated_view
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/airflow/www/utils.py", line 364, in view_func
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/airflow/www/utils.py", line 270, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/airflow/utils/db.py", line 74, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/airflow/www/views.py", line 1299, in tree
    base_date = dag.latest_execution_date or timezone.utcnow()
AttributeError: 'NoneType' object has no attribute 'latest_execution_date'{code}


was (Author: mark_tven_original):
[~sanand] 

Opened link of this kind [http://airflow.grinder.uaprom/admin/airflow/tree?dag_id=xxxxxxx]

 

Version is 1.10.0 (Latest release from here [https://pypi.org/project/apache-airflow/#history)]

 

I came across this use-case when people open URLs saved few months ago (Actually we updated Airflow, some DAGS were removed)

> stack trace from null dag in webserver output
> ---------------------------------------------
>
>                 Key: AIRFLOW-2263
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2263
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: andy dreyfuss
>            Assignee: Mark Lavrynenko
>            Priority: Major
>
> webserver is reporting the following
> {code:java}
> Traceback (most recent call last):
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask/app.py", line 1988, in wsgi_app
> response = self.full_dispatch_request()
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask/app.py", line 1641, in full_dispatch_request
> rv = self.handle_user_exception(e)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask/app.py", line 1544, in handle_user_exception
> reraise(exc_type, exc_value, tb)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
> raise value
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask/app.py", line 1639, in full_dispatch_request
> rv = self.dispatch_request()
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask/app.py", line 1625, in dispatch_request
> return self.view_functions[rule.endpoint](**req.view_args)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask_admin/base.py", line 69, in inner
> return self._run_view(f, *args, **kwargs)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask_admin/base.py", line 368, in _run_view
> return fn(self, *args, **kwargs)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/flask_login.py", line 755, in decorated_view
> return func(*args, **kwargs)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/airflow/www/utils.py", line 356, in view_func
> return f(*args, **kwargs)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/airflow/www/utils.py", line 262, in wrapper
> return f(*args, **kwargs)
> File "/path/to/a/virtualenv/lib/python3.6/site-packages/airflow/www/views.py", line 1154, in tree
> base_date = dag.latest_execution_date or datetime.utcnow()
> AttributeError: 'NoneType' object has no attribute 'latest_execution_date'
>  
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)