繁体   English   中英

安装前:CodeDeploy 代理无法接收生命周期事件。 检查主机上的 CodeDeploy 代理日志并确保该代理是

[英]before install: CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is

我已经设置了管道,但在部署期间出现以下错误:

before install CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server.

代码代理正在运行,但我不知道是什么问题。 我检查了codedeploy的日志:

[ec2-user@ip-172-31-255-11 ~]$ sudo cat /var/log/aws/codedeploy-agent/codedeploy-agent.log
2022-09-27 00:00:02 INFO  [codedeploy-agent(3694)]: [Aws::CodeDeployCommand::Client 200 45.14352 0 retries] poll_host_command(host_identifier:"arn:aws:ec2:us-east-1:632547665100:instance/i-01d3b4303d7c9c948")  

2022-09-27 00:00:03 INFO  [codedeploy-agent(3694)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.4.0-2218_rpm.
2022-09-27 00:00:03 INFO  [codedeploy-agent(3694)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.4.0-2218_rpm.

今天也是倒霉遇到了这个问题。

请使用本指南并查看计算平台实例(可能是 EC2)的 CodeDeploy 代理日志。

就我而言,事实证明我没有将 AppSpec 文件添加到项目中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM