Cannot run aws.push for local repository head

I’m trying to deploy a Ruby project (redmine) on an Elastic Beanstalk server using the Elastic Beanstalk Command Line Interface, but when I try to launch the environment i get the following error:

$ eb start
Starting application “redmine”.
Would you like to deploy the latest Git commit to your environment? [y/n]: y
Cannot run aws.push for local repository HEAD:

  • Exclude directories from elastic beanstalk deploy
  • pushing to elastic beanstalk removes files created on servers
  • Can't git aws.push to elastic beanstalk with ruby repo
  • Elastic Beanstalk, Git and AWS Tools: How to clone repository to another workstation
  • Why might AWS Elastic Beanstalk continue serving an old app version?
  • git aws.push returns “error: RPC failed; result=22, HTTP code = 400”
  • And thats all that is printed out. As a reference, I was following the instructions here: http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applications-to-AWS-Elastic-Beanstalk-with-Git

  • Merge two git repos into one without renaming files
  • GIT_EDITOR not working with macvim
  • How to ignore some branches/tags being copied to local git when do git fetch --all
  • php run git got “ssh Permission denied”
  • How to handle pull requests with Git Extensions?
  • Cannot push, pull or merge git. “Working copy has uncommited changes”
  • 3 Solutions collect form web for “Cannot run aws.push for local repository head”

    I got the same error, so I hit “n” and let the environment start without deploying any code. After it was Green, I used aws.push to deploy my code and it worked fine.

    I got this error because I had no Ruby installed on my local machine.
    Did you satisfy all requirements?

    Incase anyone else hits this error in a different context, this can also happen if you have too many application versions under one Elastic Beanstalk environment. The limit is 500.

    When you run: git aws.push instead of eb push it will give you an error about having too many application versions, if that is the case.

    To resolve, just login to AWS and you can delete some of your older application versions from there.

    Git Baby is a git and github fan, let's start git clone.