Skip to content

Instantly share code, notes, and snippets.

@arohner
Created February 2, 2012 19:30
Show Gist options
  • Select an option

  • Save arohner/1725268 to your computer and use it in GitHub Desktop.

Select an option

Save arohner/1725268 to your computer and use it in GitHub Desktop.
rake assets precompile exception in jruby 1.6.6
ubuntu@domU-12-31-39-0A-0D-02:~/CircleCI-181$ rvm jruby-1.6.6@circle exec rake assets:precompile
/home/ubuntu/.rvm/rubies/jruby-1.6.6/bin/jruby /home/ubuntu/.rvm/gems/jruby-1.6.6@circle/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
can't convert Encoding into String
(in /home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/haml_coffee_assets-0.6.0/vendor/assets/javascripts/hamlcoffee.js.coffee.erb)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/home/ubuntu/.rvm/rubies/jruby-1.6.6/bin/j...]
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
ubuntu@domU-12-31-39-0A-0D-02:~/CircleCI-181$ rvm jruby-1.6.6@circle exec rake assets:precompile --trace
exec rake assets:precompile --trace
rvm 1.10.2 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/home/ubuntu/.rvm/rubies/jruby-1.6.6/bin/jruby /home/ubuntu/.rvm/gems/jruby-1.6.6@circle/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
can't convert Encoding into String
(in /home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/haml_coffee_assets-0.6.0/vendor/assets/javascripts/hamlcoffee.js.coffee.erb)
org/jruby/RubyIO.java:3722:in `popen'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:165:in `sh'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:125:in `exec_runtime'
org/jruby/RubyBasicObject.java:1700:in `__send__'
org/jruby/RubyKernel.java:2099:in `send'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:27:in `exec'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:40:in `compile_to_tempfile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:26:in `exec'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:18:in `eval'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/execjs-1.2.9/lib/execjs/external_runtime.rb:32:in `call'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/coffee-script-2.2.0/lib/coffee_script.rb:57:in `compile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/tilt-1.3.3/lib/tilt/coffee.rb:46:in `evaluate'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/context.rb:175:in `evaluate'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `evaluate'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:171:in `build_dependency_context_and_body'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:135:in `dependency_context'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:194:in `build_dependencies_paths_and_assets'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:141:in `dependency_paths'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:61:in `mtime'
org/jruby/RubyBasicObject.java:1694:in `__send__'
org/jruby/RubyKernel.java:2095:in `send'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/asset.rb:58:in `encode_with'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `encode_with'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:43:in `encode_with'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/caching.rb:52:in `cache_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:67:in `build_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:76:in `memoize'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:65:in `build_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:99:in `find_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:48:in `find_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:110:in `[]'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:200:in `build_dependencies_paths_and_assets'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:194:in `build_dependencies_paths_and_assets'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:141:in `dependency_paths'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:61:in `mtime'
org/jruby/RubyBasicObject.java:1694:in `__send__'
org/jruby/RubyKernel.java:2095:in `send'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/asset.rb:58:in `encode_with'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `encode_with'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:43:in `encode_with'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/caching.rb:52:in `cache_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:67:in `build_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:76:in `memoize'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:65:in `build_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/trail.rb:102:in `find_asset_in_path'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:101:in `find_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/index.rb:48:in `find_asset'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/static_compiler.rb:20:in `compile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:151:in `each_logical_path'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:139:in `each_file'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:129:in `each_entry'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:137:in `each_file'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:136:in `each_file'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/sprockets-2.0.3/lib/sprockets/base.rb:149:in `each_logical_path'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/static_compiler.rb:18:in `compile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/assets.rake:52:in `internal_precompile'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/assets.rake:66:in `(root)'
org/jruby/RubyProc.java:258:in `call'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/home/ubuntu/.rvm/rubies/jruby-1.6.6/lib/ruby/1.9/monitor.rb:201:in `mon_synchronize'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/assets.rake:56:in `(root)'
org/jruby/RubyProc.java:258:in `call'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/home/ubuntu/.rvm/rubies/jruby-1.6.6/lib/ruby/1.9/monitor.rb:201:in `mon_synchronize'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
org/jruby/RubyKernel.java:1062:in `load'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/bin/rake:19:in `(root)'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/home/ubuntu/.rvm/rubies/jruby-1.6.6/bin/j...]
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `create_shell_runner'
org/jruby/RubyProc.java:258:in `call'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:43:in `sh'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:43:in `ruby'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/actionpack-3.1.1/lib/sprockets/assets.rake:25:in `(root)'
org/jruby/RubyProc.java:258:in `call'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/home/ubuntu/.rvm/rubies/jruby-1.6.6/lib/ruby/1.9/monitor.rb:201:in `mon_synchronize'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
org/jruby/RubyArray.java:1614:in `each'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
org/jruby/RubyKernel.java:1062:in `load'
/home/ubuntu/.rvm/gems/jruby-1.6.6@circle/bin/rake:19:in `(root)'
Tasks: TOP => assets:precompile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment