Error on Canvas Upgrade: missing logging_filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I was attempting to perform my first Canvas LMS upgrade this morning based on the information posted here:
https://github.com/instructure/canvas-lms/wiki/Upgrading
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:
rake aborted!
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 `load'
/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/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:647:in `new_constants_in'
/var/canvas/gems/autoextend/lib/autoextend.rb:145:in `new_constants_in'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:456:in `load_file'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:354:in `require_or_load'
/var/canvas/gems/autoextend/lib/autoextend.rb:157:in `require_or_load'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:317:in `depend_on'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:233:in `require_dependency'
/var/canvas/config/application.rb:26:in `<class:Application>'
/var/canvas/config/application.rb:22:in `<module:CanvasRails>'
/var/canvas/config/application.rb:21:in `<top (required)>'
/var/canvas/Rakefile:4:in `require'
/var/canvas/Rakefile:4:in `<top (required)>'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:687:in `raw_load_rakefile'
/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:178:in `standard_exception_handling'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:95: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/lib/rake/application.rb:178:in `standard_exception_handling'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
/var/canvas/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/var/canvas/vendor/bundle/ruby/2.3.0/bin/rake:22:in `load'
/var/canvas/vendor/bundle/ruby/2.3.0/bin/rake:22:in `<main>'
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:
bundle install
Fetching https://github.com/rails/rails-observers.git
Fetching https://github.com/ccutrer/gepub.git
Fetching https://github.com/kreynolds/cassandra-cql.git
Fetching https://github.com/jenseng/test-queue.git
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 4.2.7.1.
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.
Thank You.