2014-09-01 3 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

답변

3

@iamthing 대답에 동의합니다. Digital Ocean에 내 작은 사이트를 배치하려고 할 때도 같은 문제가있었습니다. 오류를 건너 뛰기 위해 다음 단계를 수행했습니다. htop CPU 모니터링 소프트웨어 1.install

는 CPU 사용을 모니터링

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

3.Run htop하여 CPU 사용

sudo apt-get install htop 

2.Stop 유니콘 웹 서버 프로세스를 확인

4. 다시 배포 해보십시오.

관련 문제