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!
The anwser is: The system had no swap memory setup: https://www.digitalocean.com/community/articles/how-to-troubleshoot-common-site-issues-on-a-linux-server
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.