yamrzou commented on issue #30997: URL: https://github.com/apache/airflow/issues/30997#issuecomment-1534884448
@potiuk I thought the comment was self-explanatory. Here is more context: I deployed Airflow 2.6.0 on two VMs, one for the webserver and one for the scheduler/worker. When a task is running, the logs are shown correctly in the UI. As soon as the task is finished (either success or failure), the logs tab only shows one line containing the hostname of the worker, as can be seen in the screenshot below:  I tried to track down the cause of the issue, by manually running the following line on the webserver VM: https://github.com/apache/airflow/blob/91e18bfc3e53002c191b33dbbfd017e152b23935/airflow/utils/log/file_task_handler.py#L500 ``` from airflow.utils.log.file_task_handler import _fetch_logs_from_service _fetch_logs_from_service('http://10.0.3.36:8793/log/dag_id=DAG_ID/run_id=RUN_ID/task_id=TASK_ID/attempt=ATTEMPT_NUMBER.log', 'dag_id=DAG_ID/run_id=RUN_ID/task_id=TASK_ID/attempt=ATTEMPT_NUMBER.log') ``` It fetched the complete log successfully. So I suspected that the issue I'm encountering is the same as this one. If it's not I'll open a separate issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
