Scalarium tries to restart unicorn on non-Rails roles

's Avatar

alex

30 Apr, 2012 04:01 PM

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.

  1. Support Staff 2 Posted by Jonathan Weiss on 30 Apr, 2012 04:31 PM

    Jonathan Weiss's Avatar

    Can you give me the cloud, instance, and deployment ID?

  2. 3 Posted by Alexander Lang on 30 Apr, 2012 06:10 PM

    Alexander Lang's Avatar
  3. Support Staff 4 Posted by Jonathan Weiss on 30 Apr, 2012 06:28 PM

    Jonathan Weiss's Avatar

    Can you please run this on the instances and try again?

    cd /root/scalarium-agent && ./bin/scalarium_agent_updater
    

    This will update your agent to a new, pre-release version with this fix: https://github.com/scalarium/cookbooks/commit/6e379ea63d3e045959509...

  4. 5 Posted by Alexander Lang on 02 May, 2012 02:24 PM

    Alexander Lang's Avatar

    That did it.

  5. 6 Posted by Alexander Lang on 02 May, 2012 02:28 PM

    Alexander Lang's Avatar

    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_deploy in order to deploy some Erlang code there. On the role with the erlang code it tries to restart unicorn.

  6. Support Staff 7 Posted by Jonathan Weiss on 02 May, 2012 06:37 PM

    Jonathan Weiss's Avatar

    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/REVISION here?

  7. 8 Posted by Alexander Lang on 03 May, 2012 10:33 AM

    Alexander Lang's Avatar

    version is 2012-05-02-05:59:59 70 2186486267490ca879161b93c57dc0a0bbe1f3ac

  8. 9 Posted by Alexander Lang on 03 May, 2012 10:38 AM

    Alexander Lang's Avatar

    by the way it also deploys the Rails app to the Custom/Erlang instance.

  9. Support Staff 10 Posted by Jonathan Weiss on 07 May, 2012 02:36 PM

    Jonathan Weiss's Avatar

    I just tried to reproduce it but the instances are shutdown. I can debug this as soon as they are started again.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.