简体   繁体   English

气流未在 UI 上的任务实例中创建日志文件或显示日志

[英]Airflow not creating log files or showing logs in task instance on UI

Im getting the following airflow issue:我遇到以下气流问题:

When I run Dags that have mutiple tasks in it, randomly airflow set some of the tasks to failed state, and also doesn't show any logs on the UI.当我运行其中包含多个任务的 Dags 时,随机气流将一些任务设置为失败状态,并且也不在 UI 上显示任何日志。 I went to my running worker container and saw that the log files for those failed tasks were also not created.我去了我正在运行的工作容器,看到那些失败任务的日志文件也没有创建。

Going to Celery Flower, I found these logs on failed tasks:去芹菜花,我发现了这些失败任务的日志:

airflow.exceptions.AirflowException: Celery command failed on host

How to solve this?如何解决这个问题?

在此处输入图像描述 My environment is:我的环境是:

  • airflow:2.3.1气流:2.3.1
  • Docker compose码头工人撰写
  • Celery Executor芹菜执行者
  • Worker, webserver, scheduler and triggerer in different containers Docker compose hosted on Ubuntu不同容器中的工作器、网络服务器、调度程序和触发器 Docker 组合托管在 Ubuntu 上

I also saw this https://stackoverflow.com/a/69201032/11949273 answer that might be related.我还看到了这个可能相关的https://stackoverflow.com/a/69201032/11949273答案。

Anyone with these same issues?有同样问题的人吗?

Edit:编辑:

On my EC2 Instance I got more vCPU's and fine tuned airflow/celery workers parameters and solved this.在我的 EC2 实例上,我获得了更多的 vCPU 和微调的气流/芹菜工人参数并解决了这个问题。 Probably is some issue with lack of CPU and or something else.可能是缺少 CPU 或其他问题。

I am faced with some issue.我面临一些问题。 In my case in Inspect -> Console has some error with replaceAll in old browser (Chrome 83.X).在我的情况下Inspect -> Console在旧浏览器(Chrome 83.X)中的replaceAll有一些错误。 Chrome 98.X does not have this issue. Chrome 98.X 没有这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM