Hi,

I'm moving from 1.3 to 2.1 and have encountered a difficulty.  I can't
get cap to prompt for the password needed to run 'sudo' commands.
Therefore it is failing n the deploy:restart command

  * executing `deploy:restart'
  * executing "sudo -p 'sudo password: ' -u jhowison /Library/
WebServer/railsapps/flosseventbrowser/current/script/process/reaper"

I also need it to prompt for the sudo password for apache graceful.
Should it automatically prompt for a password when it encounters the
sudo password?  Or do I need to explicitly ask for it some where via
CLI?

I thought I read somewhere that it reuses the ssh password, if
provided, but I use public key access, which works great.  I tried
setting
ssh_options[:auth_methods] = %w(password keyboard-interactive)

to force it to ask for an ssh password, but it didn't do that either:

 ** [deploy:update_code] exception while rolling back:
Capistrano::ConnectionError, connection failed for: floss.syr.edu
(Net::SSH::AuthenticationFailed: jhowison)
connection failed for: floss.syr.edu (Net::SSH::AuthenticationFailed:
jhowison)

I've tried setting these variables (since somewhere someone suggested
they might interfere with interactive comms)

default_run_options[:pty] = true
default_run_options[:shell] = false

But no help.

Any ideas?

Thanks,
James


--~--~---------~--~----~------------~-------~--~----~
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