rake退出状态:139

时间:2017-05-16 18:00:15

标签: ruby ruby-on-rails-4 rbenv capistrano3

我正在关注https://gorails.com/deploy/ubuntu/16.04

我正在运行:“捆绑exec cap production deploy”并收到以下错误:

         01 $HOME/.rbenv/bin/rbenv exec bundle install --path /home/deploy/deploy_test1/shared/bundle --without development test --deployment --q…
        ✔ 01 deploy@107.170.84.18 3.251s
    00:21 deploy:assets:precompile
          01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
          01 /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: w…
          01 /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: w…
          01 bash: line 1: 23934 Segmentation fault      (core dumped) $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
    (Backtrace restricted to imported tasks)
    cap aborted!
    SSHKit::Runner::ExecuteError: Exception while executing as deploy@107.170.84.18: rake exit status: 139
    rake stdout: Nothing written
    rake stderr: /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
    /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
    bash: line 1: 23934 Segmentation fault      (core dumped) $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile

    SSHKit::Command::Failed: rake exit status: 139
    rake stdout: Nothing written
    rake stderr: /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
    /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
    bash: line 1: 23934 Segmentation fault      (core dumped) $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile

    Tasks: TOP => deploy:assets:precompile
    (See full trace by running task with --trace)
    The deploy has failed with an error: Exception while executing as deploy@107.170.84.18: rake exit status: 139
    rake stdout: Nothing written
    rake stderr: /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
    /home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
    bash: line 1: 23934 Segmentation fault      (core dumped) $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
......
......
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache.rb:138:in `local_cache_key'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache.rb:74:in `middleware'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application/bootstrap.rb:79:in `block in <module:Bootstrap>'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'
/home/deploy/deploy_test1/releases/20170516175610/config/environment.rb:5:in `<top (required)>'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:328:in `require'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:328:in `require_environment!'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'
/home/deploy/.rbenv/versions/2.4.0/bin/bundle:22:in `<main>'
Tasks: TOP => environment
(See full trace by running task with --trace)


** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:


/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache.rb:138:in `local_cache_key'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache.rb:74:in `middleware'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application/bootstrap.rb:79:in `block in <module:Bootstrap>'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'

/home/deploy/deploy_test1/releases/20170516175610/config/environment.rb:5:in `<top (required)>'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:328:in `require'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:328:in `require_environment!'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/railties-4.2.4/lib/rails/application.rb:457:in `block in run_tasks_blocks'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'

/home/deploy/deploy_test1/shared/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'

/home/deploy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'

/home/deploy/.rbenv/versions/2.4.0/bin/bundle:22:in `<main>'

Tasks: TOP => environment

(See full trace by running task with --trace)

我的Capfile是来自这里的rbenv 2.4.0: cap deploy + rbenv: bundle: command not found

0 个答案:

没有答案