Upgrading problem

61 views
Skip to first unread message

Cédric D

unread,
Aug 25, 2015, 2:41:55 AM8/25/15
to Canvas LMS Users
Hello,

I'm trying to upgrade canvas from a version using ruby 1.9.3 to ruby 2.1.6 on Ubuntu 14.04.2 LTS

Ruby was upgraded from ppa:brightbox/ruby-ng and ruby -v shows 2.1.6p336

I deleted vendor/bundle, did a gem cleanup, and ran

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

The answer I got was:

Fetching source index from https://rubygems.org/
Resolving dependencies........................................................................................................................................................................................
Bundler could not find compatible versions for gem "rufus-scheduler":
  In Gemfile:
    delayed_job (>= 0) ruby depends on
      rufus-scheduler (= 2.0.6) ruby

    rufus-scheduler (3.1.2)

I also tried bundle update. Same result. What am I doing wrong?

Simon Williams

unread,
Aug 25, 2015, 9:45:25 AM8/25/15
to canvas-l...@googlegroups.com
Hi, I don't think I've seen that exact problem before, but it looks similar to something I've seen, and the solution for me was to update bundler to the latest stable version (1.10.6).  I think `bundle update bundler` would work, or if not you may have to use gem install and specify the version.  Give that a try, hopefully it helps!

Simon

--

---
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.

Cody Cutrer

unread,
Aug 25, 2015, 12:12:31 PM8/25/15
to canvas-l...@googlegroups.com
Ah, I see the problem now. delayed_job is an old version, located in vendor/plugins. That has now been extracted to a completely separate gem named "canvas-jobs". What's going on is that when you updated, you just overwrote your old checkout, and didn't delete old files. Assuming you even have a git checkout, you can run `git clean -di` to clean up files that shouldn't be there anymore.

Cody Cutrer
Software Engineer
Instructure

--

Cédric D

unread,
Aug 25, 2015, 3:09:04 PM8/25/15
to Canvas LMS Users
OK, that was it.

In the meantime, I set up Canvas in a brand new folder and did a bundle install which worked fine, so it seems that the 'plugin' folder was messing my upgrade. I copied the config files and the tmp folder to the new folder and it works.

Thank you for your time and help.

Cedric
Reply all
Reply to author
Forward
0 new messages