https://prefect.io logo
Title
k

Kathryn Klarich

05/06/2022, 9:46 PM
Our prefect agent has been running without issue on ECS for the past ~11 months (since June 28 2021), but about 1 hour ago we noticed we were unable to submit new flows. Upon further investigation it appears our agent crashed and has been trying to restart but keeps crashing. I’m not sure if this is what initially caused it to crash but the error message we are seeing in cloudwatch logs now is :
ValueError: You have not set an API key for authentication.
Is anyone familiar with this error? Was something updated in prefect that could have caused this crash?
z

Zanie

05/06/2022, 9:47 PM
It sounds like you were using API tokens for auth instead of keys and your agent has updated from a pre-1.0 container to a 1.0+ container which drops support for API tokens.
k

Kevin Kho

05/06/2022, 9:47 PM
Tokens were deprecated for API keys in 0.15
I’d recommend pinning your container version to resolve the immediate issue, then switch over to keys and upgrade at your leisure. I could be wrong about the cause though! Let me know if this isn’t the case.
:upvote: 2
k

Kathryn Klarich

05/06/2022, 9:52 PM
ah ok we will try that, thanks!
that worked!
we were using the :latest image so I think it must have pulled a new image which upgraded to 1.0
thanks for the quick response!