02 Oct 2012, 23:26
Generic-user-small

Paul Hollyer (4 posts)

Hi,

Have been going through the book and have hit a block at page 69, Chapter 4, Basic Capistrano.

When I run cap deploy:setup I get the following error:

* executing deploy:setup’ * executing “mkdir -p /var/massiveapp /var/massiveapp/releases /var/massiveapp/shared /var/massiveapp/shared/system /var/massiveapp/shared/log /var/massiveapp/shared/pids” servers: [“localhost”] [localhost] executing command [localhost] sh -c ‘mkdir -p /var/massiveapp /var/massiveapp/releases /var/massiveapp/shared /var/massiveapp/shared/system /var/massiveapp/shared/log /var/massiveapp/shared/pids’ ** [err :: localhost] mkdir: cannot create directory /var/massiveapp': Permission denied *** [err :: localhost] mkdir: cannot create directory /var/massiveapp’: Permission denied ** [err :: localhost] mkdir: cannot create directory /var/massiveapp': Permission denied *** [err :: localhost] mkdir: cannot create directory /var/massiveapp’: Permission denied *** [err :: localhost] mkdir: cannot create directory /var/massiveapp': Permission denied *** [err :: localhost] mkdir: cannot create directory /var/massiveapp’: Permission denied command finished in 43ms failed: “sh -c ‘mkdir -p /var/massiveapp /var/massiveapp/releases /var/massiveapp/shared /var/massiveapp/shared/system /var/massiveapp/shared/log /var/massiveapp/shared/pids’” on localhost `

I have gone back and used the downloaded files for the book for massive app/manifests/site.pp and also config/deploy.rb just to make sure that I hadn’t missed anything.

Also when I run ls -ld /var/massiveapp on the VM I get the following output: ` drwxrwxr-x 3 vagrant vagrant 4096 2012-10-03 01:16 /var/massiveapp `

Can anyone help?

Thanks

Paul

09 Oct 2012, 15:27
Generic-user-small

Paul Hollyer (4 posts)

Found it - but why?

The permissions for /var were set as root for owner & group, shouldn’t they be set as vagrant for owner & group if chapter 4 uses vagrant as the user and group for capistrano?

Great book, but now the examples appear to deviate a bit from actual and expected outcomes.

Thanks

Paul

  You must be logged in to comment