Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have set up a pipeline, but i get the following error during deployment:

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.

Code Agent is running, but i do not know, what the problem is. I checked the logs of 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.
like image 209
David Avatar asked Dec 06 '25 01:12

David


1 Answers

AWS error messages may not adequately interpret the errors encountered. One likely case is iam permission issues. Make sure CodeDeploy has CodeDeployRole and your EC2 instance(s) have AmazonEC2RoleforAWSCodeDeploy.

like image 99
zEELz Avatar answered Dec 08 '25 16:12

zEELz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!