airflow: task failed with a null hostname
Apache Airflow version: 2.0.0
Kubernetes version (if you are using kubernetes) (use kubectl version
):
Environment:
- Cloud provider or hardware configuration: tencent cloud
- OS (e.g. from /etc/os-release): centos7
- Kernel (e.g.
uname -a
): 3.10 - Install tools:
- Others: Server version: 8.0.22 MySQL Community Server - GPL
What happened:
Task is in the failed state. I found the log file on one of the worker node and the task is actually success. And in the task instance details tab, the hostname field is null.
And the logs are as follows:
*** Log file does not exist: /data/app/epic-airflow/logs/tiny_demo80677608236/task_0/2021-01-15T09:04:00+00:00/1.log
*** Fetching from: http://:8793/log/tiny_demo80677608236/task_0/2021-01-15T09:04:00+00:00/1.log
*** Failed to fetch log file from worker. Invalid URL 'http://:8793/log/tiny_demo80677608236/task_0/2021-01-15T09:04:00+00:00/1.log': No host supplied
What you expected to happen:
Task should be success.
How to reproduce it:
I don’t know how to reproduce it steadyly. It happened sometimes.
Anything else we need to know:
No
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (6 by maintainers)
Commits related to this issue
- Fix bug that log can't be shown when task runs failed (#16768) The log can't be shown normally when the task runs failed. Users can only get useless logs as follows. #13692 <pre> *** Log file doe... — committed to apache/airflow by huozhanfeng 3 years ago
- Fix bug that log can't be shown when task runs failed (#16768) The log can't be shown normally when the task runs failed. Users can only get useless logs as follows. #13692 <pre> *** Log file does n... — committed to apache/airflow by huozhanfeng 3 years ago
Getting the same issue.
Getting the same issue as well on airflow 2.0.2. Anyone solved it ?
Same issue here. Airflow 1.10.15 on kubernetes.