Open raphaelauv opened 5 months ago
Not sure what we can do here without reproduce example
still present in 2.9.1
the full url that give the error is
https://XXXX.ZZZ/get_logs_with_metadata?dag_id=QQQQ&task_id=MMMMM&map_index=-1&execution_date=2024-04-29T07%3A17%3A59%2B00%3A00&try_number=1&metadata=null
the log file is stored on S3
I will publish it as soon I get it manually
I could reproduce the bug by isolating the log lines that make the webserver crash
run a deferable kpo task
from pendulum import today
from airflow import DAG
from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
dag = DAG(
dag_id="kubernetes_dag",
schedule_interval="0 0 * * *",
start_date=today("UTC").add(days=-1)
)
with dag:
cmd = "echo toto && sleep 4 && echo finish"
KubernetesPodOperator(
task_id="task-one",
namespace="default",
kubernetes_conn_id="kubernetes_default",
name="airflow-test-pod",
image="alpine:3.16.2",
cmds=["sh", "-c", cmd],
deferrable=True,
poll_interval=2,
get_logs=True,
)
then replace the content of the attempt\=1.log
with only this string
[2024-04-29T07:37:28.609+0000] {pod.py:795} INFO - Container logs:
8192/6040200 [..............................] - ETA: 0s
1474560/6040200 [======>.......................] - ETA: 0s
3194880/6040200 [==============>...............] - ETA: 0s
5505024/6040200 [==========================>...] - ETA: 0s
6040200/6040200 [==============================] - 0s 0us/step
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
no stale
I could reproduce the bug by isolating the log lines that make the webserver crash
run a deferable kpo task
then replace the content of the
attempt\=1.log
with only this string[2024-04-29T07:37:28.609+0000] {pod.py:795} INFO - Container logs: 8192/6040200 [..............................] - ETA: 0s���������������������������������������������������������� 1474560/6040200 [======>.......................] - ETA: 0s���������������������������������������������������������� 3194880/6040200 [==============>...............] - ETA: 0s���������������������������������������������������������� 5505024/6040200 [==========================>...] - ETA: 0s���������������������������������������������������������� 6040200/6040200 [==============================] - 0s 0us/step
Could you please edit the original issue and provide a minimal (yet full) example so other people could reproduce the issue?
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
no stale
Apache Airflow version
2.9.0
What happened?
I can't access the logs from the airflow-UI of one scpeific task in my DAG
How to reproduce
I don't know how to reproduce precisely this bug
Deployment
Official Apache Airflow Helm Chart
Are you willing to submit PR?
Code of Conduct