The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
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.
@kurt_faulknerlo , since you've referred to a "Canvas upgrade" (something that cloud folks don't have to worry about) I am going to guess that you are self-hosting Canvas, so I've shared your question with the https://community.canvaslms.com/groups/canvas-developers?sr=search&searchId=c20920ca-7913-4e5f-8483-... group.
We are giving the Canvas Admins area a little bit of love (especially questions that are really, really old) and just want to check in with you. This will also bring this question new attention.
Were you able to find an answer to your question? I am going to go ahead and mark this question as answered because there hasn't been any more activity in a while so I assume that you have the information that you need. If you still have a question about this or if you have information that you would like to share with the community, by all means, please do come back and leave a comment. Also, if this question has been answered by one of the previous replies, please feel free to mark that answer as correct.
Robbie
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.