question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploying to beanstalk error: command hooks failed

See original GitHub issue

I am seeing this error in the Elastic Beanstalk logs:

2019-11-17 21:27:22,941 [ERROR] Command hooks (HooksExecutor.exe appdeploy\enact) failed 2019-11-17 21:27:22,941 [ERROR] Error encountered during build of Hook-EnactAppDeploy: Command hooks failed Traceback (most recent call last): File “cfnbootstrap\construction.pyc”, line 544, in run_config File “cfnbootstrap\construction.pyc”, line 138, in run_commands File “cfnbootstrap\command_tool.pyc”, line 117, in apply ToolError: Command hooks failed 2019-11-17 21:27:22,941 [ERROR] -----------------------BUILD FAILED!------------------------ 2019-11-17 21:27:22,941 [ERROR] Unhandled exception during build: Command hooks failed Traceback (most recent call last): File “cfn-init”, line 171, in <module> File “cfnbootstrap\construction.pyc”, line 129, in build File “cfnbootstrap\construction.pyc”, line 530, in build File “cfnbootstrap\construction.pyc”, line 544, in run_config File “cfnbootstrap\construction.pyc”, line 138, in run_commands File “cfnbootstrap\command_tool.pyc”, line 117, in apply ToolError: Command hooks failed

I am honestly lost as to why it is not working for me. Here is the deploy job in my yml:

   - name: Deploy to EB
      uses: einaregilsson/beanstalk-deploy@v3
      with:
        aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
        application_name: BudgeIt
        environment_name: dev-budgeit
        version_label: 11202013717
        region: us-east-1
        deployment_package: deployment.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
charlenecoffmancommented, Nov 21, 2019

Yes I confirmed that was happening. It took me a bit to get the downloaded artifact without the folder structure but then once I zipped that up and sent it, the deployment was successful. Thanks!

0reactions
einaregilssoncommented, Nov 21, 2019

Great, happy that it worked 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Elastic Beanstalk: Command Hooks Failed
Every time we try to deploy it we get the following errors: Error occurred during build: Command hooks failed [Instance: i-XXXXXXXX ConfigSet: Infra- ......
Read more >
EB deployment fails: "/opt/elasticbeanstalk/hooks/appdeploy ...
OK so it seems that deploying a different version to Elastic Beanstalk doesn't remove / replace previously deployed ebextensions. I had to ...
Read more >
Resolve the error when Amazon EC2 instances fail to ... - AWS
When I try to create an AWS Elastic Beanstalk environment, I get the following error: "The EC2 instances failed to communicate with AWS ......
Read more >
Command failed on instance. Return code: 1 Output
I am new to AWS and while uploading a nodejs app to AWS beanstalk, I am getting the error [Instance: i-00dee873eeaed8bbb] Command failed...
Read more >
Find Answers to AWS Questions about AWS Elastic Beanstalk
I am getting below error and deployment is failed. Please help. *** 2022-12-30 15:24:57,931 [ERROR] Command 01_mount (/tmp/mount-efs.sh) failed 2022-12-30 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found