doctorray117 / minecraft-ondemand

Templates to deploy a serverless Minecraft Server on demand in AWS
Apache License 2.0
1.68k stars 115 forks source link

ResourceInitializationError - Migration for Fargate 1.3.0 to 1.4.0 #74

Open jbanahan opened 1 week ago

jbanahan commented 1 week ago

I tried to redeploy this recently and got the following error below when bringing up the instance. Screenshot from 2024-06-23 12-09-03

ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 3 time(s): RequestError: send request failed caused by: Post "https://api.ecr.us-east-2.amazonaws.com/": dial tcp [ANIPADDRESSIDONTWANTTOSHARE]: i/o timeout. Please check your task network configuration.

Steps to reproduce:

  1. build and deploy following README
  2. attempt to connect with Minecraft client
  3. Monitor task for bringing container up as failure will not give other indication

From this post it seems to be a change in Fargate and there is a solution described below. https://stackoverflow.com/questions/61265108/aws-ecs-fargate-resourceinitializationerror-unable-to-pull-secrets-or-registry

I'll Try to get a PR open if I make any progress, but figured I'd open an issue to get the problem out there first.

jbanahan commented 1 week ago

Running AWSSupport-TroubleshootECSTaskFailedToStart hangs on the networking portion. This maybe possible something weird about my setup, but also maybe confirms the above. :shrug:

image