You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "stursdsafdaf (via GitHub)" <gi...@apache.org> on 2024/10/21 08:55:18 UTC
[I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
stursdsafdaf opened a new issue, #43209:
URL: https://github.com/apache/airflow/issues/43209
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.9.3
### What happened?
When the task is in the up_for_retry or rescheduler state, logs cannot be obtained.
As shown in the figure, only the hostname is displayed
<img width="1811" alt="iShot_2024-10-21_16 33 44" src="https://github.com/user-attachments/assets/035b0081-09b9-4b89-b20f-ef8b00cb441a">
### What you think should happen instead?
Tasks in the up_for_retry and rescheduler states have been executed but failed and are in the retry phase. Logs should be displayed normally.
### How to reproduce
I deployed 3 nodes and did not enable remote logging.
This happens if the task is running on a non-web node and is in the up_for_retry or rescheduler state.
### Operating System
ubuntu 20.04
### Versions of Apache Airflow Providers
apache-airflow-providers-celery==3.7.3
apache-airflow-providers-common-io==1.3.2
apache-airflow-providers-common-sql==1.14.2
apache-airflow-providers-fab==1.2.2
apache-airflow-providers-ftp==3.10.0
apache-airflow-providers-http==4.12.0
apache-airflow-providers-imap==3.6.1
apache-airflow-providers-mysql==5.6.3
apache-airflow-providers-redis==3.7.1
apache-airflow-providers-smtp==1.7.1
apache-airflow-providers-sqlite==3.8.1
### Deployment
Virtualenv installation
### Deployment details
I use Python virtual environment deployment, the configuration is as attached
[airflow_new.txt](https://github.com/user-attachments/files/17457993/airflow_new.txt)
### Anything else?
code file :lib/python3.8/site-packages/airflow/utils/log/file_task_handler.py
This code will result in only getting the log of the node where the web is located when remote logging is not used, so only the host name will be output
<img width="1471" alt="iShot_2024-10-21_16 51 24" src="https://github.com/user-attachments/assets/8f27a221-9394-4cab-bc10-753620c5feea">
So, it should be changed to this
<img width="1475" alt="iShot_2024-10-21_16 53 15" src="https://github.com/user-attachments/assets/feb61027-4a20-41f8-b87b-7eb0b264aa4b">
### Are you willing to submit PR?
- [X] 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "AllardQuek (via GitHub)" <gi...@apache.org>.
AllardQuek commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2439345915
Hi @stursdsafdaf, I am also facing a similar issue on v2.7.3. May I check if your proposed solution worked for you?
I noticed there is a previously merged PR (https://github.com/apache/airflow/pull/39496) that seems to perform a similar fix. although the changes do not seem to be included in the latest version. As I'm still new to Airflow, could anyone confirm if that fix would solve this issue too?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2435869721
Looks playsible. WDYT @dstandish ?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "dstandish (via GitHub)" <gi...@apache.org>.
dstandish commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2439605541
Yeah the reports here are from 2.9.3 and 2.7.3 so I assume that this is resolved by https://github.com/apache/airflow/pull/41272 in 2.10.0 so I will close this.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2439719105
> We are working with v2.7.3 in production. To implement the fix in an earlier version, which changes do we require from https://github.com/apache/airflow/pull/41272/files? The changes do not seem to mention the up for retry state. Thank you!
You need to upgrade. We do not have a process to individually guide and explain how to take parts of the code and apply it to your version if you do not want to upgrade. If you want there are a number of 3rd-party commercial companies to assist you with it (and get paid for it), but if you want to rely on volunteer's effort here, the only way to apply fixes is to upgrade.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "AllardQuek (via GitHub)" <gi...@apache.org>.
AllardQuek commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2439625688
> I think I added a related fix here #41272 which has milestone of 2.10.0.
>
> Did you try 2.10?
We are working with v2.7.3 in production. To implement the fix in an earlier version, which changes do we require from https://github.com/apache/airflow/pull/41272/files? The changes do not seem to mention the up for retry state. Thank you!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "dstandish (via GitHub)" <gi...@apache.org>.
dstandish closed issue #43209: When the task is in the up_for_retry or rescheduler state, logs cannot be obtained
URL: https://github.com/apache/airflow/issues/43209
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "dstandish (via GitHub)" <gi...@apache.org>.
dstandish commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2439605116
I think I added a related fix here https://github.com/apache/airflow/pull/41272 which has milestone of 2.10.0.
Did you try 2.10?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2426036111
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When the task is in the up_for_retry or rescheduler state, logs cannot be obtained [airflow]
Posted by "AllardQuek (via GitHub)" <gi...@apache.org>.
AllardQuek commented on issue #43209:
URL: https://github.com/apache/airflow/issues/43209#issuecomment-2439808175
> You need to upgrade. We do not have a process to individually guide and explain how to take parts of the code and apply it to your version if you do not want to upgrade. If you want there are a number of 3rd-party commercial companies to assist you with it (and get paid for it), but if you want to rely on volunteer's effort here, the only way to apply fixes is to upgrade.
Got it, thanks!
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org