winngreg
By:
winngreg

Issue deploying using Cap 3 and the 1-click RoR box

February 16, 2015 2.3k views

Hello,
I am using capistrano 3.3.5 and the 1-click install rails app box. I am not deploying to the /home/rails dir... I am deploying to /home/winnhue

I have used capistrano 3+ and the 1-click installer many time before with 0 issues. but now i am getting something i have not seen before.

When running 'cap production deploy' i get the following:

[d9268013] Running /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet as website@107.170.159.110
DEBUG [d9268013] Command: cd /home/winnhue/releases/20150216193510 && /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet
DEBUG [d9268013]    bash: line 1: 21856 Killed                  /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as website@107.170.159.110: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: bash: line 1: 21856 Killed                  /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet

SSHKit::Command::Failed: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: bash: line 1: 21856 Killed                  /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet

Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as website@107.170.159.110: bundle exit status: 137
bundle stdout: Nothing written
bundle stderr: bash: line 1: 21856 Killed                  /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet

So i ssh'ed to the server and ran the command myself (as the deploy user) with this result:

$ cd /home/winnhue/releases/20150216193510 && /usr/local/rvm/bin/rvm ruby-2.1.3 do bundle install --path /home/winnhue/shared/bundle --without development test --deployment --quiet
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /home/winnhue/releases/20150216193510/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

Killed

Any help with this issue would be wonderful... Please let me know if you have any other questions.

2 comments
1 Answer
by Justin Ellingwood
Everybody runs into issues with their website at one point or another. This guide will help you troubleshoot some common issues and get your site running again.
Have another answer? Share your knowledge.