OK, probably serves me right for using the experimental branch but
we're exploring completely moving over to ec2. Anyhow, following the
instrucitons I have the instance up fine and can connect to it no
problem as well as copy keys down and the like.
However, cap deploy:setup continually throws a permissions error in
trying to create the base directories for the deploy. Changing
deploy.rb to use the admin user doesn't work nor does trying to set
deploy_to . It may be something silly I've done but somehow I think
it's a bit deeper than that. Any help or suggestions appreciated.
So, help appreciated. Kinda stumped. Will most likely be building our
own image at some point but have to say, kinda loving EC2 in general
so far.
Cap log follows :
====
* executing `deploy:setup'
* executing "mkdir -p /mnt/app /mnt/app/releases /mnt/app/shared /
mnt/app/shared/system /mnt/app/shared/log /mnt/app/shared/pids &&
chmod g+w /mnt/app /mnt/app/releases /mnt/app/shared /mnt/app/shared/
system /mnt/app/shared/log /mnt/app/shared/pids"
servers: ["
ec2-75-101-182-150.compute-1.amazonaws.com"]
[
ec2-75-101-182-150.compute-1.amazonaws.com] executing command
*** [err ::
ec2-75-101-182-150.compute-1.amazonaws.com] mkdir: cannot
create directory `/mnt/app': Permission denied
*** [err ::
ec2-75-101-182-150.compute-1.amazonaws.com] mkdir: cannot
create directory `/mnt/app': Permission denied
*** [err ::
ec2-75-101-182-150.compute-1.amazonaws.com] mkdir: cannot
create directory `/mnt/app': Permission denied
*** [err ::
ec2-75-101-182-150.compute-1.amazonaws.com] mkdir: cannot
create directory `/mnt/app': Permission denied
*** [err ::
ec2-75-101-182-150.compute-1.amazonaws.com] mkdir: cannot
create directory `/mnt/app': Permission denied
*** [err ::
ec2-75-101-182-150.compute-1.amazonaws.com] mkdir: cannot
create directory `/mnt/app': Permission denied
command finished
failed: "sh -c 'mkdir -p /mnt/app /mnt/app/releases /mnt/app/shared /
mnt/app/shared/system /mnt/app/shared/log /mnt/app/shared/pids &&
chmod g+w /mnt/app /mnt/app/releases /mnt/app/shared /mnt/app/shared/
system /mnt/app/shared/log /mnt/app/shared/pids'" on
ec2-75-101-182-150.compute-1.amazonaws.com
====
I get the failures despite changing the deploy_to which still tries to
write to mnt. Did I miss a critical step here (I know Paul said he
hadn't had time to update the docs, but something still seems amiss).
Also, do we have a list of amis that people have crafted for these
purposes (in particular, being probably as fusy as everyone else I
have a particular config in mind. I can build a custom image, but
figure someone has probably beat me to it... =] ).
thanks !
Daryl.