vatsrahul1001 opened a new issue, #55470:
URL: https://github.com/apache/airflow/issues/55470
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Getting error in API server logs while I clicked on task in deferred state
in UI
```
INFO: 192.168.97.1:57238 - "GET
/api/v2/dags/each_two_wait_one_async/dagRuns/manual__2025-09-10T16%3A13%3A15.237946%2B00%3A00/taskInstances/wait_exec_plus_one/-1
HTTP/1.1" 200 OK
2025-09-10T16:13:42.135569Z [error ] Could not read served logs
[airflow.utils.log.file_task_handler]
Traceback (most recent call last):
File "/usr/python/lib/python3.10/site-packages/urllib3/connection.py",
line 198, in _new_conn
sock = connection.create_connection(
File
"/usr/python/lib/python3.10/site-packages/urllib3/util/connection.py", line 85,
in create_connection
raise err
File
"/usr/python/lib/python3.10/site-packages/urllib3/util/connection.py", line 73,
in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/python/lib/python3.10/site-packages/urllib3/connectionpool.py",
line 787, in urlopen
response = self._make_request(
File "/usr/python/lib/python3.10/site-packages/urllib3/connectionpool.py",
line 493, in _make_request
conn.request(
File "/usr/python/lib/python3.10/site-packages/urllib3/connection.py",
line 494, in request
self.endheaders()
File "/usr/python/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/python/lib/python3.10/http/client.py", line 1038, in
_send_output
self.send(msg)
File "/usr/python/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/usr/python/lib/python3.10/site-packages/urllib3/connection.py",
line 325, in connect
self.sock = self._new_conn()
File "/usr/python/lib/python3.10/site-packages/urllib3/connection.py",
line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection
object at 0xffff5f742200>: Failed to establish a new connection: [Errno 111]
Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/python/lib/python3.10/site-packages/requests/adapters.py", line
644, in send
resp = conn.urlopen(
File "/usr/python/lib/python3.10/site-packages/urllib3/connectionpool.py",
line 841, in urlopen
retries = retries.increment(
File "/usr/python/lib/python3.10/site-packages/urllib3/util/retry.py",
line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type:
ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='8e79b3d36f33',
port=8794): Max retries exceeded with url:
/log/dag_id=each_two_wait_one_async/run_id=manual__2025-09-10T16:13:15.237946+00:00/task_id=wait_exec_plus_one/attempt=1.log.trigger.3.log
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at
0xffff5f742200>: Failed to establish a new connection: [Errno 111] Connection
refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/opt/airflow/airflow-core/src/airflow/utils/log/file_task_handler.py", line
876, in _read_from_logs_server
response = _fetch_logs_from_service(url, rel_path)
File
"/opt/airflow/airflow-core/src/airflow/utils/log/file_task_handler.py", line
185, in _fetch_logs_from_service
response = requests.get(
File "/usr/python/lib/python3.10/site-packages/requests/api.py", line 73,
in get
return request("get", url, params=params, **kwargs)
File "/usr/python/lib/python3.10/site-packages/requests/api.py", line 59,
in request
return session.request(method=method, url=url, **kwargs)
File "/usr/python/lib/python3.10/site-packages/requests/sessions.py", line
589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/python/lib/python3.10/site-packages/requests/sessions.py", line
703, in send
r = adapter.send(request, **kwargs)
File "/usr/python/lib/python3.10/site-packages/requests/adapters.py", line
677, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='8e79b3d36f33',
port=8794): Max retries exceeded with url:
/log/dag_id=each_two_wait_one_async/run_id=manual__2025-09-10T16:13:15.237946+00:00/task_id=wait_exec_plus_one/attempt=1.log.trigger.3.log
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at
0xffff5f742200>: Failed to establish a new connection: [Errno 111] Connection
refused'))
INFO: 192.168.97.1:57238 - "GET
/api/v2/dags/each_two_wait_one_async/dagRuns/manual__2025-09-10T16%3A13%3A15.237946%2B00%3A00/taskInstances/wait_exec_plus_one/logs/1?map_index=-1
HTTP/1.1" 200 OK
```
### What you think should happen instead?
_No response_
### How to reproduce
1. Trigger a deferred task
2. click on deferred task in UI
3. Check API server logs
### Operating System
OS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]