Dav*_*vid 12 amazon-web-services aws-code-deploy
我已经设置了管道,但在部署过程中出现以下错误:
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.
Run Code Online (Sandbox Code Playgroud)
代码代理正在运行,但我不知道问题是什么。我检查了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.
Run Code Online (Sandbox Code Playgroud)
AWS 错误消息可能无法充分解释遇到的错误。一种可能的情况是 iam 权限问题。确保 CodeDeploy 具有 CodeDeployRole 并且您的 EC2 实例具有 AmazonEC2RoleforAWSCodeDeploy。
| 归档时间: |
|
| 查看次数: |
27413 次 |
| 最近记录: |