Deployment is getting failed

0

We are trying to build and deploy dotnet application on windows platform in elastic beanstalk environment but deployment is getting failed with an error "Deployment completed, but with errors: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. Failed to deploy application. Unsuccessful command execution on instance id(s) 'i-0031f3decb3972a8f'. Aborting the operation. [Instance: i-0031f3decb3972a8f ConfigSet: Infra-WriteRuntimeConfig, Infra-EmbeddedPreBuild, Hook-PreAppDeploy, Infra-EmbeddedPostBuild, Hook-EnactAppDeploy, Hook-PostAppDeploy] Command failed on instance. Return code: 1 Output: null. Deployment Failed: Unexpected Exception Error occurred during build: Command hooks failed"

1개 답변
0

Hello there,

Looking into the error message, it seems like the command execution on the instances have failed. This can happen due to multiple reasons. At the end, it is mentioned that command hooks failed. If you are using hooks with the Elastic Beanstalk environment they might be failing too.

The best way to identify the reason behind the error is to fetch the logs of the environment or RDP into the instance. You need to look at the log locations to find the reason behind it. You can use this document to fetch the logs - https://repost.aws/knowledge-center/elastic-beanstalk-windows-instance-logs

If you are still not able to find the cause behind the issue, I request you to reach out to the Technical Support team with the environment ID and region for further investigation of the issue.

AWS
지원 엔지니어
답변함 일 년 전
  • Thanks for your support.

  • Did you ever find out how to overcome this issue? We're having the same issue and are looking for a solution. Please let us know if you found one. Thank you!

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

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

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

관련 콘텐츠