canvas-lms
canvas-lms copied to clipboard
New install fails
Hi,
On a fresh install following the production guide I get failures when running: RAILS_ENV=production bundle exec rake canvas:compile_assets, in the "Generate Assets" section.
Error --------------------- rake aborted! Parallel::UndumpableException: NoMethodError: undefined method `requirements' for nil:NilClass Did you mean? require_dependency
Happens no matter what I do - followed the instructions line per line.
When I look in setup.rb on line 45 the fail is a results of the statement "@route.requirements[:controllers]"
I understand the method is missing; As for how to fix?
Help
Stacktrace:
/opt/canvas/doc/api/method_details/html/setup.rb:45:in get_routes' /opt/canvas/doc/api/method_details/html/setup.rb:21:in
init'
/opt/canvas/doc/api/method_details/html/setup.rb:45:in get_routes' /opt/canvas/doc/api/method_details/html/setup.rb:21:in
init'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:193:in initialize' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:131:in
new'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:136:in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:372:in
render_section'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:259:in block (2 levels) in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in
each'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in block in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:404:in
add_options'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:255:in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:277:in
block in yieldall'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:412:in with_section' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:277:in
yieldall'
/opt/canvas/doc/api/topic/html/method_details_list.erb:5:in block in _erb_cache_6' /opt/canvas/doc/api/topic/html/method_details_list.erb:4:in
each'
/opt/canvas/doc/api/topic/html/method_details_list.erb:4:in each_with_index' /opt/canvas/doc/api/topic/html/method_details_list.erb:4:in
_erb_cache_6'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:287:in erb' /opt/canvas/doc/api/topic/html/setup.rb:35:in
method_details_list'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:367:in render_section' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:259:in
block (2 levels) in run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in each' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in
block in run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:398:in add_options' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:255:in
run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:136:in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:372:in
render_section'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:259:in block (2 levels) in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in
each'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in block in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:398:in
add_options'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:255:in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:277:in
block in yieldall'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:412:in with_section' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:277:in
yieldall'
/opt/canvas/doc/api/layout/html/layout.erb:18:in _erb_cache_0' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:287:in
erb'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:369:in render_section' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:259:in
block (2 levels) in run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in each' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:256:in
block in run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:398:in add_options' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:255:in
run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:136:in run' /opt/canvas/doc/api/fulldoc/html/setup.rb:184:in
block in init'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/engine.rb:123:in block in with_serializer' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/logging.rb:82:in
capture'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/engine.rb:121:in with_serializer' /opt/canvas/doc/api/fulldoc/html/setup.rb:183:in
init'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:193:in initialize' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:131:in
new'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/template.rb:136:in run' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/templates/engine.rb:105:in
generate'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/cli/yardoc.rb:356:in run_generate' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/cli/yardoc.rb:267:in
run'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/yard-0.9.25/lib/yard/rake/yardoc_task.rb:74:in block in define' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/sentry-ruby-core-5.1.0/lib/sentry/rake.rb:26:in
execute'
/opt/canvas/lib/tasks/canvas.rake:84:in block (6 levels) in <top (required)>' /opt/canvas/lib/tasks/canvas.rake:12:in
log_time'
/opt/canvas/lib/tasks/canvas.rake:87:in block (5 levels) in <top (required)>' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:515:in
call_with_index'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:485:in process_incoming_jobs' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:465:in
block in worker'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:456:in fork' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:456:in
worker'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:447:in block in create_workers' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:446:in
each'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:446:in each_with_index' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:446:in
create_workers'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:386:in work_in_processes' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/parallel-1.21.0/lib/parallel.rb:289:in
map'
/opt/canvas/lib/tasks/canvas.rake:80:in block (4 levels) in <top (required)>' /opt/canvas/lib/tasks/canvas.rake:79:in
each'
/opt/canvas/lib/tasks/canvas.rake:79:in block (3 levels) in <top (required)>' /opt/canvas/lib/tasks/canvas.rake:78:in
block (2 levels) in <top (required)>'
/opt/canvas/vendor/bundle/ruby/2.7.0/gems/sentry-ruby-core-5.1.0/lib/sentry/rake.rb:24:in execute' /opt/canvas/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in
<top (required)>'
Tasks: TOP => canvas:compile_assets
(See full trace by running task with --trace)
hi i have this problem to is there already a pr to fix it?
rake aborted problem may happen in prol branch and master branch
my suggestion is try to use another branch to deploy your canvas, like stable/2021 series
Hello. Try to update yarn. But use command
sudo apt update --fix-missing
sudo apt upgrade