Stackato 2.10.4 pre and post staging hooks fix

Posted by lorned on 2013-05-09 14:21
OS: All / Any | Product: Stackato | tags: 2.10.4 hooks java patch stackato
Question: 

When I attempt to deploy grails apps with pre and post staging hooks I am seeing errors like "/home/stackato/stackato/vcap/staging/lib/vcap/staging/plugin/common.rb:968:in `chdir': No such file or directory - app (Errno::ENOENT)". Help!

Answer: 

We have created a patch for this issue. You can download it from http://get.stackato.com/patch/2.10/stackato-2.10.4-post-staging-hook.sh. You will want to copy it to all of the nodes in your cluster running the stager role. After copying the patch you should access the console/terminal for each of those nodes and execute 'sh stackato-2.10.4-post-staging-hook.sh'. After executing this command you will not need to restart anything.