Scalarium tries to restart unicorn on non-Rails roles
I have a cloud with a Rails app server role running Unicorn and
a custom role. Deployments fail because
shared/scripts/unicorn clean-restart is run on the
custom role but cannot be found. I'm using
scalarium_deploy in my deploy recipes.
Support Staff 2 Posted by Jonathan Weiss on 30 Apr, 2012 04:31 PM
Can you give me the cloud, instance, and deployment ID?
3 Posted by Alexander Lang on 30 Apr, 2012 06:10 PM
deployment: https://manage.scalarium.com/applications/2ebcc5b0526bedcf2e9176ca0...
cloud: https://manage.scalarium.com/clouds/868c46bebb3490da5a1389da27b2f55b
instance: https://manage.scalarium.com/clouds/868c46bebb3490da5a1389da27b2f55...
Support Staff 4 Posted by Jonathan Weiss on 30 Apr, 2012 06:28 PM
Can you please run this on the instances and try again?
This will update your agent to a new, pre-release version with this fix: https://github.com/scalarium/cookbooks/commit/6e379ea63d3e045959509...
5 Posted by Alexander Lang on 02 May, 2012 02:24 PM
That did it.
6 Posted by Alexander Lang on 02 May, 2012 02:28 PM
Correction: it didn't. The problem is that I am deploying a Rails app on the cluster. The cluster has a rails app server role and a custom role. On the custom role I run a recipe that in turn calls
scalarium_deployin order to deploy some Erlang code there. On the role with the erlang code it tries to restart unicorn.Support Staff 7 Posted by Jonathan Weiss on 02 May, 2012 06:37 PM
Does it still try to restart unicorn on the custom role?
If so can you please verify the agent version of the instance by pasting the content of
/root/scalarium-agent/REVISIONhere?8 Posted by Alexander Lang on 03 May, 2012 10:33 AM
version is 2012-05-02-05:59:59 70 2186486267490ca879161b93c57dc0a0bbe1f3ac
9 Posted by Alexander Lang on 03 May, 2012 10:38 AM
by the way it also deploys the Rails app to the Custom/Erlang instance.
Support Staff 10 Posted by Jonathan Weiss on 07 May, 2012 02:36 PM
I just tried to reproduce it but the instances are shutdown. I can debug this as soon as they are started again.