I suspect you just need to fix the permissions on the shared/system
directory so that your user can write to it.

- Jamis

On 1/30/09 8:52 PM, OmenKing wrote:
> Howdy,
> 
> I haven't ever done this before, but I want to display a maintenance
> page. I'm getting an error on sftp. I'm not sure if this is because
> I've configured my deploy.rb file incorrectly. I need some suggestions
> on how to fix this:
> 
> S0106001b63a607e7:markadee andrew_wc_brown$ cap deploy:web:disable
>   * executing `deploy:web:disable'
>     servers: ["173.45.240.193"]
>  ** sftp upload #<StringIO:0x113495c> -> /home/monsterman/public_html/
> markadee/shared/system/maintenance.html
>     [173.45.240.193] /home/monsterman/public_html/markadee/shared/
> system/maintenance.html
> *** upload via sftp failed on 173.45.240.193:
> Net::SFTP::StatusException (Net::SFTP::StatusException open /home/
> monsterman/public_html/markadee/shared/system/maintenance.html (3,
> "permission denied"))
> upload via sftp failed on 173.45.240.193: Net::SFTP::StatusException
> (Net::SFTP::StatusException open /home/monsterman/public_html/markadee/
> shared/system/maintenance.html (3, "permission denied"))
> 
> This is what I have in my deploy.rb, I've blanked out the password for
> obvious reasons.
> 
> 
> set :application, "markadee"
> set :deploy_to, "/home/monsterman/public_html/#{application}"
> set :repository,  "[email protected]:omenking/markadee.git"
> 
> ssh_options[:port] = 32419
> 
> role :app, "173.45.240.193"
> role :web, "173.45.240.193"
> role :db,  "173.45.240.193", :primary => true
> 
> default_run_options[:pty] = true
> set :scm, "git"
> set :branch, "master"
> set :deploy_via, :remote_cache
> set :scm_passphrase, "---"
> set :user, "monsterman"
> 
> namespace :deploy do
>   desc "Restart Application"
>   task :restart, :roles => :app do
>     run "touch #{current_path}/tmp/restart.txt"
>   end
>   desc "Start Application -- not needed for Passenger"
>   task :start, :roles => :app do
>     #nothing -- need to overide default cap start task when using
> Passenger
>   end
> end
> 
> How do I go about troubleshooting this? I probably just need an
> explanation about what's going on with my error and suggestions to
> rule out the problem or to fix it.
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to