admin管理员组

文章数量:1123593

I am running a Fargate task on ECS which is time consuming but I only start seeing this error recently.

My CMD start up a Python script and has following steps:

  1. Enter Python from CMD ["python3", "-m", "src.main"]
  2. Do some normal Python things (can take several hours)
  3. Connect/Upload objects to S3 with boto3

I am getting error of

botocore.exceptions.WaiterError: Waiter TasksStopped failed: An error occurred (InvalidSignatureException): Signature expired: 20250108T075709Z is now earlier than 20250108T075926Z (20250108T080426Z - 5 min.)

I checked at the startup, the time on my task was correct by running date command before python, and compare the logged time with the time show on CloudWatch log.

I try to start chrony for time sync, but got permission issue because I cannot add SYS_TIME to a Fargate task based on AWS.

Is there any other cause for the Signature Expired error since the time on startup was correct? Or any possible fix?

Thanks,

本文标签: pythonECS Fargate Task Error with Signature Expired Earlier Than 5 minsStack Overflow