Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abend during dag refresh #17166

Closed
mwmapes-ucsd opened this issue Jul 22, 2021 · 4 comments
Closed

abend during dag refresh #17166

mwmapes-ucsd opened this issue Jul 22, 2021 · 4 comments
Labels
kind:bug This is a clearly a bug

Comments

@mwmapes-ucsd
Copy link

This error is thrown when trying to refresh dag:
Ooops!

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

Python version: 3.8.10
Airflow version: 2.0.2
Node: ITS-HXYPNF2.AD.UCSD.EDU

Traceback (most recent call last):
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/airflow/www/auth.py", line 34, in decorated
return func(*args, **kwargs)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/airflow/www/decorators.py", line 60, in wrapper
return f(*args, **kwargs)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/airflow/utils/session.py", line 70, in wrapper
return func(*args, session=session, **kwargs)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/airflow/www/views.py", line 2437, in refresh
current_app.appbuilder.sm.sync_perm_for_dag(dag_id, dag.access_control)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/airflow/www/security.py", line 613, in sync_perm_for_dag
self._sync_dag_view_permissions(prefixed_dag_id, access_control)
File "/home/mwmapes/.local/share/virtualenvs/AirflowHome-nHPW_TAC/lib/python3.8/site-packages/airflow/www/security.py", line 657, in _sync_dag_view_permissions
raise AirflowException(
airflow.exceptions.AirflowException: The access_control mapping for DAG 'DAG:dis_dba_patch_tuesday' includes a role named 'DIS_User', but that role does not exist

@mwmapes-ucsd mwmapes-ucsd added the kind:bug This is a clearly a bug label Jul 22, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Jul 22, 2021

Thanks for opening your first issue here! Be sure to follow the issue template!

@jedcunningham
Copy link
Member

In your dis_dba_patch_tuesday DAG, do you have access_control set? That exception is saying that the role specified, DIS_User, doesn't exist. Does it? You can check by looking in "Security -> Roles" in the UI.

@mwmapes-ucsd
Copy link
Author

mwmapes-ucsd commented Jul 22, 2021 via email

@mwmapes-ucsd
Copy link
Author

mwmapes-ucsd commented Jul 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

3 participants