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 2020/06/23 19:53:41 UTC
[GitHub] [airflow] WesleyBatista opened a new issue #9490: Unable to retrieve logs after Out Of Memory Error
WesleyBatista opened a new issue #9490:
URL: https://github.com/apache/airflow/issues/9490
**Apache Airflow version**: 1.10.10
**Environment**:
- **Cloud provider or hardware configuration**:
- **OS** (e.g. from /etc/os-release): `Debian GNU/Linux 9 (stretch)`
- **Kernel** (e.g. `uname -a`): `Linux <redacted> 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux`
**What happened**:
A task got executed and failed, but the execution logs are inaccessible from the UI.

```
$ cat /var/log/airflow/<dag_id>/<task_id>/2020-06-15T01\:23\:00+00\:00/1.log
... <application logs here. no raised exceptions>
[2020-06-22 20:15:35,141] {logging_mixin.py:112} INFO - [2020-06-22 20:15:35,091] {local_task_job.py:103} INFO - Task exited with return code -9
```
**What you expected to happen**:
Execution logs should be available on the UI.
**How to reproduce it**:
In our case it was an [OOM error](https://stackoverflow.com/a/18529453), but maybe any unhandled error can be used to reproduce a crash, or perhaps even issuing a `kill -9` on the process running the task could reproduce the issue.
**Anything else we need to know**:
1. I found this issue that helped me to understand the error: https://issues.apache.org/jira/browse/AIRFLOW-4922
2. Our current setup:
- **machine1** running `airflow-webserver`, `airflow-scheduler`, `airflow-worker`
- **machine2** running `airflow-worker`
The task is set to be executed on **machine2**
3. These are the task instances currently on the airflow metadata database:

We can see in the image that the one which took the most duration time and eventually got killed by OOM is also the one without a `hostname` set.
----------------------------------------------------------------
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] github-actions[bot] commented on issue #9490: Unable to retrieve logs after Out Of Memory Error
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #9490:
URL: https://github.com/apache/airflow/issues/9490#issuecomment-1050381621
This issue has been closed because it has not received response from the issue author.
--
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] WesleyBatista commented on issue #9490: Unable to retrieve logs after Out Of Memory Error
Posted by GitBox <gi...@apache.org>.
WesleyBatista commented on issue #9490:
URL: https://github.com/apache/airflow/issues/9490#issuecomment-911614831
another characteristic of this bug: the logs are available while the task is running, but disappear when the task fail.
still present on v2.0.2, which now outputs the error name instead of the code:
```
[2021-09-02 11:18:06,592] {local_task_job.py:146} INFO - Task exited with return code Negsignal.SIGKILL
```
--
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] github-actions[bot] commented on issue #9490: Unable to retrieve logs after Out Of Memory Error
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #9490:
URL: https://github.com/apache/airflow/issues/9490#issuecomment-1043662584
This issue has been automatically marked as stale because it has been open for 30 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
--
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] samgans commented on issue #9490: Unable to retrieve logs after Out Of Memory Error
Posted by GitBox <gi...@apache.org>.
samgans commented on issue #9490:
URL: https://github.com/apache/airflow/issues/9490#issuecomment-752637643
I've stumbled upon the same issue. Can someone who has such information to tell more about why the UI actually can't retrieve the hostname from the task instance?
----------------------------------------------------------------
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] github-actions[bot] closed issue #9490: Unable to retrieve logs after Out Of Memory Error
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #9490:
URL: https://github.com/apache/airflow/issues/9490
--
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] eladkal commented on issue #9490: Unable to retrieve logs after Out Of Memory Error
Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #9490:
URL: https://github.com/apache/airflow/issues/9490#issuecomment-1015843432
Does it still happen on latest airflow version?
--
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