2016-08-18 73 views
5

當我嘗試運行ECS劑,我得在下面的錯誤ECS-init.log *:AWS ECS代理不會啓動

[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? 

任何想法在哪裏檢查點文件?

回答

19

我自己找到了答案。檢查點文件位於以下目錄中:/var/lib/ecs/data/ecs_agent_data.json。 只需刪除該json文件並再次啓動運行start ecs的ECS代理。 感謝這個論壇帖子,這間接地讓我回答:https://forums.aws.amazon.com/thread.jspa?messageID=625643