rake exit status: 139

不羁的心 提交于 2019-12-24 19:45:22

问题


I am following https://gorails.com/deploy/ubuntu/16.04

I am running : "bundle exec cap production deploy" and getting the following error:

         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)

my Capfile is the one from here with rbenv 2.4.0: cap deploy + rbenv: bundle: command not found

来源:https://stackoverflow.com/questions/44008509/rake-exit-status-139

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!