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
질문됨 6달 전281회 조회
1개 답변
0
수락된 답변

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
지원 엔지니어
답변함 6달 전
  • The logs are all normal and there are no error logs, but it still failed this time. Both codeploy and S3 can access it

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠