I am not able see the logs attached to the tasks from the Airflow UI:
Log related settings in airflow.cfg file are:
remote_base_log_folder =
base_log_folder = /home/my_projects/ksaprice_project/airflow/logs
worker_log_server_port = 8793
child_process_log_directory = /home/my_projects/ksaprice_project/airflow/logs/scheduler
Although I am setting remote_base_log_folter it is trying to fetch the log from http://:8793/log/tutorial/print_date/2017-08-02T00:00:00
- I don't understand this behavior. According to the settings the workers should store the logs at /home/my_projects/ksaprice_project/airflow/logs
and they should be fetched from the same location instead of remote.
I ran into this as well, and had to unpause the tasks.
I also set new dags to default to unpaused in my airflow.cfg
As you can see in the image-1 there is a timestamp , make sure in your logs you have the folder/file with that timestamp as name ..
You are looking at UI, so first make sure you have log files created in the directory, in my case my log folder looks like
So my log URL is
When you go to your DAG, and select the GRAPH-VIEW, you can see a dropdown next to "RUN", select the appropriate run, and then in the graph-view below , select the appropriate task/operator and select view-log
I also faced the same problem.
Setting below variables in
airflow.cfg
worked for me. Use{hostname}
as machine'sFQDN {hostname}
instead of localhost.Best of luck!