I have a capistrano taks like this
require \"bundler/capistrano\"
set :application, \"cloudoc\"
set :repository, \"git@github.com:luizkowalski/cloudoc.git\
If you are using an amazon EC2 micro instance try to delete the old releases of your app and then reboot the server instance. This worked for me. cap deploy:cleanup cap rubber:reboot
I was running into this error and realized I was storing all my previously releases. I simply used cap deploy:cleanup
and it worked great.
The kernel actively kills processes when RAM is short and processes use to much RAM. You can use dmesg
to look if the process got killed by the kernel. Messages like this will appear:
[ 3380.091822] Out of memory: Kill process 1075 (ruby1.9.1) score 382 or sacrifice child
You can activate swap space or shut down other processes. If you are running on a VPS, please make sure you have enough RAM available. The simplest solution - if the problems is really a shortage of free RAM - is just buy more RAM.
I'm running my rails app on Digital Ocean. Creating a 2gb swap seems to solve the problem.