2015-05-29 97 views
0

我想使用资源预编译资产:预编译命令,但我得到的错误以下。rake资产:预编译,命令失败,状态为(137):

**调用资产:预编译(FIRST_TIME) **执行资产:预编译/root/jruby-1.7.9/bin/jruby /root/jruby-1.7.9/bin/rake资产:预编译:所有RAILS_ENV =生产 RAILS_GROUPS =资产的--trace **调用资产:预编译:所有(FIRST_TIME) **调用资产:缓存:干净(FIRST_TIME) **调用资产:环境(FIRST_TIME) **执行资产:环境 **调用环境(first_time) **执行环境 **执行资产:cache:clean **执行资产:预编译:所有rake中止!命令失败,状态为(137):[/root/jruby-1.7.9/bin/jruby/root/jruby-1 ....] /root/jruby-1.7.9/lib/ruby/gems/shared/ gems/rake-10.1.1/lib/rake/file_utils.rb:55:在create_shell_runner' org/jruby/RubyProc.java:271:in调用' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/ rake/file_utils.rb:45:在sh' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in sh' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils.rb:82:in ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:24:in ruby_rake_task' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:33:in invoke_or_reboot_rake_task ' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:50:in (root)' org/jruby/RubyProc.java:271:in call' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:236:in execute' org/jruby/RubyArray.java:1613:in each' /root/jruby-1.7.9 /lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:231:in execute' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:175:in invoke_with_call_chain' /root/jruby-1.7.9/lib/ruby/1.9/monitor。 RB:211:在mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in invoke_with_call_chain' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:161:in invoke' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:149:in invoke_task” /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:106:in top_level' org/jruby/RubyArray.java:1613:in each' /root/jruby-1.7.9/ lib/ruby​​/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:106:在 个top_level' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:115:in run_with_threads' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:100:in top_level' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:78:in 运行” /根/ jruby的-1.7.9/lib/ruby​​/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:165:在 standard_exception_handling' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:75:in 运行' /root/jruby-1.7.9/lib/ruby/ gems/shared/gems/rake-10.1.1/bin/rake:33:in (root)' org/jruby/RubyKernel.java:1099:in load' /root/jruby-1.7.9/bin/rake:23:in`(root)'任务:TOP => 资产:预编译

我的宝石文件如下

source 'https://rubygems.org' 

gem 'rails', '3.2.14' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 
#gem 'mysql2' 
gem 'activerecord-jdbcmysql-adapter', '~> 1.3.0' 
gem 'jruby-openssl' 

# Gems used only for assets and not required 
# in production environments by default. 

gem 'sass-rails', '~> 3.2.3' 
gem 'coffee-rails', '~> 3.2.1' 
gem 'bootstrap-sass', '~> 3.0.2.0' 

# See https://github.com/sstephenson/execjs#readme for more supported runtimes 
gem 'therubyrhino' 
# gem 'therubyracer' 
gem 'uglifier', '>= 1.0.3' 
gem 'turbo-sprockets-rails3' 

gem 'jquery-rails' 
gem 'devise', '3.2.2' 
gem 'simple_form' 
gem 'jquery-datatables-rails', '~> 2.2.3' 
gem "instagram", "~> 0.10.0" 
gem 'whenever', :require => false 
gem 'rack-cache', :require => 'rack/cache' 
gem "dragonfly", '~>0.9.15' 
gem 'delayed_job_active_record' 
gem 'daemons' 
gem "lazyload-rails" 
gem "spreadsheet" 
gem 'newrelic_rpm' 
# gem "ruby-mcrypt" 
gem "koala","~> 2.0" 

group :development, :test do 
    gem 'hirb' 
    gem 'pry' 
    gem 'awesome_print', '~> 1.6.1' 
# gem 'better_errors', '~> 1.1.0' 
# gem 'binding_of_caller' 
end 

# To use ActiveModel has_secure_password 
# gem 'bcrypt-ruby', '~> 3.0.0' 

# To use Jbuilder templates for JSON 
# gem 'jbuilder' 

# Use unicorn as the app server 
# gem 'unicorn' 

# Deploy with Capistrano 
# gem 'capistrano' 

# To use debugger 
# gem 'debugger' 

我Gemfile.lock的是如下

GEM 
    remote: https://rubygems.org/ 
    specs: 
    actionmailer (3.2.14) 
     actionpack (= 3.2.14) 
     mail (~> 2.5.4) 
    actionpack (3.2.14) 
     activemodel (= 3.2.14) 
     activesupport (= 3.2.14) 
     builder (~> 3.0.0) 
     erubis (~> 2.7.0) 
     journey (~> 1.0.4) 
     rack (~> 1.4.5) 
     rack-cache (~> 1.2) 
     rack-test (~> 0.6.1) 
     sprockets (~> 2.2.1) 
    activemodel (3.2.14) 
     activesupport (= 3.2.14) 
     builder (~> 3.0.0) 
    activerecord (3.2.14) 
     activemodel (= 3.2.14) 
     activesupport (= 3.2.14) 
     arel (~> 3.0.2) 
     tzinfo (~> 0.3.29) 
    activerecord-jdbc-adapter (1.3.5) 
     activerecord (>= 2.2) 
    activerecord-jdbcmysql-adapter (1.3.5) 
     activerecord-jdbc-adapter (~> 1.3.5) 
     jdbc-mysql (>= 5.1.22) 
    activeresource (3.2.14) 
     activemodel (= 3.2.14) 
     activesupport (= 3.2.14) 
    activesupport (3.2.14) 
     i18n (~> 0.6, >= 0.6.4) 
     multi_json (~> 1.0) 
    addressable (2.3.8) 
    arel (3.0.3) 
    atomic (1.1.14) 
    atomic (1.1.14-java) 
    awesome_print (1.6.1) 
    bcrypt-ruby (3.1.2) 
    bcrypt-ruby (3.1.2-java) 
    bootstrap-sass (3.0.2.1) 
     sass (~> 3.2) 
    bouncy-castle-java (1.5.0147) 
    builder (3.0.4) 
    chronic (0.10.2) 
    coderay (1.1.0) 
    coffee-rails (3.2.2) 
     coffee-script (>= 2.2.0) 
     railties (~> 3.2.0) 
    coffee-script (2.2.0) 
     coffee-script-source 
     execjs 
    coffee-script-source (1.6.3) 
    daemons (1.1.9) 
    delayed_job (4.0.0) 
     activesupport (>= 3.0, < 4.1) 
    delayed_job_active_record (4.0.0) 
     activerecord (>= 3.0, < 4.1) 
     delayed_job (>= 3.0, < 4.1) 
    devise (3.2.2) 
     bcrypt-ruby (~> 3.0) 
     orm_adapter (~> 0.1) 
     railties (>= 3.2.6, < 5) 
     thread_safe (~> 0.1) 
     warden (~> 1.2.3) 
    dragonfly (0.9.15) 
     multi_json (~> 1.0) 
     rack 
    erubis (2.7.0) 
    execjs (2.0.2) 
    faraday (0.8.9) 
     multipart-post (~> 1.2.0) 
    faraday_middleware (0.9.0) 
     faraday (>= 0.7.4, < 0.9) 
    ffi (1.9.8-java) 
    hashie (2.0.5) 
    hike (1.2.3) 
    hirb (0.7.3) 
    i18n (0.6.9) 
    instagram (0.10.0) 
     faraday (>= 0.7, < 0.9) 
     faraday_middleware (~> 0.8) 
     hashie (>= 0.4.0) 
     multi_json (~> 1.0, >= 1.0.3) 
    jdbc-mysql (5.1.28) 
    journey (1.0.4) 
    jquery-datatables-rails (2.2.3) 
     jquery-rails 
     sass-rails 
    jquery-rails (3.0.4) 
     railties (>= 3.0, < 5.0) 
     thor (>= 0.14, < 2.0) 
    jruby-openssl (0.9.4) 
     bouncy-castle-java (>= 1.5.0147) 
    json (1.8.1) 
    json (1.8.1-java) 
    koala (2.0.0) 
     addressable 
     faraday 
     multi_json 
    lazyload-rails (0.2.0) 
     nokogiri (~> 1.5) 
    mail (2.5.4) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    method_source (0.8.2) 
    mime-types (1.25.1) 
    mini_portile (0.5.2) 
    multi_json (1.8.4) 
    multipart-post (1.2.0) 
    newrelic_rpm (3.9.9.275) 
    nokogiri (1.6.1) 
     mini_portile (~> 0.5.0) 
    nokogiri (1.6.1-java) 
     mini_portile (~> 0.5.0) 
    orm_adapter (0.5.0) 
    polyglot (0.3.3) 
    pry (0.10.1-java) 
     coderay (~> 1.1.0) 
     method_source (~> 0.8.1) 
     slop (~> 3.4) 
     spoon (~> 0.0) 
    rack (1.4.5) 
    rack-cache (1.2) 
     rack (>= 0.4) 
    rack-ssl (1.3.3) 
     rack 
    rack-test (0.6.2) 
     rack (>= 1.0) 
    rails (3.2.14) 
     actionmailer (= 3.2.14) 
     actionpack (= 3.2.14) 
     activerecord (= 3.2.14) 
     activeresource (= 3.2.14) 
     activesupport (= 3.2.14) 
     bundler (~> 1.0) 
     railties (= 3.2.14) 
    railties (3.2.14) 
     actionpack (= 3.2.14) 
     activesupport (= 3.2.14) 
     rack-ssl (~> 1.3.2) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (>= 0.14.6, < 2.0) 
    rake (10.1.1) 
    rdoc (3.12.2) 
     json (~> 1.4) 
    ruby-ole (1.2.11.7) 
    sass (3.2.13) 
    sass-rails (3.2.6) 
     railties (~> 3.2.0) 
     sass (>= 3.1.10) 
     tilt (~> 1.3) 
    simple_form (2.1.1) 
     actionpack (~> 3.0) 
     activemodel (~> 3.0) 
    slop (3.6.0) 
    spoon (0.0.4) 
     ffi 
    spreadsheet (0.9.7) 
     ruby-ole (>= 1.0) 
    sprockets (2.2.2) 
     hike (~> 1.2) 
     multi_json (~> 1.0) 
     rack (~> 1.0) 
     tilt (~> 1.1, != 1.3.0) 
    therubyrhino (2.0.2) 
     therubyrhino_jar (>= 1.7.3) 
    therubyrhino_jar (1.7.4) 
    thor (0.18.1) 
    thread_safe (0.1.3) 
     atomic 
    thread_safe (0.1.3-java) 
     atomic 
    tilt (1.4.1) 
    treetop (1.4.15) 
     polyglot 
     polyglot (>= 0.3.1) 
    turbo-sprockets-rails3 (0.3.11) 
     railties (> 3.2.8, < 4.0.0) 
     sprockets (>= 2.2.0) 
    tzinfo (0.3.38) 
    uglifier (2.4.0) 
     execjs (>= 0.3.0) 
     json (>= 1.8.0) 
    warden (1.2.3) 
     rack (>= 1.0) 
    whenever (0.8.4) 
     activesupport (>= 2.3.4) 
     chronic (>= 0.6.3) 

PLATFORMS 
    java 

DEPENDENCIES 
    activerecord-jdbcmysql-adapter (~> 1.3.0) 
    awesome_print (~> 1.6.1) 
    bootstrap-sass (~> 3.0.2.0) 
    coffee-rails (~> 3.2.1) 
    daemons 
    delayed_job_active_record 
    devise (= 3.2.2) 
    dragonfly (~> 0.9.15) 
    hirb 
    instagram (~> 0.10.0) 
    jquery-datatables-rails (~> 2.2.3) 
    jquery-rails 
    jruby-openssl 
    koala (~> 2.0) 
    lazyload-rails 
    newrelic_rpm 
    pry 
    rack-cache 
    rails (= 3.2.14) 
    sass-rails (~> 3.2.3) 
    simple_form 
    spreadsheet 
    therubyrhino 
    turbo-sprockets-rails3 
    uglifier (>= 1.0.3) 
    whenever 

请帮助我的人,我从里面的宝石收到错误,我不能够得到的是状态(137)。我在互联网搜索,我无法找到状态(137)的任何错误。请帮助我。

+0

我遇到了同样的问题来运行这个命令

rake assets:clobber 

然后。我将我的应用程序部署到AWS OpsWorks,并且它始终与'Ran bundle exec rake assets:precompile 2>&1返回137'一起失败。 – partydrone

回答

0

如果有资产的预编译的任何错误,然后尝试首先在预编译入资产价值

+0

我跑上面的命令,但它给'不知道如何建立任务'资产:clobber''错误。 –

+0

你是否有宝石'sprockets-rails',:require =>'sprockets/railtie'如果没有安装然后运行它 –

+0

我再次遇到上面提到的错误,我在问题中提到过。 –

相关问题