我在部署到服务器时遇到以下错误。
DEBUG[50057f85] Command: cd /home/deploy/my_project/releases/20140901110633 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec bundle install --binstubs /home/deploy/my_project/shared/bin --path /home/deploy/my_project/shared/bundle --without development test --deployment --quiet )
DEBUG[50057f85] bash: line 1: 5953 Killed ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.2 ~/.rbenv/bin/rbenv exec bundle install --binstubs /home/deploy/my_project/shared/bin --path /home/deploy/my_project/shared/bundle --without development test --deployment --quiet )
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host xxx.xxx.xxx.xxx: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: Nothing written
SSHKit::Command::Failed: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: Nothing written
Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host 107.170.240.115: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: Nothing written
需要快速帮助!!
答案 0 :(得分:6)
rails 4.1 can't deploy via capistrano 3
看起来服务器上没有足够的RAM。我刚刚将RAM从512MB增加到1GB,并且我已经通过了这个137错误
答案 1 :(得分:3)
我同意@iamthing的回答。当我尝试在Digital Ocean中部署我的小网站时,我遇到了同样的问题。我已经完成了以下步骤以跳过错误。
1.安装htop
cpu监控软件以检查CPU
用法
sudo apt-get install htop
2.通过
停止独角兽网络服务器进程 ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9
3.运行htop
以监控CPU使用情况
4.尝试再次部署