Bundler error: version 1.5.1 is required; you're currently running 1.5.3.

1,058 views
Skip to first unread message

James Smith

unread,
Feb 18, 2014, 4:55:40 PM2/18/14
to canvas-l...@googlegroups.com
bundle install --path vendor/bundle --without=sqlite
gives me the following error message: Bundler version 1.5.1 is required; you're currently running 1.5.3. Maybe try `bundle _1.5.2_ install --path vendor/bundle --without\=sqlite`.

Is there a way around this? I get this on Ubuntu 12.04 and Debian  Wheezy.

Cody Cutrer

unread,
Feb 18, 2014, 4:58:12 PM2/18/14
to canvas-l...@googlegroups.com
Yes, make sure you have either bundler 1.5.1 or 1.5.2 installed, and run it as suggested in the error message, or pull in https://github.com/instructure/canvas-lms/commit/a3b633f0

Cody Cutrer
Software Engineer
Instructure


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

funact...@gmail.com

unread,
Feb 18, 2014, 5:00:48 PM2/18/14
to canvas-l...@googlegroups.com, funact...@gmail.com
Forgot to add that following the error instructions after issuing bundle _1.5.2_ install --path vendor/bundle --without\=sqlite

I get

bundle _1.5.2_ install --path vendor/bundle --without\=sqlite
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (= 1.5.2) amongst [bundler-1.5.3] (Gem::LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
        from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
        from /usr/local/bin/bundle:22:in `<main>'

Cody Cutrer

unread,
Feb 18, 2014, 5:02:06 PM2/18/14
to canvas-l...@googlegroups.com, funact...@gmail.com
To install bundler 1.5.2, it's `gem install bundler -v 1.5.2`. You'll likely have to run that with sudo.

Cody Cutrer
Software Engineer
Instructure

funact...@gmail.com

unread,
Feb 19, 2014, 10:01:14 AM2/19/14
to canvas-l...@googlegroups.com, funact...@gmail.com
Do I need to remove anything? I'm still getting error:

gem install bundler -v 1.5.2
Fetching: bundler-1.5.2.gem (100%)
Successfully installed bundler-1.5.2
1 gem installed
Installing ri documentation for bundler-1.5.2...
Installing RDoc documentation for bundler-1.5.2...
me@ubuntu:/var/canvas# bundle install --path vendor/bundle --without=sqlite
Bundler version 1.5.1 is required; you're currently running 1.5.3. Maybe try `bundle _1.5.2_ install --path vendor/bundle --without\=sqlite`.

Charles Wood

unread,
Feb 19, 2014, 10:10:40 AM2/19/14
to canvas-l...@googlegroups.com, funact...@gmail.com
You need to use the old gem trick that was shown before. 

bundle _1.5.2_ install --path...

It's a trick from RubyGems that allows you to run commands against that particular version of the gem. (In this case, it's bundler.)

roberto...@gmail.com

unread,
Feb 22, 2014, 10:04:41 AM2/22/14
to canvas-l...@googlegroups.com, funact...@gmail.com
Thanks a lot guys!

stuartmar...@gmail.com

unread,
Jun 3, 2014, 12:20:31 PM6/3/14
to canvas-l...@googlegroups.com, funact...@gmail.com
I have a similar issue.  However, I get my error when accessing the web site.  Also get the same error in /var/log/apache2/errors.log 'Bundler version 1.5.1 is required; you're currently running 1.6.2.  Maybe try 'bundle _1.5.3_'

I can get everything to install fine using the 'bundle _1.5.3_' command.  However, it looks like passenger or something else is using the regular 'bundle' command and causing the application to fail ( see below ).  Is there any way to force an alias or to tell canvas to use 'bundle _1.5.3_' in lieu of 'bundle'?

Ruby (Rack) application could not be started

The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found below. To solve this problem, please follow any instructions in the error message.
Error message:
Bundler version 1.5.1 is required; you're currently running 1.6.2. Maybe try `bundle _1.5.3_ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ `.
Application root:
/var/canvas
Backtrace:
#FileLineLocation
0/var/canvas/Gemfile.d/_before.rb43in `exit'
1/var/canvas/Gemfile.d/_before.rb43in `block in eval_gemfile'
2/var/canvas/Gemfile18in `eval'
3/var/canvas/Gemfile18in `block in eval_gemfile'
4/var/canvas/Gemfile17in `each'
5/var/canvas/Gemfile17in `eval_gemfile'
6/var/lib/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/dsl.rb36in `instance_eval'
7/var/lib/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/dsl.rb36in `eval_gemfile'
8/var/lib/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/dsl.rb10in `evaluate'
9/var/lib/gems/1.9.1/gems/bundler-1.6.2/lib/bundler/definition.rb26in `build'
10/var/lib/gems/1.9.1/gems/bundler-1.6.2/lib/bundler.rb153in `definition'
11/var/lib/gems/1.9.1/gems/bundler-1.6.2/lib/bundler.rb116in `setup'
12/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb326in `prepare_app_process'
13/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb156in `block in initialize_server'
14/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb572in `report_app_init_status'
15/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb154in `initialize_server'
16/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb204in `start_synchronously'
17/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb180in `start'
18/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb129in `start'
19/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb253in `block (2 levels) in spawn_rack_application'
20/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb132in `lookup_or_add'
21/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb246in `block in spawn_rack_application'
22/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb82in `block in synchronize'
23prelude>10:in `synchronize'
24/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb79in `synchronize'
25/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb244in `spawn_rack_application'
26/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb137in `spawn_application'
27/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb275in `handle_spawn_application'
28/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb357in `server_main_loop'
29/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb206in `start_synchronously'
30/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server99in `'

stuartmar...@gmail.com

unread,
Jun 3, 2014, 12:25:32 PM6/3/14
to canvas-l...@googlegroups.com, funact...@gmail.com, stuartmar...@gmail.com
Aha!  found out that

gem list bundler will give me a list of locally installed gems... and gem uninstall bundler --version 1.6.2 will happily remove the offending entry.

canvas is now up and running...

nbhbiot...@gmail.com

unread,
Jul 22, 2014, 9:54:45 AM7/22/14
to canvas-l...@googlegroups.com, funact...@gmail.com
Hello All,

bundle install --path vendor/bundle --without=sqlite

When I run above command I get below error on Ubuntu  13.10


Updating https://github.com/kreynolds/cassandra-cql.git
Updating https://github.com/cavi21/letter_opener.git
Updating https://github.com/makandra/rails.git
fatal: index file smaller than expected
Retrying git fetch --force --quiet --tags "/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db" due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db"` in directory /var/canvas/vendor/bundle/ruby/1.9.1/bundler/gems/rails-e86daf8ff727 has failed.
If this error persists you could try removing the cache directory '/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db'
fatal: index file smaller than expected
Retrying git fetch --force --quiet --tags "/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db" due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags "/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db"` in directory /var/canvas/vendor/bundle/ruby/1.9.1/bundler/gems/rails-e86daf8ff727 has failed.
If this error persists you could try removing the cache directory '/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db'
fatal: index file smaller than expected
Git error: command `git fetch --force --quiet --tags
"/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db"`
in directory /var/canvas/vendor/bundle/ruby/1.9.1/bundler/gems/rails-e86daf8ff727
has failed.
If this error persists you could try removing the cache directory
'/var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db'


Can any one please help me for same


Thanks,
Nilesh

Christopher Bennell

unread,
Jul 22, 2014, 3:13:09 PM7/22/14
to canvas-l...@googlegroups.com, funact...@gmail.com, nbhbiot...@gmail.com
Did you try following the instruction in the error message? 

rm -rf /var/canvas/vendor/bundle/ruby/1.9.1/cache/bundler/git/rails-44437c3061b753890167f7171d9297d444d5f2db

Nilesh Hake

unread,
Jul 23, 2014, 12:45:11 AM7/23/14
to Christopher Bennell, canvas-l...@googlegroups.com, funact...@gmail.com
No I didn't try that will try and let you know thanks for help. 
--
Thanking You,
Nilesh Hake
Krishagni Solutions Pvt. Ltd.
Pune, India
Mob: 7507636232
Reply all
Reply to author
Forward
0 new messages