title: Airflow - Failed to fetch log file from worker. 404 Client Error: NOT FOUND for url
body: <p>I am running Airflowv1.9 with Celery Executor. I have 5 Airflow workers running in 5 different machines. Airflow scheduler is also running in one of these machines. I have copied the same airflow.cfg file across these 5 machines.
  I have daily workflows setup in different queues like DEV, QA etc. (each worker runs with an individual queue name) which are running fine.</p>
  
  <p>While scheduling a DAG in one of the worker (no other DAG have been setup for this worker/machine previously), I am seeing the error in the 1st task and as a result downstream tasks are failing:</p>
  
  <pre><code>*** Log file isn't local.
  *** Fetching here: http://&lt;worker hostname&gt;:8793/log/PDI_Incr_20190407_v2/checkBCWatermarkDt/2019-04-07T17:00:00/1.log
  *** Failed to fetch log file from worker. 404 Client Error: NOT FOUND for url: http://&lt;worker hostname&gt;:8793/log/PDI_Incr_20190407_v2/checkBCWatermarkDt/2019-04-07T17:00:00/1.log
  </code></pre>
  
  <p>I have configured MySQL for storing the DAG metadata. When I checked task_instance table, I see proper hostnames are populated against the task.</p>
  
  <p>I also checked the log location and found that the log is getting created.</p>
  
  <p><strong>airflow.cfg snippet:</strong></p>
  
  <pre><code>base_log_folder = /var/log/airflow
  base_url = http://&lt;webserver ip&gt;:8082
  worker_log_server_port = 8793
  api_client = airflow.api.client.local_client
  endpoint_url = http://localhost:8080
  </code></pre>
  
  <p>What am I missing here? What configurations do I need to check additionally for resolving this issue?</p>