无法启动 Amazon SSM 代理 - 无法启动消息总线

Unable to start the Amazon SSM Agent - failed to start message bus

注册Amazon SSM Agent时,在SSM Managed Instances控制台注册成功,但连接显示“Connection Lost”。

当我尝试手动启动服务时,出现以下错误:

Error occurred fetching the seelog config file path:  open /etc/amazon/ssm/seelog.xml: no such file or directory
Initializing new seelog logger
New Seelog Logger Creation Complete
2020-12-09 10:20:01 ERROR error occurred when starting amazon-ssm-agent: failed to start message bus, failed to start health channel: failed to listen on the channel: ipc:///var/lib/amazon/ssm/ipc/health, address in use

我该如何解决这个问题?我试过几次重新启动服务,但没有成功。

我可以通过停止代理并清除 /var/lib/amazon/ssm/ipc 目录来解决这个问题

service amazon-ssm-agent stop
rm -rf /var/lib/amazon/ssm/ipc
service amazon-ssm-agent start