bluepill-rb / bluepill

simple process monitoring tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capistrano 3 - stderr: /usr/bin/bluepill:3:in `require': no such file to load

ssotos opened this issue · comments

Hey guys,

I'm trying to configure bluepill with capistrano 3 and I have the following issue:
On the server side I install "gem install bluepill". Then I add a symbolic link for bluepill binary:
sudo ln -s /home/deploy/.rvm/gems/ruby-2.1.2/gems/bluepill-0.0.68/bin/bluepill /usr/bin/bluepill
Then I add bluepill to startup:
sudo -H -u deploy bash -c '/home/deploy/.rvm/bin/rvm 2.1.2 do bluepill load /var/www/test_app/current/config/staging.pill --no-privileged'

On my deploy.rb I have:

desc "Load bluepill"
task :load_config do
on roles(fetch(:bluepill_roles)) do
execute "bluepill load /var/www/test_app/current/config/staging.pill --no-privileged"
end
end

then I try to deploy and I get the following error in capistrano:

The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host XXX.XXX.XXX.XXX: bluepill load /var/www/test_app/current/config/staging.pill --no-privileged exit status: 1
bluepill load /var/www/test_app/current/config/staging.pill --no-privileged stdout: Nothing written
bluepill load /var/www/test_app/current/config/staging.pill --no-privileged stderr: /usr/bin/bluepill:3:in `require': no such file to load -- bluepill (LoadError)
from /usr/bin/bluepill:3

Does someone know why this is failing?

Capistrano version 3.1