<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.1</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Helm Chart</strong>: <a href="https://github.com/apache/airflow/tree/master/chart">https://github.com/apache/airflow/tree/master/chart</a></li>
<li><strong>Install tools</strong>: helm3</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
worker ip address is missing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** Log file does not exist: /opt/airflow/logs/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log
*** Fetching from: http://:8793/log/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log
*** Failed to fetch log file from worker. Invalid URL 'http://:8793/log/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log': No host supplied"><pre class="notranslate"><code class="notranslate">*** Log file does not exist: /opt/airflow/logs/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log
*** Fetching from: http://:8793/log/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log
*** Failed to fetch log file from worker. Invalid URL 'http://:8793/log/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log': No host supplied
</code></pre></div>
<p dir="auto"><strong>Config</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  core:
    load_examples: 'False'
    hostname_callable: 'airflow.utils.net:get_host_ip_address'
  webserver:
    workers: '4'
    enable_proxy_fix: 'True'
    base_url: 'http://localhost:8080'
    authenticate: 'True'
    log_fetch_timeout_sec: '60'
  cli:
    endpoint_url: 'http://localhost:8080'"><pre class="notranslate"><code class="notranslate">  core:
    load_examples: 'False'
    hostname_callable: 'airflow.utils.net:get_host_ip_address'
  webserver:
    workers: '4'
    enable_proxy_fix: 'True'
    base_url: 'http://localhost:8080'
    authenticate: 'True'
    log_fetch_timeout_sec: '60'
  cli:
    endpoint_url: 'http://localhost:8080'
</code></pre></div>
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: tencent cloud</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): centos7</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 3.10</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>: Server version: 8.0.22 MySQL Community Server - GPL</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">Task is in the <strong>failed</strong> state. I found the log file on one of the worker node and the task is actually success. And in the <strong>task instance details</strong> tab, the hostname field is null.</p>
<p dir="auto">And the logs are as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** 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"><pre class="notranslate"><code class="notranslate">*** 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
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">Task should be success.</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto">I don't know how to reproduce it steadyly. It happened sometimes.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">No</p>