Report this

What is the reason for this report?

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

Posted on February 16, 2015

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.