2014-09-01 68 views
3

我在部署到服務器時出現跟隨錯誤。與capistrano部署到Unicorn服務器時出錯3

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

聽起來就像你的SSH連接搞砸了。你可以SSH進入這個盒子嗎? – CDub 2014-09-15 22:00:51

回答

3

我同意@iamthing的答案。當我嘗試在Digital Ocean中部署我的小型網站時,我遇到了同樣的問題。我已經完成了以下步驟以避免錯誤。

1.安裝htop CPU監控軟件通過

ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9 

3.Run htop檢查CPU使用

sudo apt-get install htop 

2.Stop麒麟web服務器進程監視CPU使用率

4.再次部署它