Tutorial failing first step: "Could not find 'bundler' (1.16.3) required by your Gemfile.lock"

Dear travis community,

I am new to travis and decided to start the Continuous integration with Travis CI tutorial in order to get a feel of how it works.
My issue is straight forward.

I am the build after submitting the first merge request fails and I would like to get some feedback around it:

Worker information

0.20s0.01s0.00s0.02s
system_info

Build system information

0.02s0.01s0.67s0.27s0.07s0.00s0.05s0.00s0.01s0.01s0.01s0.02s0.01s0.00s0.00s0.03s0.00s0.02s0.44s0.00s0.00s0.00s0.01s0.01s0.11s0.01s1.01s0.00s0.00s6.04s0.00s3.10s0.00s2.61s
docker_mtu
resolvconf
apt

13.31s$ travis_apt_get_update

0.00s
git.checkout

0.56s$ git clone --depth=50 --branch=initial-travis-config https://github.com/Masber/continuous-integration-travis.git Masber/continuous-integration-travis

NaNs

Setting environment variables from .travis.yml

$ export NOKOGIRI_USE_SYSTEM_LIBRARIES=true

rvm

23.79s$ rvm use 2.4.1 --install --binary --fuzzy

$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1

Setting up build cache

cache.bundler

0.00s1.19sadding /home/travis/build/Masber/continuous-integration-travis/vendor/bundle to cache
ruby.versions

$ ruby --version

3.17s$ bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}

/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (1.16.3) required by your /home/travis/build/Masber/continuous-integration-travis/Gemfile.lock. (Gem::GemNotFoundException)

To update to the latest version installed on your system, run `bundle update --bundler`.

To install the missing version, run `gem install bundler:1.16.3`

	from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:296:in `activate_bin_path'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/bundle:23:in `<main>'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

The command "eval bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle} " failed. Retrying, 2 of 3.

/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (1.16.3) required by your /home/travis/build/Masber/continuous-integration-travis/Gemfile.lock. (Gem::GemNotFoundException)

To update to the latest version installed on your system, run `bundle update --bundler`.

To install the missing version, run `gem install bundler:1.16.3`

	from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:296:in `activate_bin_path'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/bundle:23:in `<main>'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

The command "eval bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle} " failed. Retrying, 3 of 3.

/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (1.16.3) required by your /home/travis/build/Masber/continuous-integration-travis/Gemfile.lock. (Gem::GemNotFoundException)

To update to the latest version installed on your system, run `bundle update --bundler`.

To install the missing version, run `gem install bundler:1.16.3`

	from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:296:in `activate_bin_path'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/bundle:23:in `<main>'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'

	from /home/travis/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

The command "eval bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle} " failed 3 times.

The command "bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}" failed and exited with 1 during .

Your build has been stopped.

Instructions look simple but yet the build fails. Any idea why?

thank you

It seems/probable like in your Gemfile.lock you have bundler:1.16.3 specified in your Gemfile.lock file.

Try running:

gem install bundler:1.16.3

Montana
Travis CI Staff

I think GitHub’s tutorial needs to be updated (or our breaking changes identified and fixed—I’m not yet certain).

I’ve contacted GitHub so that it can be fixed. I’ll update this issue once progress is made.

Thanks.

1 Like

See also