gocd / gocd-ecs-elastic-agent

GoCD Elastic Agent Plugin for Amazon EC2 Container Service, which allows you to run elastic (dynamic) GoCD agents on Amazon ECS.
https://www.gocd.org
Apache License 2.0
8 stars 7 forks source link

EC2 instance is not registering in ECS cluster | docker and ECS service is failing #363

Closed pradeepdevaraj999 closed 2 weeks ago

pradeepdevaraj999 commented 2 weeks ago

EC2 instance is not registering in ECS cluster | docker and ECS service is failing

GoCD Elastic Agent Plugin for Amazon ECS: Version 7.4.1-699

GOCD version: GoCD Version: 23.4.0

We have configured the cluster profile and elastic profile. we have passed the community AMI, its creating an instance but its not registering in ECS cluster. its failing because docker and ECS is not running, if we create an ec2 with manually the same AMI its works fine and registers with the ECS cluster. can anyone please help us to resolve the issues? it is effecting on our production.

logs: from the ECS instance:

ip-** amazon-ecs-init: level=error time=2024-09-03T11:39:33Z msg="Error performing action 'delete' for iptables route: exit status 1; raw output: iptables: Bad rule (does a matching rule exist in that chain?).\n" Sep 3 11:39:33 ip-***: amazon-ecs-init: level=error time=2024-09-03T11:39:33Z msg="Error performing action 'delete' for iptables route: exit status 1; raw output: iptables: Bad rule (does a matching rule exist in that chain?).\n" Sep 3 11:39:33 ip-**** amazon-ecs-init: level=error time=2024-09-03T11:39:33Z msg="Error performing action 'delete' for iptables route: exit status 1; raw output: iptables: No chain/target/match by that name.\n"

chadlwilson commented 2 weeks ago

Which specific AMI are you using?

Doesn't seem like the same error, bur note that AL2023 with Docker 25 won't work - see https://github.com/gocd/gocd-ecs-elastic-agent/issues/345

chadlwilson commented 2 weeks ago

See https://groups.google.com/g/go-cd/c/rCODTOTCZzU/m/XwPTZ4RVAgAJ - duplicate of #345