AWS ECS Agent Will Not Start

When I try to start the ECS agent, I get the following error in ecs-init.log *:

[INFO] Agent exited with code 5 [ERROR] agent exited with terminal exit code 

And in the ecs-agent.log * file, I get the following:

 [CRITICAL] Data mismatch; saved cluster 'cluster1' does not match configured cluster 'cluster2'. Perhaps you want to delete the configured checkpoint file? 

Any idea where this checkpoint file is?

+5
source share
1 answer

I myself found the answer. The checkpoint file is located in this directory: /var/lib/ecs/data/ecs_agent_data.json . Just delete this json file and run the ECS start ecs agent start ecs . Thanks to this forum post, which indirectly led me to the answer: https://forums.aws.amazon.com/thread.jspa?messageID=625643

+20
source

All Articles