aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

Codedeploy agent seems to stop randomly so deployment tends to fail at "BeforeBlockTraffic" #306

Closed monelgordillo closed 1 year ago

monelgordillo commented 3 years ago

This is a very strange issue. I've been doing blue/green CodeDeploy deployments for about 2 years now. Intermittently, deployments have been failing randomly at "BeforeBlockTraffic" on the original instance. I've noticed that restarting the codedeploy-agent helps BeforeBlockTraffic to succeed.

cat /opt/codedeploy-agent/.version agent_version: OFFICIAL_1.3.1-1880_rpm

The EC2 is on Centos 7. The temporary workaround is to restart the codedeploy agent regularly throughout the day. However, I would prefer to figure out the root cause.

mwjones-aws commented 1 year ago

Please reopen if you're still experiencing the issue with the latest CodeDeploy Agent