[Airflow 3.1.7] Task execution fails with "Invalid auth token" using LocalExecutor and Task SDK #62057
Replies: 4 comments
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
this AI generated report is not helpful to help you. You likely indeed have some cache - other people do not experience similar issues, so you need to dig deeper. |
Beta Was this translation helpful? Give feedback.
-
|
Converted to a discussion - you can continue posting more finding here and maybe someone will be able to help you better than the AI report that does not really go to the real cause. |
Beta Was this translation helpful? Give feedback.
-
|
Try setting AIRFLOW__API_AUTH__JWT_SECRET. Note the section I had a similar issue. In my case, I solved by setting proper ownership of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Apache Airflow version
3.1.7
If "Other Airflow 3 version" selected, which one?
No response
What happened?
Apache Airflow version
3.1.7
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Task execution consistently fails with
Invalid auth token: Signature verification faileddespite Scheduler and API-Server having identical JWT secrets.What you think should happen instead?
Tasks should execute successfully with valid JWT authentication between Scheduler and API-Server.
How to reproduce
Environment:
Configuration:
Steps:
airflow config get-value secrets jwt_secretOperating System
Ubuntu 22.04 (Docker)
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
Docker Compose with separate containers for:
Anything else?
Error Logs:
Scheduler error:
API-Server error:
Observations:
InsecureKeyLengthWarningappears intermittently, suggesting worker subprocess uses cached/different secretAIRFLOW__API__AUTH_BACKENDS=airflow.api.auth.backend.basic_authis ignored by Task SDKSuspected Root Cause:
Worker subprocess inherits or caches a different JWT secret than API-Server uses for validation, possibly due to:
Impact:
Critical - Airflow 3.1.7 with LocalExecutor cannot execute any tasks.
Workarounds Attempted:
Are you willing to submit PR?
Code of Conduct
What you think should happen instead?
No response
How to reproduce
Apache Airflow version
3.1.7
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Task execution consistently fails with
Invalid auth token: Signature verification faileddespite Scheduler and API-Server having identical JWT secrets.What you think should happen instead?
Tasks should execute successfully with valid JWT authentication between Scheduler and API-Server.
How to reproduce
Environment:
Configuration:
Steps:
airflow config get-value secrets jwt_secretOperating System
Ubuntu 22.04 (Docker)
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
Docker Compose with separate containers for:
Anything else?
Error Logs:
Scheduler error:
API-Server error:
Observations:
InsecureKeyLengthWarningappears intermittently, suggesting worker subprocess uses cached/different secretAIRFLOW__API__AUTH_BACKENDS=airflow.api.auth.backend.basic_authis ignored by Task SDKSuspected Root Cause:
Worker subprocess inherits or caches a different JWT secret than API-Server uses for validation, possibly due to:
Impact:
Critical - Airflow 3.1.7 with LocalExecutor cannot execute any tasks.
Workarounds Attempted:
Are you willing to submit PR?
Code of Conduct
Operating System
ubuntu-20.04.3-live-server-amd64
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions