Error while deploying to Unicorn server with capistrano 3
When deploying to the server, the following error appears.
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
Quick help needed!
+3
source to share
2 answers
rails 4.1 cannot deploy through capistrano 3
It looks like the server is running out of RAM. I just increased my RAM from 512MB to 1GB and I went through this error 137
+6
source to share
I agree with @iamthing's answer. I had the same problem when I was trying to deploy my small site to Digital Ocean. I took the following steps to skip the error.
1.Install cpu monitoring software htop
to check usageCPU
sudo apt-get install htop
2.Install unicorn web server process
ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9
3.Run htop
to monitor CPU usage
4. Try to install it again
+3
source to share