Python operator getting failed: Task exited with return code Negsignal.SIGABRT #22273
Replies: 5 comments 5 replies
-
SIGABRT is generated by your task. you need to debug what your task is doing and why it aborts. This has nothing to do with Airflow. Likely you are using some "c-level" library that fails (SIGABRT is usually when the task uses low-level c library and fails)). There is nothing anyone can help with here - whoever wrote the Python task must debug and analyze itl |
Beta Was this translation helpful? Give feedback.
-
I get the "Task exited with return code Negsignal.SIGABRT" error and found that this is happening when inside the PythonOperator trying to log the context object like this. I removed the logging and the issue is solved. `def _prepare_env(**context): prepare_env = PythonOperator( |
Beta Was this translation helpful? Give feedback.
-
In case someone ends up here when Googling SIGBART or SIGSEGV error in airflow. You might find it useful, at least i would, before i wasted some time trying to find the source of the problem. We were struggling with # poetry install
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
pip install -U pip setuptools
pip install grpcio --force-reinstall It is described in more details in the grpcio issue linked above. Apart from those, as mentioned here and here , You may also have to export this into Your shell: |
Beta Was this translation helpful? Give feedback.
-
Try decrease the number of
|
Beta Was this translation helpful? Give feedback.
-
Adding |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.2.2
What happened
We recently upgraded the airflow version from 2.0.2 to 2.2.2
In one of the dag, we are getting the issue in the python operator. Error: Task exited with return code Negsignal.SIGABRT
The dag consists of multiple tasks and out of those tasks one particular task (python operator) is showing the above error consistently.
we are seeing the log Started process 535 to run the task and then it is failing with the above error. We are also seeing file core.535 getting generated in the disk which indicates that there is some issue with the application. Though it is working fine in local but failing in AWS ECS cluster
What you think should happen instead
Python operator should have worked
How to reproduce
No response
Operating System
PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Operator log file:
log_file (1).log
Started process 535 to run task
core.535 process id is same in python operator logs as in core dump file.
Beta Was this translation helpful? Give feedback.
All reactions