Brand new Rails app build can't find bundler


#1

I have a brand-new Rails app that I’m trying to run through its first CI build. I’ve done this a half-dozen times before without seeing this issue.

The app has no complicating factors, unlike most of the other apps I’ve been able to get working on CI.

But, I get this when trying my first build; I’ve never had to do anything to get gem install bundler working before, and can’t find anything online about this issue … so I’m at a loss:

$ bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 
ruby-2.3.3 - #gemset created /opt/circleci/.rvm/gems/ruby-2.3.3@dpl-cms
ruby-2.3.3 - #generating dpl-cms wrappers|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.|/-\|/-\|.-\|/-\|/-.
/opt/circleci/ruby/ruby-2.3.3/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
    from /opt/circleci/.rvm/rubies/ruby-2.3.3/bin/bundle:22:in `<main>'
/opt/circleci/ruby/ruby-2.3.3/lib/ruby/2.3.0/rubygems.rb:241:in `bin_path': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
    from /opt/circleci/.rvm/rubies/ruby-2.3.3/bin/bundle:22:in `<main>'

bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3  returned exit code 1

Action failed: bundle install

Any recommendations appreciated.


#2

I added gem install bundler as a Pre-build Dependency, and that fixed the problem.

I never had to do that before … but whatever.

Thanks for listening! :slight_smile:


#3

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