title: AWS Elastic Beanstalk - ERROR: No Application Version named 'v0_9_2-76-gf5a4' found
body: <p>I'm trying to deploy my code to AWS Beanstalk and get this error.  I researched that it could be that the number of versions is more than 500, so I deleted a lot of versions.  But, I still get this error.</p>
  <pre><code>eb deploy
  ERROR: No Application Version named 'v0_9_2-76-gf5a4' found.
  </code></pre>
  <p>I also tried</p>
  <pre><code>git aws.push
  Error: Failed to create the AWS Elastic Beanstalk application version
  </code></pre>
  <p>Edit:
  Trying with <code>eb deploy --debug</code> I now get:</p>
  <blockquote>
  <p>Instance: i-2ad238d5 Module: AWSEBAutoScalingGroup ConfigSet: null Command failed on instance. Return code: 1 Output: Error occurred during build: Command hooks failed . Script /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed with returncode 18</p>
  <p>ebcli.objects.exceptions.ServiceError: Update environment operation is
  complete, but with errors. For more information, see troubleshooting
  documentation.</p>
  </blockquote>