Have you re-checked /var permissions? It seems to fail because it cann't create /var/massiveapp with vagrant user
Off-topic: BTW I have this ebook bought but in my pending reading list :) How is it? 2012/10/3 paul h <[email protected]> > Hi, > > I've been going through 'Deploying Rails' from PragProg, and have hit a > problem deploying with Capistrano. > > I've set up a VM with Vagrant and provisioned it with Puppet. Puppet > creates the directories for Cap as user => vagrant, group => vagrant > > When I check the directories permissions I get: > > drwxrwxr-x 3 vagrant vagrant 4096 2012-10-03 01:16 /var/massiveapp > > When I run cap deploy:setup I get the following errors: > > * 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 > > Here is my deploy.rb which deploys as user vagrant(?) which should be > allowed read/write access but the above errors seem to say otherwise.... > > #--- > # Excerpted from "Deploying Rails", > # published by The Pragmatic Bookshelf. > # Copyrights apply to this code. It may not be used to create training > material, > # courses, books, articles, and the like. Contact us if you are in doubt. > # We make no guarantees that this code is fit for any purpose. > # Visit http://www.pragmaticprogrammer.com/titles/cbdepra for more book > information. > #--- > require 'bundler/capistrano' > set :application, "massiveapp" > set :scm, :git > set :repository, "git://github.com/deployingrails/massiveapp.git" > server "localhost", :web, :app, :db, :primary => true > ssh_options[:port] = 2222 > ssh_options[:keys] = "~/.vagrant.d/insecure_private_key" > set :user, "vagrant" > set :group, "vagrant" > set :deploy_to, "/var/massiveapp" > set :use_sudo, false > set :deploy_via, :copy > set :copy_strategy, :export > namespace :deploy do > task :start do ; end > task :stop do ; end > desc "Restart the application" > task :restart, :roles => :app, :except => { :no_release => true } do > run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" > end > desc "Copy the database.yml file into the latest release" > task :copy_in_database_yml do > run "cp #{shared_path}/config/database.yml #{latest_release}/config/" > end > end > before "deploy:assets:precompile", "deploy:copy_in_database_yml" > > > Can anyone help? I'm stuck because the directories appear to have the correct > permissions for Cap????? > > > Thanks > > > Paul > > > > > > -- > * You received this message because you are subscribed to the Google > Groups "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this > group at http://groups.google.com/group/capistrano?hl=en -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
