Replies: 5 comments 9 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
Could be connected to IPV6 issue #24846 - which has been fixed in Airflow 2.4.0 (relased today) see #26201 - please upgrade to 2.4.0 and see if the problem persists (and please comment here). If it does not fix it (or even before) - taje a look at the logs of webserver and they should contain error logs/explanation where it was from. Converting to discussion as this is likely solved or need more detailed looking in the logs. |
Beta Was this translation helpful? Give feedback.
-
We are seeing the same exact error in our worker logs coming from |
Beta Was this translation helpful? Give feedback.
-
I think this was resolved on #26492? |
Beta Was this translation helpful? Give feedback.
-
Yes. There was a bug in 2.4.0 that has a workaround you can apply manually from #26493 and it will be fixed permanently in 2.4.1 |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.4.0
What happened
When running tasks on a remote celery worker, webserver fails to fetch logs from the machine, giving a '403 - Forbidden' error on version 2.4.0. This behavior does not happen on 2.3.3, where the remote logs are retrieved and displayed successfully.
The
webserver / secret_key
configuration is the same in all nodes (the config files are synced), and their time is synchronized using a central NTP server, making the solution in the warning message not applicable.My limited analysis pointed to the
serve_logs.py
file, and the flask request object that's passed to it, but couldn't find the root cause.What you think should happen instead
It should fetch and show remote celery worker logs on the webserver UI correctly, as it did in previous versions.
How to reproduce
Use airflow version 2.4.0
Use CeleryExecutor with RabbitMQ
Use a separate Celery worker machine
Run a dag/task on the remote worker
Try to display task log on the web UI
Operating System
Red Hat Enterprise Linux 8.6 (Ootpa)
Versions of Apache Airflow Providers
Deployment
Virtualenv installation
Deployment details
Using CeleryExecutor / rabbitmq with 2 servers
Anything else
All remote task executions has the same problem.
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions