Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Task log can't be shown on Web-Server when the task runs failed #16729

Closed
huozhanfeng opened this issue Jun 30, 2021 · 3 comments
Closed
Labels
duplicate Issue that is duplicated

Comments

@huozhanfeng
Copy link
Contributor

huozhanfeng commented Jun 30, 2021

Apache Airflow version:

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

  • Cloud provider or hardware configuration: Aliyun
  • OS (e.g. from /etc/os-release): CentOS Linux" VERSION="7 (Core)
  • Kernel (e.g. uname -a): Linux 3.10.0-514.21.1.el7.x86_64
  • Install tools: celery 4.4.7 rabbitmq 3.8.17
  • Others:

What happened:
Task log can't be shown on Web-Server when the task runs failed, while log can be shown normally when the task success

*** Log file does not exist: /home/airflow/airflow/logs/dag_id/task_id/2021-06-28T00:00:00+08:00/28.log
*** Fetching from: http://:8793/log/dag_id/task_id/2021-06-28T00:00:00+08:00/28.log
*** Failed to fetch log file from worker. Unsupported URL protocol 

What you expected to happen:
The task log should be shown normally when the task runs failed.

The Hostname info doesn't be written into the task instance table, so the webserver can't get the corresponding hostname.

How to reproduce it:
Just run a dag and make its task fail to reproduce the bug.

Anything else we need to know:
I have fixed it in my env and will commit a PR to fix it.

@huozhanfeng huozhanfeng added the kind:bug This is a clearly a bug label Jun 30, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Jun 30, 2021

Thanks for opening your first issue here! Be sure to follow the issue template!

@uranusjr
Copy link
Member

Looks like another duplicate to #13692.

@uranusjr uranusjr added duplicate Issue that is duplicated and removed kind:bug This is a clearly a bug labels Jun 30, 2021
@huozhanfeng
Copy link
Contributor Author

Looks like another duplicate to #13692.

Sure, I will track it on the other issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue that is duplicated
Projects
None yet
Development

No branches or pull requests

2 participants