Skip to content

werkzeug.routing.BuildError: Could not build url for endpoint 'Airflow.legacy_graph'. Did you mean 'Airflow.graph' instead? #27815

@amit151993

Description

@amit151993

Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
    Use a ``with`` block to push the context, which will make
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
    generate. If this starts with a ``.``, the current blueprint
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
    except Exception as e:
  File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    the scheme and domain, like ``https://example.com/hello``. When
  File "/usr/local/lib/python3.8/site-packages/airflow/www/auth.py", line 51, in decorated
    'airflow/no_roles_permissions.html',
  File "/usr/local/lib/python3.8/site-packages/airflow/www/views.py", line 695, in index
    ) in user_permissions
  File "/usr/local/lib/python3.8/site-packages/airflow/www/views.py", line 477, in render_template
    return (
  File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 287, in render_template
    for attr_name in dir(self):
  File "/usr/local/lib/python3.8/site-packages/flask/templating.py", line 137, in render_template
    **context: t.Any
  File "/usr/local/lib/python3.8/site-packages/flask/templating.py", line 120, in _render
    if loader is not None:
  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
    template_class: t.Optional[t.Type["Template"]] = None,
  File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
    zipfile.
TypeError: reraise() argument after * must be an iterable, not BuildError

What you think should happen instead

No response

How to reproduce

Installed airflow SSH operator using the below command and scheduled sample DAGs.
pip install apache-airflow-providers-ssh

And after restart of the Airflow Instance, getting mentioned error.

Operating System

Linux

Versions of Apache Airflow Providers

airflow 2.2.0 version

Deployment

Other Docker-based deployment

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions