airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Capwell <dcapw...@gmail.com>
Subject Upgrading to 1.8.2 fails to load variables page
Date Thu, 07 Sep 2017 16:16:46 GMT
I just deployed 1.8.2 to a test cluster that was running 1.8.0 and the
below stacktrace is all I get when I try to view the variables page

Looking at it and searching JIRA I found
https://issues.apache.org/jira/browse/AIRFLOW-1200 which looks like its
trying to block things from being created, but doesn't seem to handle when
the DB has something it doesn't like.

Traceback (most recent call last):
  File "/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/lib/python2.7/site-packages/flask/app.py", line 1641, in
full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/lib/python2.7/site-packages/flask/app.py", line 1544, in
handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/lib/python2.7/site-packages/flask/app.py", line 1639, in
full_dispatch_request
    rv = self.dispatch_request()
  File "/lib/python2.7/site-packages/flask/app.py", line 1625, in
dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/lib/python2.7/site-packages/flask_admin/base.py", line 69, in inner
    return self._run_view(f, *args, **kwargs)
  File "/lib/python2.7/site-packages/flask_admin/base.py", line 368, in
_run_view
    return fn(self, *args, **kwargs)
  File "/lib/python2.7/site-packages/flask_admin/model/base.py", line 1900,
in index_view
    return_url=self._get_list_url(view_args),
  File "/lib/python2.7/site-packages/flask_admin/base.py", line 308, in
render
    return render_template(template, **kwargs)
  File "/lib/python2.7/site-packages/flask/templating.py", line 134, in
render_template
    context, ctx.app)
  File "/lib/python2.7/site-packages/flask/templating.py", line 116, in
_render
    rv = template.render(context)
  File "/lib/python2.7/site-packages/jinja2/environment.py", line 989, in
render
    return self.environment.handle_exception(exc_info, True)
  File "/lib/python2.7/site-packages/jinja2/environment.py", line 754, in
handle_exception
    reraise(exc_type, exc_value, tb)
  File
"/lib/python2.7/site-packages/airflow/www/templates/airflow/variable_list.html",
line 18, in top-level template code
    {% extends 'admin/model/list.html' %}
  File
"/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 6, in top-level template code
    {% import 'admin/model/row_actions.html' as row_actions with context %}
  File
"/lib/python2.7/site-packages/airflow/www/templates/admin/master.html",
line 18, in top-level template code
    {% extends 'admin/base.html' %}
  File
"/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/base.html",
line 30, in top-level template code
    {% block page_body %}
  File
"/lib/python2.7/site-packages/airflow/www/templates/admin/master.html",
line 96, in block "page_body"
    {% block body %}
  File
"/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 62, in block "body"
    {% block model_list_table %}
  File
"/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 110, in block "model_list_table"
    {% block list_row scoped %}
  File
"/lib/python2.7/site-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 138, in block "list_row"
    {{ get_value(row, c) }}
  File "/lib/python2.7/site-packages/flask_admin/model/base.py", line 1742,
in get_list_value
    self.column_type_formatters,
  File "/lib/python2.7/site-packages/flask_admin/model/base.py", line 1707,
in _get_list_value
    value = column_fmt(self, context, model, name)
  File "/lib/python2.7/site-packages/airflow/www/views.py", line 2122, in
hidden_field_formatter
    if should_hide_value_for_key(model.key):
  File "/lib/python2.7/site-packages/airflow/www/views.py", line 278, in
should_hide_value_for_key
    return any(s in key_name for s in DEFAULT_SENSITIVE_VARIABLE_FIELDS) \
  File "/lib/python2.7/site-packages/airflow/www/views.py", line 278, in
<genexpr>
    return any(s in key_name for s in DEFAULT_SENSITIVE_VARIABLE_FIELDS) \
TypeError: argument of type 'NoneType' is not iterable

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message