debugMinor
Startup of ECS Fargate task fails with ResourceInitializationError mount.nfs4 Connection timed out
Viewed 0 times
failstimedecswithnfs4connectionresourceinitializationerrorstartupouttask
Problem
When starting up an Amazon ECS task with launch type FARGATE it fails with the following reason:
The fargate task is a docker image that needs to mount EFS as persistent storage.
Why is the connection timing out?
ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: command failed with 32: failed to execute command to invoke EFS utils: mount.nfs4:
Connection timed outThe fargate task is a docker image that needs to mount EFS as persistent storage.
Why is the connection timing out?
Solution
Underlying reason:
The ECS service's network access security group did not have permission to access EFS.
Solution:
Add an inbound rule for type
The ECS service's network access security group did not have permission to access EFS.
Solution:
Add an inbound rule for type
NFS in the security group as described in this tutorial: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/tutorial-efs-volumes.html#efs-security-groupContext
StackExchange DevOps Q#11462, answer score: 5
Revisions (0)
No revisions yet.