DownloadBundle deployment lifecycle events for troubleshooting UnknownError: execution expired

1

There is no error message in codedeploy-agent.aws_wire.log. Codedeploy can sometimes be deployed successfully, but most of them fail this time. At first, I thought it was an S3 access problem because I set the aws security group outbound traffic limit for the instance. But I opened the outbound traffic to S3. When I opened all outbound traffic of 443 and 80, this error still appeared. Is there any other way to fix this error?

codedeploy error: The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.

Event details Error code UnknownError Script name Message execution expired

DD-Boom
asked 6 months ago268 views
1 Answer
0
Accepted Answer

Hello,

Please verify below configuration for your instance.

  1. Check your instance network configurations. If instance is in public subnet verify that instance have public IP address and route-table has Internet Gateway. In case you are using private subnet check if NAT gateway is configured correctly.

  2. However, if you are using complete private network then check if VPC endpoints for CodeDeploy, S3 is configured correctly. Also, if you are using VPC endpoints additional CodeDeploy agent and IAM configurations are required. Check [1]

In case the required configuration is already in place and still seeing the error. Kindly connect to your instance and test connectivity to S3 endpoint.

 $ curl -iv s3.us-<region>.amazonaws.com
 $ curl -iv s3.<region>.amazonaws.com:443

Note: Replace <region > with region in which you have your Instance/ CodeDeploy setup.

  1. Check agent and wire logs.
- /var/log/aws/codedeploy-agent/codedeploy-agent.log 
- C:\ProgramData\Amazon\CodeDeploy\log\codedeploy-agent-log.txt
- codedeploy-agent.aws_wire.log

In addition to the above troubleshooting, we would need to perform an in-depth investigation by checking your resource configurations and logs. Thus, currently due to the limited information available, I would highly suggest you to reach out to AWS Premium Support with a case for a efficient troubleshooting.

Thank you!

Reference:

[1] https://docs.aws.amazon.com/codedeploy/latest/userguide/vpc-endpoints.html#vpc-codedeploy-agent-configuration

AWS
SUPPORT ENGINEER
answered 5 months ago
  • The logs are all normal and there are no error logs, but it still failed this time. Both codeploy and S3 can access it

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions