Facing an Error while running following command sudo RAILS_ENV=production bundle exec rake canvas:compile_assets

57 views
Skip to first unread message

oraganti adithya

unread,
Mar 13, 2024, 10:31:50 AMMar 13
to Canvas LMS Users
Hi Team,

I am facing an error while downloading the submitted assignment  from the speed-grader in canvas 2019 version for that I run the  
sudo RAILS_ENV=production bundle exec rake canvas:compile_assets  
this command but while I run this command facing bellow error at the end


    + 7693 hidden modules
$ es-check es8 ./public/dist/**/*.js
ES-Check: there were no ES version matching errors!  🎉
Done in 174.63s.
--> Finished: 'js:webpack_development' in 174.99156967200008
Killed
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
rake aborted!
Parallel::UndumpableException: RuntimeError: Error running js:webpack_production:
ABORTING
/var/canvas/lib/tasks/js.rake:50:in `block (2 levels) in <top (required)>'
/var/canvas/lib/tasks/canvas.rake:76:in `block (5 levels) in <top (required)>'
/var/canvas/lib/tasks/canvas.rake:7:in `log_time'
/var/canvas/lib/tasks/canvas.rake:76:in `block (4 levels) in <top (required)>'
/var/canvas/vendor/bundle/ruby/2.5.0/gems/parallel-1.18.0/lib/parallel.rb:506:in `call_with_index'
/var/canvas/vendor/bundle/ruby/2.5.0/gems/parallel-1.18.0/lib/parallel.rb:360:in `block (2 levels) in work_in_threads'
/var/canvas/vendor/bundle/ruby/2.5.0/gems/parallel-1.18.0/lib/parallel.rb:515:in `with_instrumentation'
/var/canvas/vendor/bundle/ruby/2.5.0/gems/parallel-1.18.0/lib/parallel.rb:359:in `block in work_in_threads'
/var/canvas/vendor/bundle/ruby/2.5.0/gems/parallel-1.18.0/lib/parallel.rb:209:in `block (3 levels) in in_threads'
Tasks: TOP => canvas:compile_assets
(See full trace by running task with --trace)

can you please help me out resolve this , for speedgrader error please find the attachments when click on download button it redirecting to another page.
Screenshot 2024-03-13 102637.png
Screenshot 2024-03-13 102731.png

Nico López

unread,
Mar 13, 2024, 10:45:01 AMMar 13
to Canvas LMS Users
To be honest, I would not expect too much feedback for a version that is 5 years old! Did you consider updating or migrating to a newer version?

Andrey Gangan

unread,
Apr 1, 2024, 1:16:05 PMApr 1
to Canvas LMS Users
Hi

error 137 - not enough  free ram for compilation
you need at least 8G  VPS to compile.

среда, 13 марта 2024 г. в 16:45:01 UTC+2, Nico López:

oraganti adithya

unread,
Apr 5, 2024, 2:21:57 AMApr 5
to Canvas LMS Users
thanks

Lucifer

unread,
Apr 5, 2024, 3:07:53 AMApr 5
to Canvas LMS Users
Try to upgrade your ram to 8 gb
Reply all
Reply to author
Forward
0 new messages