You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/09/06 09:20:00 UTC

[jira] [Comment Edited] (AIRFLOW-4991) 401 Unauthorized in read_pod() when EKS Kubernetes TaskInstance runs longer than 15 minutes

    [ https://issues.apache.org/jira/browse/AIRFLOW-4991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16924076#comment-16924076 ] 

Ash Berlin-Taylor edited comment on AIRFLOW-4991 at 9/6/19 9:19 AM:
--------------------------------------------------------------------

Possible duplicate/fixed by AIRFLOW-5117?


was (Author: ashb):
Possible duplicate/fixed by AIRFLOW-5117

> 401 Unauthorized in read_pod() when EKS Kubernetes TaskInstance runs longer than 15 minutes
> -------------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-4991
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4991
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: authentication
>    Affects Versions: 1.10.3
>            Reporter: Greg Ferrar
>            Priority: Minor
>
> Using KubernetesOperator with EKS, tasks that run more than 15 minutes result in a `401 Unauthenticated` error after the worker script successfully completes.
> {code:java}
> [2019-07-10 20:46:32,509] {__init__.py:1580} ERROR - (401)
> Reason: Unauthorized
> HTTP response headers: HTTPHeaderDict({'Audit-Id': '0587c262-eec3-4d20-a2ce-925e1bdd51eb', 'Content-Type': 'application/json', 'Date': 'Wed, 10 Jul 2019 20:46:32 GMT', 'Content-Length': '129'})
> {code}
> This is due to EKS having a 15-minute timeout on its authentication token.
> Solution is to re-authenticate with EKS at least every fifteen minutes, or maybe just at the end of the job.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)