Problems upgrading

44 views
Skip to first unread message

Ismael Rumzan

unread,
Jun 11, 2016, 7:49:48 AM6/11/16
to Canvas LMS Users
Hi


When I first run this $GEM_HOME/bin/bundle install, it tells me bundle 1.8.0 is required
After install 1.8.0 and I run bundle install, I get the following trace error

/var/canvas/Gemfile.d/other_stuff.rb:2:in `eval_gemfile': uninitialized constant Bundler::Dsl::CANVAS_RAILS3 (NameError)

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/dsl.rb:32:in `instance_eval'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/dsl.rb:32:in `eval_gemfile'

       /var/canvas/Gemfile:18:in `block in eval_gemfile'

       /var/canvas/Gemfile:17:in `each'

       /var/canvas/Gemfile:17:in `eval_gemfile'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/dsl.rb:32:in `instance_eval'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/dsl.rb:32:in `eval_gemfile'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/dsl.rb:10:in `evaluate'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/definition.rb:25:in `build'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler.rb:155:in `definition'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/cli/install.rb:78:in `run'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/cli.rb:157:in `install'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/cli.rb:10:in `start'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/bin/bundle:20:in `block in <top (required)>'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'

       /var/lib/gems/1.9.1/gems/bundler-1.9.1/bin/bundle:18:in `<top (required)>'

       /usr/local/bin/bundle:23:in `load'

       /usr/local/bin/bundle:23:in `<main>'


Any suggestions?

Ismael Rumzan

unread,
Jun 11, 2016, 11:42:56 PM6/11/16
to Canvas LMS Users
I've tried to follow the step mentioned in a recent post regarding upgrading to ruby 2.1
I am now facing this error when running bundle install

[!] There was an error parsing `Gemfile`: 

[!] There was an error parsing `other_stuff.rb`: uninitialized constant Bundler::Dsl::CANVAS_RAILS3. Bundler cannot continue.


 #  from /var/canvas/Gemfile.d/other_stuff.rb:2

 #  -------------------------------------------

 #  

 >  if CANVAS_RAILS3

 #    gem 'rails', '3.2.21', github: 'rails/rails', branch: '3-2-stable', ref: 'b344986bc3d94ca7821fc5e0eef1874882ac6cbb'

 #  -------------------------------------------

. Bundler cannot continue.


 #  from /var/canvas/Gemfile.d/other_stuff.rb:2

 #  -------------------------------------------

 #  # What have they done to the Gemfile???

 >  #

 #  # Relax. Breathe deep. All the gems are still there; they're just loaded in various files in Gemfile.d/

 #  -------------------------------------------

Cody Cutrer

unread,
Jun 13, 2016, 12:56:08 PM6/13/16
to canvas-l...@googlegroups.com
Ismael,

That sounds like you didn't remove any files that had been deleted in Canvas. Specifically, Gemfile was updated to not require config/canvas_rails4, but in the meantime Gemfile.d/other_stuff.rb has been renamed to Gemfile.d/app.rb, and has many changes (including no longer referencing CANVAS_RAILS3). You likely have the new app.rb, but have not removed the old other_stuff.rb. There are myriad other files that also will need to be deleted. In general you cannot simply unpack a newer version of Canvas over an old version. You either need to manage it with Git, or unpack the new version of Canvas into a separate directory, and copy/link important files over. You can find more details at https://github.com/instructure/canvas-lms/wiki/Upgrading.

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/d/optout.

Reply all
Reply to author
Forward
0 new messages