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/04/15 12:46:07 UTC

[GitHub] [airflow] kylowrobelek opened a new issue #15381: Delete DAG crashes

kylowrobelek opened a new issue #15381:
URL: https://github.com/apache/airflow/issues/15381


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 2.0.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: Dell Latitude
   - **OS** (e.g. from /etc/os-release): Ubuntu 20.04.2 LTS
   - **Kernel** (e.g. `uname -a`): 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
   
   - **Install tools**: python 3.8.5
   - **Others**: local development
   
   **What happened**: When I click delete button (on UI admin panel) for the DAG, admin panel crashed
   
   Traceback (most recent call last):
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/airflow/www/auth.py", line 34, in decorated
       return func(*args, **kwargs)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/airflow/www/decorators.py", line 60, in wrapper
       return f(*args, **kwargs)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/airflow/www/views.py", line 1393, in delete
       delete_dag.delete_dag(dag_id)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/airflow/utils/session.py", line 65, in wrapper
       return func(*args, session=session, **kwargs)
     File "/home/krzysztofwrobel/.local/lib/python3.8/site-packages/airflow/api/common/experimental/delete_dag.py", line 54, in delete_dag
       for model in models.base.Base._decl_class_registry.values():  # noqa pylint: disable=protected-access
   AttributeError: type object 'Base' has no attribute '_decl_class_registry
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**: Delete DAG
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**: Try to delete dag in admin panel
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


-- 
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.

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #15381: Delete DAG crashes

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


   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.

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



[GitHub] [airflow] eladkal closed issue #15381: Delete DAG crashes

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


   


-- 
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.

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



[GitHub] [airflow] eladkal commented on issue #15381: Delete DAG crashes

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


   Duplicate of https://github.com/apache/airflow/issues/15354


-- 
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.

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