errors when compiling assets

398 views
Skip to first unread message

Andranik Markosyan

unread,
Dec 3, 2015, 5:46:29 AM12/3/15
to Canvas LMS Users

During installation perform following command and rake aborted during r.js optimizer while ruuning RAILS_ENV=production bundle exec rake canvas:compile_assets

here is the output

--> Finished: 'compile coffee, js 18n, and run r.js optimizer' in 356.961886344
rake aborted!
Undumpable Exception -- #<RuntimeError: error running dress_code>
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:63:in `work'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:280:in `block (4 levels) in work_in_processes'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:447:in `with_instrumentation'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:279:in `block (3 levels) in work_in_processes'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:273:in `loop'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:273:in `block (2 levels) in work_in_processes'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:138:in `block (2 levels) in in_threads'
Tasks: TOP => canvas:compile_assets```(See full trace by running task with --trace)
Thanks

Ross Gailer

unread,
Dec 14, 2015, 6:59:07 PM12/14/15
to Canvas LMS Users
Have you run it with the --trace option as per the message to get any additional output? Did this point to anything in particular?

Anand S

unread,
Feb 1, 2016, 9:35:26 AM2/1/16
to Canvas LMS Users
Hi there,
I am also getting exactly this error when trying to compile assets. Running it with --trace looks like this:
.
.
.
--> Finished: 'compile coffee, js 18n, and run r.js optimizer' in 516.518302968
rake aborted!
Undumpable Exception -- #<RuntimeError: error running dress_code>
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:63:in `work'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:280:in `block (4 levels) in work_in_processes'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:447:in `with_instrumentation'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:279:in `block (3 levels) in work_in_processes'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:273:in `loop'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:273:in `block (2 levels) in work_in_processes'
/var/canvas/vendor/bundle/ruby/2.1.0/gems/parallel-1.4.1/lib/parallel.rb:138:in `block (2 levels) in in_threads'
Tasks: TOP => canvas:compile_assets

- Anand

ta...@gathergather.co.nz

unread,
Jun 28, 2016, 4:32:09 AM6/28/16
to Canvas LMS Users
In case anyone else comes across this, my issue was not having the locale/encoding set.

This StackOverflow post solved it for me.

# from your command line
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Then compile assets again.

sibi...@gmail.com

unread,
Oct 11, 2016, 4:37:08 AM10/11/16
to Canvas LMS Users

I'm getting the same error on Ubuntu 16.04.

Setting locale/encoding didn't help.
Tried setting  RUBYOPT as recommended by another thread. Didn't help as well.
export RUBYOPT="-KU -E utf-8:utf-8"

Has anyone faced this? Any suggestions on how to proceed?

Thanks.

sibi...@gmail.com

unread,
Oct 16, 2016, 3:38:22 AM10/16/16
to Canvas LMS Users
Installing the python-software-properties package fixed the issue.

sudo apt-get install python-software-properties

Thanks.
Reply all
Reply to author
Forward
0 new messages