# Rails Bundle command missing - was working

**URL:** <https://discuss.circleci.com/t/rails-bundle-command-missing-was-working/27432>\
**Category:** Build Environment\
**Created:** [January 3, 2019, 7:30pm UTC](https://discuss.circleci.com/t/rails-bundle-command-missing-was-working/27432 "2019-01-03T19:30:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cthorner](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/cthorner/32/21038_2.png) [@cthorner](https://discuss.circleci.com/u/cthorner)\
**Post date:** [January 3, 2019, 7:30pm UTC](https://discuss.circleci.com/t/rails-bundle-command-missing-was-working/27432/1 "2019-01-03T19:30:11Z")

</div>

Anyone else having issues with bundle missing from the build image?

I know this was a problem with with bundler a while back, but I thought it was fixed. My builds were working with the same configuration settings just last month.

Here is the command I’m running:

#!/bin/bash --login sed -i.bak “/gem [’”]growl\_notify|autotest-fsevent|rb-appscript|rb-fsevent[’"].\*, \*$/ N; s/\n \*//g; /gem [’"]growl\_notify|autotest-fsevent|rb-appscript|rb-fsevent[’"]/ d" Gemfile bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3

/bin/bash: line 1: bundle: command not found /bin/bash: line 1: bundle: command not found Exited with code 127

---

<div class="post-metadata">

**Author:** ![ericlutley](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ericlutley/32/21047_2.png) [@ericlutley](https://discuss.circleci.com/u/ericlutley)\
**Post date:** [January 4, 2019, 4:56pm UTC](https://discuss.circleci.com/t/rails-bundle-command-missing-was-working/27432/2 "2019-01-04T16:56:12Z")

</div>

We started having the same problem this morning. Builds that passed yesterday are failing today, and with the same error that you are seeing:

> bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3  
> /bin/bash: bundle: command not found  
> Exited with code 127

Our build image is ubuntu-14.04-XXL-upstart-1189-5614f37. This is the same build image we’ve been using since we upgraded to CircleCI 2.0 using the 1.0 to 2.0 conversion API. The image understood the “bundle” command yesterday but cannot find it today.

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [January 4, 2019, 6:09pm UTC](https://discuss.circleci.com/t/rails-bundle-command-missing-was-working/27432/3 "2019-01-04T18:09:10Z")

</div>

This all appears to be related to an update to bundler.

[https://bundler.io/blog/2019/01/03/announcing-bundler-2.html](https://bundler.io/blog/2019/01/03/announcing-bundler-2.html)  
[https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html](https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html)

I would recommend highly moving off of the `ubuntu-14.04-XXL-upstart-1189-5614f37` image as it is very slow. If you are using Ruby, take a look at one of the many and more efficient Ruby specific images. [https://hub.docker.com/r/circleci/ruby/tags](https://hub.docker.com/r/circleci/ruby/tags)  
This will also cut your spinup time nearly in half.

The change to bundler may still cause issues for you, especially if you are using an older version of Ruby.

Please try to update RubyGems `gem update --system` and then upgrade Bundler `bundle update --bundler` prior to your bundle install. Lockfiles will still specify to use bundler v1 or v2.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [April 4, 2019, 6:09pm UTC](https://discuss.circleci.com/t/rails-bundle-command-missing-was-working/27432/4 "2019-04-04T18:09:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
