Hi All,
GoCD server elastic agent was working fine till evening, all of a sudden we are getting a error like "Skipping current create agent request" instance is creating and adding into cluster but container is not creating in it and pipelines are not running.
GOCD version:
23.4.0 (17731-4deb96d823b921419680560be080588e900d406e).
ECS plugin version:
GoCD Elastic Agent Plugin for Amazon ECS
Error:
[go] Received a request to create an agent for the job: [SpecOps_ElasticAgent_img_test/63/Elastic-stage/3/Elastic-stage-1]
[go] An ECS task to perform current job is already scheduled on instance i-0732a4688d***4bb. Skipping current create agent request.
[go] Received a request to create an agent for the job: [SpecOps_ElasticAgent_img_test/63/Elastic-stage/3/Elastic-stage-1]
[go] An ECS task to perform current job is already scheduled on instance i-0732a4688d***a4bb. Skipping current create agent request.
Error:
Error: in go-server logs:
2024-09-09 16:09:18,139 ERROR [108@MessageListener for WorkFinder] JMSMessageListenerAdapter:87 - Exception thrown in message handling by listener com.thoughtworks.go.server.messaging.scheduling.WorkFinder@d6f4534
java.lang.RuntimeException: The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: 'Failed to handle request cd.go.elastic-agent.should-assign-work due to:The security token included in the request is invalid. (Service: AmazonECS; Status Code: 400; Error Code: UnrecognizedClientException; Request ID: 3cd29f72-5498-42a6-816d-0d63af6e4796; Proxy: null)'