当我尝试运行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?
知道检查点文件在哪里?
最佳答案
我自己找到了答案.检查点文件位于以下目录中:/var/lib/ecs/data/ecs_agent_data.json.
只需删除该json文件并再次启动运行start ecs的ECS代理.
感谢这个论坛帖子,间接引导我得到答案:https://forums.aws.amazon.com/thread.jspa?messageID=625643
只需删除该json文件并再次启动运行start ecs的ECS代理.
感谢这个论坛帖子,间接引导我得到答案:https://forums.aws.amazon.com/thread.jspa?messageID=625643