Closed ajsharp closed 9 years ago
I should add that I am trying to launch an instance from an AMI that was generated from this cookbook. I performed the suggested steps from the amazon guide on creating an AMI from an opsworks instance. It is rails / unicorn, ruby 2.1. I suspect the problem may be related to the recipes that run when an instance is shut down: deploy::rails-undeploy, opsworks_shutdown::default, nginx:stop.
@ajsharp So how did you solve this?
Unfortunately I don't remember :(
On Monday, August 31, 2015, kalinchuk notifications@github.com wrote:
@ajsharp https://github.com/ajsharp So how did you solve this?
— Reply to this email directly or view it on GitHub https://github.com/aws/opsworks-cookbooks/issues/293#issuecomment-136397076 .
Just in case someone runs into this, here is what I did: I added a custom JSON with the following:
{
"deploy" : {
"app_name" : {
"deploy_to" : "/mnt/srv/www/app_name"
}
}
}
The unicorn::rails recipe, which includes the nginx recipe, is being run as part of the setup phase. The effect of this is that the "shared" directory is trying to be created before it's parent, which is causing a failure. Here's the console output: