question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

task failed with a null hostname

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
ppartheshcommented, May 26, 2021

Getting the same issue.

3reactions
hafid-dcommented, May 20, 2021

Getting the same issue as well on airflow 2.0.2. Anyone solved it ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.IllegalArgumentException: Host name may not be null
The bad URL is likely causing an Exception in the HttpGet where it processes the URL is returning a null to the rest...
Read more >
URLSession can't complete task when server is not found
URLSession starts waiting for connectivity when network is available, but requested domain doesn't not exist. Some errors can shows up console:.
Read more >
Health check failed due to java.lang.IllegalArgumentException
This exception has been observed after upgrading a Jira instance that was running behind a reverse proxy to the 9.0.x version. ... Because...
Read more >
Connecting an ESXi host to vCenter Server fails with a ...
This issue can occur if the host certificate has one of these problems: The host name does not match the Subject Name(s) in...
Read more >
Scheduled tasks failures after upgrade to 10.8.0
Messaging Gateway Alert - Scheduled tasks failures after upgrade to 10.8.0 ... [AgentHelper] ERROR - --- Host Name: null
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found