GitHub user AmythD added a comment to the discussion: Issues while enabling 
remote logging to Azure blob storage

 I did some additional testing and the connection tests are successful when I 
run them using airflow cli and also UI

but logs are still not visible in IU

```
airflow connections test azure_blob_logs
Retrieving connection: 'azure_blob_logs'

Testing...

Connection success!
```

And this is what my connection looks like:

```
airflow connections list  -o yaml
- conn_id: azure_blob_logs
  conn_type: wasb
  description: null
  extra_dejson:
    connection_string: 
DefaultEndpointsProtocol=https;AccountName=++++airflowqa;AccountKey=+++++++++++++++++ASt9QqJCw==;EndpointSuffix=core.windows.net
  get_uri: 
wasb://++++airflowqa:3%2FeSvJ%2Fwnp%2FoeI++++++++++++++++++++++++U3HK3W0KmdbpImGMnvuxMHU%2FwWqUMKvJVCGytlh2Q%2BASt9QqJCw%3D%3D@++++airflowqa.blob.core.windows.net/?connection_string=DefaultEndpointsProtocol%3Dhttps%3BAccountName%3D++++++++++++++++airflowqa%3BAccountKey%3D3%2FeSvJ%2Fwnp%2FoeITxFkM5++++++++++++nvuxMHU%2FwWqUMKvJVCGytlh2Q%2BASt9QqJCw%3D%3D%3BEndpointSuffix%3Dcore.windows.net
  host: ++++++++airflowqa.blob.core.windows.net
  id: '29'
  is_encrypted: 'True'
  is_extra_encrypted: 'True'
  login: ++++++++airflowqa
  password: ++++++++++++++++++++0KmdbpImGMnvuxMHU/wWqUMKvJVCGytlh2Q+ASt9QqJCw==
  port: null
  schema: null
```

Still getting this error:

```
[2025-05-31T06:42:45.212+0000] {file_task_handler.py:623} ERROR - Could not 
read served logs
Traceback (most recent call last):
  File 
"/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/log/file_task_handler.py",
 line 601, in _read_from_logs_server
    response = _fetch_logs_from_service(url, rel_path)
  File 
"/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/log/file_task_handler.py",
 line 101, in _fetch_logs_from_service
    response = requests.get(
  File "/home/airflow/.local/lib/python3.10/site-packages/requests/api.py", 
line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/airflow/.local/lib/python3.10/site-packages/requests/api.py", 
line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File 
"/home/airflow/.local/lib/python3.10/site-packages/requests/sessions.py", line 
575, in request
    prep = self.prepare_request(req)
  File 
"/home/airflow/.local/lib/python3.10/site-packages/requests/sessions.py", line 
484, in prepare_request
    p.prepare(
  File "/home/airflow/.local/lib/python3.10/site-packages/requests/models.py", 
line 367, in prepare
    self.prepare_url(url, params)
  File "/home/airflow/.local/lib/python3.10/site-packages/requests/models.py", 
line 444, in prepare_url
    raise InvalidURL(f"Invalid URL {url!r}: No host supplied")
requests.exceptions.InvalidURL: Invalid URL 
'http://:8793/log/dag_id=1f2dbb5d-fe00-4bb8-9901-ff291cc32103/run_id=manual__2025-05-31T06:38:07.515527+00:00/task_id=ingestion_task/attempt=1.log':
 No host supplied
```

I've tried multiple combinations of hosts, login etc for the storage account 
name but still can't get it to work, any help in identifying the issue is 
greatly appreciated!

Thanks,
Amith



GitHub link: 
https://github.com/apache/airflow/discussions/51170#discussioncomment-13327627

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to