<p dir="auto">Hi Team,</p>
<p dir="auto">We are frequently getting below error in airflow where the workers are not able to create the log folder. This usually happens when there is no execution for couple of hours or a new day. We have tried all the options available over the internet including the URL configuration with ip/hostname and we also increased the number of workers. We have also verified the local server for log generation but no luck.</p>
<p dir="auto">We are using local executor in a linux server for a POC purpose.<br>
 </p>
<p dir="auto">*** Log file does not exist: /home/airflow/airflow/logs/dag_id/task_id/2021-06-03T06:49:13.619660+00:00/1.log<br>
*** Fetching from: http://:8793/log/dag_id/task_id/2021-06-03T06:49:13.619660+00:00/1.log<br>
*** Failed to fetch log file from worker. Unsupported URL protocol ''</p>
<p dir="auto">Any help would be appriciated.</p>
<p dir="auto">In order to resolve this issue we are restarting webserver and scheduler. But it works only for few hours.</p>
<p dir="auto">Thanks<br>
Abhishek</p>
<p dir="auto"><code class="notranslate">airflow/providers/apache/hive/hooks/hive.py</code></p>
<p dir="auto">"It is best to think of a dictionary as a set of key: value pairs, with the requirement that the keys are unique (within one dictionary)"</p>
<p dir="auto"><a href="https://docs.python.org/3/tutorial/datastructures.html#dictionaries" rel="nofollow">https://docs.python.org/3/tutorial/datastructures.html#dictionaries</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/418747/117531959-726f2880-b028-11eb-91b1-a394e0cb65a3.png"><img width="482" alt="Screen Shot 2021-05-08 at 6 03 31 pm" src="https://user-images.githubusercontent.com/418747/117531959-726f2880-b028-11eb-91b1-a394e0cb65a3.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/418747/117531966-7a2ecd00-b028-11eb-8bf7-33837c86eec9.png"><img width="691" alt="Screen Shot 2021-05-08 at 6 03 48 pm" src="https://user-images.githubusercontent.com/418747/117531966-7a2ecd00-b028-11eb-8bf7-33837c86eec9.png" style="max-width: 100%;"></a></p>