You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by David Montgomery <da...@gmail.com> on 2016/08/22 23:40:55 UTC

/admin/connection/ raise InvalidToken

Hi,

When I go to /admin/connection/ I get the below error.  How do I resolve?


Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line
1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line
1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line
1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line
1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line
1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py",
line 68, in inner
    return self._run_view(f, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py",
line 367, in _run_view
    return fn(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py",
line 1814, in index_view
    return_url=self._get_list_url(view_args),
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py",
line 307, in render
    return render_template(template, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask/templating.py",
line 128, in render_template
    context, ctx.app)
  File "/usr/local/lib/python2.7/dist-packages/flask/templating.py",
line 110, in _render
    rv = template.render(context)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py",
line 989, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py",
line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/templates/airflow/conn_list.html",
line 17, in top-level template code
    {% extends 'airflow/model_list.html' %}
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/templates/airflow/model_list.html",
line 1, in top-level template code
    {% extends 'admin/model/list.html' %}
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 5, in top-level template code
    {% import 'admin/actions.html' as actionlib with context %}
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/templates/admin/master.html",
line 1, in top-level template code
    {% extends 'admin/base.html' %}
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/templates/bootstrap3/admin/base.html",
line 30, in top-level template code
    {% block page_body %}
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/templates/admin/master.html",
line 80, in block "page_body"
    {% block body %}
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 62, in block "body"
    {% block model_list_table %}
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/templates/bootstrap3/admin/model/list.html",
line 110, in block "model_list_table"
    {% block list_row scoped %}
  File "/usr/local/lib/python2.7/dist-packages/airflow/www/templates/airflow/conn_list.html",
line 52, in block "list_row"
    <td class="{{ 'not-empty' if get_value(row, 'extra') else 'empty' }}">
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py",
line 1666, in get_list_value
    self.column_type_formatters,
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py",
line 1633, in _get_list_value
    value = self._get_field_value(model, name)
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/model/base.py",
line 1611, in _get_field_value
    return rec_getattr(model, name)
  File "/usr/local/lib/python2.7/dist-packages/flask_admin/tools.py",
line 81, in rec_getattr
    return reduce(getattr, attr.split('.'), obj)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py",
line 293, in __get__
    return self.descriptor.__get__(instance, owner)
  File "/usr/local/lib/python2.7/dist-packages/airflow/models.py",
line 534, in get_extra
    return FERNET.decrypt(bytes(self._extra, 'utf-8')).decode()
  File "/usr/local/lib/python2.7/dist-packages/cryptography/fernet.py",
line 103, in decrypt
    raise InvalidToken
InvalidToken