I was attempting to perform my first Canvas LMS upgrade this morning based on the information posted here:
This server was originally setup in early February using the production start instructions. Everything was going OK until I got to the "Compiled Assets" section. running the command:
bundle exec rake canvas:compile_assets --trace
results in the following error:
LoadError: No such file to load -- logging_filter
/var/canvas/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:457:in `block in load_file'
/var/canvas/config/application.rb:21:in `<top (required)>'
/var/canvas/Rakefile:4:in `<top (required)>'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:96:in `block in load_rakefile'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:79:in `block in run'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
I can see that logging_filter.rb is located in my /var/canvas/lib directory and this file was not part of the update (modification date still says 15FEB), so it looks like I've somehow lost my environment information. I went back through the production start instructions and noticed that the compile_assets command was used a little differently:
RAILS_ENV=production bundle exec rake canvas:compile_assets
I tried running the command this way, but got the same error message. Prior to running the initial compile_assets command, during the "Upgrade and Install Bundled Gems" section, I was prompted to update rails:
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
You have requested:
rails = 4.2.8
The bundle currently has rails locked at 184.108.40.206.
Try running `bundle update rails`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
I followed the instructions and ran "bundle update" followed by the original command "bundle install". this gave me the following message:
Bundle complete! 201 Gemfile dependencies, 277 gems now installed.
Bundled gems are installed into ./vendor/bundle.
So, it looks like the update and install of the bundled gems worked. However, Ruby doesn't seem to know where the /var/canvas/lib directory is anymore. Of course, I'm new to Canvas and I don't know much about Ruby & Bundler, so I'm hoping that someone can help me figure out how to resolve this dependency issue.