You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/22 16:09:35 UTC

[GitHub] [airflow] mwmapes-ucsd opened a new issue #17166: abend during dag refresh

mwmapes-ucsd opened a new issue #17166:
URL: https://github.com/apache/airflow/issues/17166


   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_functions[rule.endpoint](**req.view_args)
     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
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on issue #17166: abend during dag refresh

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on issue #17166:
URL: https://github.com/apache/airflow/issues/17166#issuecomment-885048432


   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #17166: abend during dag refresh

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #17166:
URL: https://github.com/apache/airflow/issues/17166#issuecomment-885035333


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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mwmapes-ucsd commented on issue #17166: abend during dag refresh

Posted by GitBox <gi...@apache.org>.
mwmapes-ucsd commented on issue #17166:
URL: https://github.com/apache/airflow/issues/17166#issuecomment-885066909


   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 <mw...@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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #17166: abend during dag refresh

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #17166:
URL: https://github.com/apache/airflow/issues/17166


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mwmapes-ucsd commented on issue #17166: abend during dag refresh

Posted by GitBox <gi...@apache.org>.
mwmapes-ucsd commented on issue #17166:
URL: https://github.com/apache/airflow/issues/17166#issuecomment-885090567


   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 <mw...@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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org