Report this

What is the reason for this report?

Unicorn workers are being reaped after rebooting the server

Posted on July 3, 2017

I recently updated my rails droplet (it is a one-click Ubuntu 14.0.4 droplet set up a while back) to use chruby for ruby management, and updated ruby.

I source chruby in /etc/profile.d/chruby.sh and I removed RVM. Everything appeared to be working as intended.

However I noticed that after rebooting unicorn wasn’t restarting. I fixed the /etc/default/unicorn to remove the rvm paths, and I created a unicorn_wrapper to source chruby, switch to the rails app dir, then bundle exec unicorn.

Starting and stopping unicorn via /etc/init.d/unicorn and service unicorn both succeed and the workers run. However after a reboot the workers are immediately “reaped”.

Any pointers would be much appreciated.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.