airflow-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John McGibbney <lewi...@apache.org>
Subject cryptography.fernet.InvalidToken when attempting to access connections
Date Mon, 07 Jun 2021 18:48:53 GMT
Hi users@,
I am deploying the airflow chart from main branch into k3d and encountered the following Exception
trace.
Has anyone experienced this before?
Thanks
lewismc

Ooops!

Something bad has happened.
Please consider letting us know by creating a bug report using GitHub.

Python version: 3.6.13
Airflow version: 2.1.0
Node: airflow-webserver-67d745bff9-5sm7w
-------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/airflow/.local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/airflow/.local/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py",
line 109, in wraps
    return f(self, *args, **kwargs)
  File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/views.py", line
551, in list
    widgets = self._list()
  File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line
1134, in _list
    page_size=page_size,
  File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line
1033, in _get_list_widget
    page_size=page_size,
  File "/home/airflow/.local/lib/python3.6/site-packages/flask_appbuilder/models/sqla/interface.py",
line 435, in query
    query_results = query.all()
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3373,
in all
    return list(self)
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line
100, in instances
    cursor.close()
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py",
line 70, in __exit__
    with_traceback=exc_tb,
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line
182, in raise_
    raise exception
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line
80, in instances
    rows = [proc(row) for row in fetch]
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line
80, in <listcomp>
    rows = [proc(row) for row in fetch]
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line
601, in _instance
    state.manager.dispatch.load(state, context)
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/event/attr.py", line 322,
in __call__
    fn(*args, **kw)
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/mapper.py", line 3397,
in _event_on_load
    instrumenting_mapper._reconstructor(state.obj())
  File "/home/airflow/.local/lib/python3.6/site-packages/airflow/models/connection.py", line
150, in on_db_load
    if self.password:
  File "/home/airflow/.local/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py", line
365, in __get__
    retval = self.descriptor.__get__(instance, owner)
  File "/home/airflow/.local/lib/python3.6/site-packages/airflow/models/connection.py", line
235, in get_password
    return fernet.decrypt(bytes(self._password, 'utf-8')).decode()
  File "/home/airflow/.local/lib/python3.6/site-packages/cryptography/fernet.py", line 194,
in decrypt
    raise InvalidToken
cryptography.fernet.InvalidToken



Mime
View raw message