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
支援工程師
已回答 1 年前
  • 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!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南