Docker-airflow: Failed to fetch logs from worker on CeleryExecutor

Created on 30 Jan 2019  路  6Comments  路  Source: puckel/docker-airflow

*** Log file does not exist: /usr/local/airflow/logs/$dag_id$/$task_id$/2019-01-18T16:41:33.469813+00:00/4.log
*** Fetching from: http://04e6b0f20a57:8793/log/$dag_id$/$task_id$/2019-01-18T16:41:33.469813+00:00/4.log
*** Failed to fetch log file from worker. 404 Client Error: Not Found for url: http://04e6b0f20a57:8793/log/$dag_id$/$task_id$/2019-01-18T16:41:33.469813+00:00/4.log

I'm getting the above ever since upgrading to the 1.10.1 docker compose.

Most helpful comment

I found the issue. I had an HTTP Proxy set at the container level, once i unset it, logs are now visible again.

All 6 comments

I had miss same issue, I still don not understand that, Is anyone know why?

Try to use shared file system like s3 efs if you running on multi host. in airflow.cfg, you can specify the shared file system.

I'm running with docker --scale

I looked into this a bit, it looks like the docker containers aren't able to resolve the other's aliases via DNS. Is there something in the celery compose that's missing? maybe a network setting?

I found the issue. I had an HTTP Proxy set at the container level, once i unset it, logs are now visible again.

I'm using non-docker airflow , I had miss same issue.
In my case , the airflow serve_logs is down

nohup airflow serve_logs >> service_logs/airflow/airflow_serve_logs.log 2>&1 &

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prasanthbangs2016 picture prasanthbangs2016  路  3Comments

hxu-lift picture hxu-lift  路  4Comments

smaley07 picture smaley07  路  3Comments

infused-kim picture infused-kim  路  7Comments

hyw picture hyw  路  6Comments