GitHub user swchen1282 edited a comment on the discussion: Could not read 
served logs: Invalid URL 'http://:8793....': Not host supplied

I tried to add `hostname_callable: "socket:getfqdn"` on `helm-values.yml`  and 
everything works for me. HTH.

```yml
# helm-value.yml
config:
  core:
    dags_folder: '{{ include "airflow_dags" . }}'
    load_examples: 'False'
    executor: '{{ .Values.executor }}'
    colored_console_log: 'False'
    remote_logging: '{{- ternary "True" "False" .Values.elasticsearch.enabled 
}}'
    hostname_callable: "socket:getfqdn"  <----
```

```sh
# logs
airflow-worker-0.airflow-worker.airflow.svc.cluster.local
*** Found logs served from host 
http://airflow-worker-0.airflow-worker.airflow.svc.cluster.local:8793/log/dag_id=<dag_id>/run_id=scheduled__2025-03-18T02:00:00+00:00/task_id=<task_id>/attempt=1.log
[2025-03-18, 03:00:00 UTC] {local_task_job_runner.py:120} ▶ Pre task execution 
logs
[2025-03-18, 03:00:00 UTC] {<dag_id>.py:39} INFO - Successfully ...
[2025-03-18, 03:00:00 UTC] {python.py:237} INFO - Done. Returned value was: None
[2025-03-18, 03:00:00 UTC] {taskinstance.py:441} ▶ Post task execution logs
```

```sh
# os
ubuntu 22.04.4 LTS

# python
3.11

# helm list
CHART: airflow-1.15.0
APP VERSION: 2.9.3

# kubectl version
Client Version: v1.31.3
Kustomize Version: v5.4.2
Server Version: v1.28.7
```

GitHub link: 
https://github.com/apache/airflow/discussions/45525#discussioncomment-12532718

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

Reply via email to