-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logs disappearing when a task completes as failed and is up to retry #31764
Comments
same problem ~ |
Do you have log persistence enabled in the chart? |
The
Not sure what is the difference with airflow.logs.persistence=true but I cannot enable that as it seems to require a ReadWriteMany volume which I don't have in my environment. |
We faced this issue after upgrade from 2.5.1 to 2.6.2 and eventually solved it using this patch:
Not sure if it's corrent one, but at least it works. |
cc: @dstandish - I think you need to chime-in here, I am not sure what the right if should be here :) |
This issue has been automatically marked as stale because it has been open for 30 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author. |
This issue has been closed because it has not received response from the issue author. |
Was this issue fixed? Same issue appears on v2.7.3 |
Not sure but we still using the patch I provided here for 2.8.0. No harm at least. Could recheck with the next upgrade. |
Experiencing this with
When Task state changes to
When Task finally fails, log shows normally. |
Hi @potiuk, should this ticket be reopened? Do you want me to create a new ticket? |
I forgot to recheck the patch need for 2.8.0+ releases - we still have it and there is no issues with logs. So I guess it's still actual. |
Seems related to #39496. |
Apache Airflow version
2.6.1
What happened
(may be related to issue #31054 )
I'm experiencing an issue with logs. The set up is airflow running in k8s with official helm chart. No remote logging, logs are served by the workers.
All seems working (after bug mentioned in #31054 was fixed) except in the case of failed tasks. While running the task logs will show. As soon as the task finishes as FAILED and it's up to retry the logs disappear.
What you think should happen instead
Logs should still be visible after task completes.
How to reproduce
Run airflow with no remote logging in k8s with helm chart.
Run a task that will fail with retries
Operating System
Debian GNU/Linux 11 (bullseye) (docker image)
Versions of Apache Airflow Providers
apache-airflow-providers-amazon==8.0.0
apache-airflow-providers-celery==3.1.0
apache-airflow-providers-cncf-kubernetes==6.1.0
apache-airflow-providers-common-sql==1.4.0
apache-airflow-providers-docker==3.6.0
apache-airflow-providers-elasticsearch==4.4.0
apache-airflow-providers-ftp==3.3.1
apache-airflow-providers-google==10.0.0
apache-airflow-providers-grpc==3.1.0
apache-airflow-providers-hashicorp==3.3.1
apache-airflow-providers-http==4.3.0
apache-airflow-providers-imap==3.1.1
apache-airflow-providers-microsoft-azure==6.0.0
apache-airflow-providers-mysql==5.0.0
apache-airflow-providers-odbc==3.2.1
apache-airflow-providers-postgres==5.4.0
apache-airflow-providers-redis==3.1.0
apache-airflow-providers-sendgrid==3.1.0
apache-airflow-providers-sftp==4.2.4
apache-airflow-providers-slack==7.2.0
apache-airflow-providers-snowflake==4.0.5
apache-airflow-providers-sqlite==3.3.2
apache-airflow-providers-ssh==3.6.0
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: