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

**URL:** <https://travis-ci.community/t/tutorial-failing-first-step-could-not-find-bundler-1-16-3-required-by-your-gemfile-lock/10020>\
**Category:** Ruby\
**Tags:** travis-build\
**Created:** [September 26, 2020, 3:55pm UTC](https://travis-ci.community/t/tutorial-failing-first-step-could-not-find-bundler-1-16-3-required-by-your-gemfile-lock/10020 "2020-09-26T15:55:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masber](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/masber/32/5239_2.png) [@Masber](https://travis-ci.community/u/Masber)\
**Post date:** [September 26, 2020, 3:55pm UTC](https://travis-ci.community/t/tutorial-failing-first-step-could-not-find-bundler-1-16-3-required-by-your-gemfile-lock/10020/1 "2020-09-26T15:55:19Z")

</div>

Dear travis community,

I am new to travis and decided to start the [Continuous integration with Travis CI](https://lab.github.com/githubtraining/continuous-integration-with-travis-ci?overlay=register-box-overlay) 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

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [September 29, 2020, 3:35am UTC](https://travis-ci.community/t/tutorial-failing-first-step-could-not-find-bundler-1-16-3-required-by-your-gemfile-lock/10020/2 "2020-09-29T03:35:31Z")

</div>

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

Try running:

```ruby
gem install bundler:1.16.3

```

Montana  
Travis CI Staff

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [September 29, 2020, 6:05pm UTC](https://travis-ci.community/t/tutorial-failing-first-step-could-not-find-bundler-1-16-3-required-by-your-gemfile-lock/10020/3 "2020-09-29T18:05:56Z")

</div>

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

> **[Travis CI - Test and Deploy with Confidence](https://travis-ci.com/github/Masber/continuous-integration-travis/builds/186822485#L266)**

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

Thanks.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [October 23, 2020, 8:47pm UTC](https://travis-ci.community/t/tutorial-failing-first-step-could-not-find-bundler-1-16-3-required-by-your-gemfile-lock/10020/4 "2020-10-23T20:47:16Z")

</div>

See also

> <https://github.com/githubtraining/ci-travis/issues/43>
>
> Bug Report
> Yemeni/continuous-integration-travis#3 as you can see here, it failed multiple times, so I updated ruby to 2.4.4, again failed due to...
