AWS ECS代理将无法启动

当我尝试运行ECS代理时,在ecs-init.log *中出现以下错误:

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

而在ecs-agent.log *文件中,我得到这个:

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

任何想法检查点文件在哪里?

我自己find了答案。 检查点文件位于以下目录中: /var/lib/ecs/data/ecs_agent_data.json 。 只需删除该json文件,然后再次运行start ecs启动ECS代理。 感谢这个论坛post,这间接地导致了我的答案: https : //forums.aws.amazon.com/thread.jspa?messageID=625643