-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Labels
kind:bug
This is a clearly a bug
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
In your |
Hi Jed,
I saw that and I can verify that my own personal Airflow environment does not have that role.
I assume I can create it, make it compatible with our shared DEV environment, which is where I suspect this code was inserted.
I will do that and get back to you but I have a meeting now.
Still, the abend is not desired vs a message that a role is not defined.
Mark
From: Jed Cunningham ***@***.***>
Sent: Thursday, July 22, 2021 9:29 AM
To: apache/airflow ***@***.***>
Cc: Mapes, Mark <mwmapes@UCSD.EDU>; Author ***@***.***>
Subject: Re: [apache/airflow] abend during dag refresh (#17166)
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_airflow_issues_17166-23issuecomment-2D885048432&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=83C8w12J0aQ4N19XzEZzDw&m=JRUrY9hZZ3k2Za1UbrTEge5Sqy6Nn8Ca1PZ2Mbi4edc&s=5J9wI7zaPwVX3jtb9p4Q-VsUeLNI9nVnNu3kdXM6wJ8&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AU6BBMZUJJ4GAWXRNX42233TZBBLPANCNFSM5A2KJXNA&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=83C8w12J0aQ4N19XzEZzDw&m=JRUrY9hZZ3k2Za1UbrTEge5Sqy6Nn8Ca1PZ2Mbi4edc&s=JbU7UNpgiSQ5xNmf5NHElMRB9IVt5ZemtpnR4NSwzBI&e=>.
|
Jed, I copied existing USER role to DIS_User and it works.
Thank you for your support.
Mark
From: Jed Cunningham ***@***.***>
Sent: Thursday, July 22, 2021 9:29 AM
To: apache/airflow ***@***.***>
Cc: Mapes, Mark <mwmapes@UCSD.EDU>; Author ***@***.***>
Subject: Re: [apache/airflow] abend during dag refresh (#17166)
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_airflow_issues_17166-23issuecomment-2D885048432&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=83C8w12J0aQ4N19XzEZzDw&m=JRUrY9hZZ3k2Za1UbrTEge5Sqy6Nn8Ca1PZ2Mbi4edc&s=5J9wI7zaPwVX3jtb9p4Q-VsUeLNI9nVnNu3kdXM6wJ8&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AU6BBMZUJJ4GAWXRNX42233TZBBLPANCNFSM5A2KJXNA&d=DwMCaQ&c=-35OiAkTchMrZOngvJPOeA&r=83C8w12J0aQ4N19XzEZzDw&m=JRUrY9hZZ3k2Za1UbrTEge5Sqy6Nn8Ca1PZ2Mbi4edc&s=JbU7UNpgiSQ5xNmf5NHElMRB9IVt5ZemtpnR4NSwzBI&e=>.
|
This was referenced Jul 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: