Jamis Thanks for the blazingly quick reply!

Here is my deploy file:

set :application, "keeps"
set :repository,  "https://svn.example.com/svn/web/dev/rails/rails_2.2/keeps 
"

# set :deploy_to, "/Library/WebServer/webapps/#{application}"
#  deploy test_server
role :sage, "sage.example.com"

#  the name generated for use when the old application 'ictr_member'  
gets backed up.
application_timestamp_backup_command = "mv /Library/WebServer/webapps/ 
keeps /Library/WebServer/webapps/keeps_" + Time.now.strftime("%Y%m%d_%H 
%M%S")
subversion_local_repository_update_command = "svn update /Users/ 
support/Documents/svnbiostat/web/dev/rails/rails_2.2/keeps"
copy_application_to_webapp_directory_command = "svn export /Users/ 
support/Documents/svnbiostat/web/dev/rails/rails_2.2/keeps /Library/ 
WebServer/webapps/keeps"
passenger_reload_application_trigger_file_command = "touch /Library/ 
WebServer/webapps/keeps/tmp/restart.txt"


## # set the ssh username
set (:user) do
   Capistrano::CLI.ui.ask "Enter ssh username:"
end


#ssh_options[:verbose] = :debug

#  deploy keeps to test deploy server, sage.
desc "deploy TESTING keeps to sage - includes backup of app first."
task :deploy_keeps_to_sage, :roles => :sage do

   #  Backup the current application with a timestamp
   run application_timestamp_backup_command

   #  update to current version of application
   run subversion_local_repository_update_command

   #  deploy non-versioned copy of current application to current web  
application directory
   run copy_application_to_webapp_directory_command

   #  restart passenger to make it reload the application you are  
updating
   run passenger_reload_application_trigger_file_command
end


On Feb 11, 2009, at 4:30 PM, Jamis Buck wrote:

>
> This looks suspicious to me:
>
> D, [2009-02-11T16:00:41.092822 #50594] DEBUG --
> net.ssh.authentication.session[aa9baa]: trying pass
> connection failed for: sage.example.com (NameError: uninitialized
> constant Net::SSH::Authentication::Methods::Pass)
>
> Can you pastie your complete deploy.rb? I suspect you've got something
> in there that shouldn't be.
>
> - Jamis
>
> On 2/11/09 3:21 PM, eabolden wrote:
>> When I upgraded to 2.5.4, capistrano (2.5.4, 2.5.3, 2.0.0) my deploy
>> fails, it works correctly with 2.5.3.
>>
>> I want to be prompted for my username and password when I type
>> $ cap deploy_keeps_to_edps
>>
>> with Capistrano 2.5.3 and 2.5.4 I use the following to prompt for
>> username:
>>
>> ## # set the ssh username
>> set (:user) do
>>  Capistrano::CLI.ui.ask "Enter ssh username:"
>> end
>>
>> with Capistrano 2.5.3, I will later be prompted for my password, with
>> Capistrano 2.5.4, I never get prompted for my password, and the  
>> deploy
>> fails.
>>
>> I then tried:
>> $ cap -p deploy_keeps_to_edps
>> This did prompt me for my password, then username, but it still
>> failed. I think my password was ignored?
>>
>> I do have a ~/.ssh/config file with user information, but I don't  
>> want
>> to use that in this case, and the user for this deploy, is not in the
>> file.
>>
>> a transcript follows, I hope someone has an idea.
>>
>> Thanks,
>>
>> Eric
>>
>>
>> ~/Documents/git_svn_projects/keeps(master) $ cap deploy_keeps_to_sage
>>  * executing `deploy_keeps_to_sage'
>>  * executing "mv /Library/WebServer/webapps/keeps /Library/WebServer/
>> webapps/keeps_20090211_160352"
>>    servers: ["sage.example.com"]
>> Enter ssh username:
>> support
>> connection failed for: sage.example.com
>> (Net::SSH::AuthenticationFailed: support)
>> ~/Documents/git_svn_projects/keeps(master) $ cap -p
>> deploy_keeps_to_sage
>> Password:
>>  * executing `deploy_keeps_to_sage'
>>  * executing "mv /Library/WebServer/webapps/keeps /Library/WebServer/
>> webapps/keeps_20090211_160412"
>>    servers: ["sage.example.com"]
>> Enter ssh username:
>> support
>> connection failed for: sage.example.com
>> (Net::SSH::AuthenticationFailed: support)
>> ~/Documents/git_svn_projects/keeps(master) $
>>
>>
>> ssh_options[:verbose] = :debug
>>
>> ~/Documents/git_svn_projects/keeps(master) $ cap -p
>> deploy_keeps_to_sage
>> Password:
>>  * executing `deploy_keeps_to_sage'
>>  * executing "mv /Library/WebServer/webapps/keeps /Library/WebServer/
>> webapps/keeps_20090211_160018"
>>    servers: ["sage.example.com"]
>> Enter ssh username:
>> support
>> D, [2009-02-11T16:00:41.006834 #50594] DEBUG --
>> net.ssh.transport.session[ab50cc]: establishing connection to
>> sage.example.com:22
>> D, [2009-02-11T16:00:41.008464 #50594] DEBUG --
>> net.ssh.transport.session[ab50cc]: connection established
>> I, [2009-02-11T16:00:41.008641 #50594]  INFO --
>> net.ssh.transport.server_version[ab4da2]: negotiating protocol  
>> version
>> D, [2009-02-11T16:00:41.024190 #50594] DEBUG --
>> net.ssh.transport.server_version[ab4da2]: remote is `SSH-2.0-
>> OpenSSH_5.1'
>> D, [2009-02-11T16:00:41.024347 #50594] DEBUG --
>> net.ssh.transport.server_version[ab4da2]: local is `SSH-2.0-Ruby/
>> Net::SSH_2.0.10 universal-darwin9.0'
>> D, [2009-02-11T16:00:41.027752 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> read 784 bytes
>> D, [2009-02-11T16:00:41.027935 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> received packet nr 0 type 20 len 780
>> I, [2009-02-11T16:00:41.028082 #50594]  INFO --
>> net.ssh.transport.algorithms[ab4ae6]: got KEXINIT from server
>> I, [2009-02-11T16:00:41.028350 #50594]  INFO --
>> net.ssh.transport.algorithms[ab4ae6]: sending KEXINIT
>> D, [2009-02-11T16:00:41.028647 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> queueing packet nr 0 type 20 len 508
>> D, [2009-02-11T16:00:41.028855 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> sent 512 bytes
>> I, [2009-02-11T16:00:41.029094 #50594]  INFO --
>> net.ssh.transport.algorithms[ab4ae6]: negotiating algorithms
>> D, [2009-02-11T16:00:41.029518 #50594] DEBUG --
>> net.ssh.transport.algorithms[ab4ae6]: negotiated:
>> * kex: diffie-hellman-group-exchange-sha1
>> * host_key: ssh-dss
>> * encryption_server: aes128-cbc
>> * encryption_client: aes128-cbc
>> * hmac_client: hmac-sha1
>> * hmac_server: hmac-sha1
>> * compression_client: none
>> * compression_server: none
>> * language_client:
>> * language_server:
>> D, [2009-02-11T16:00:41.029613 #50594] DEBUG --
>> net.ssh.transport.algorithms[ab4ae6]: exchanging keys
>> D, [2009-02-11T16:00:41.029897 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> queueing packet nr 1 type 34 len 20
>> D, [2009-02-11T16:00:41.030055 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> sent 24 bytes
>> D, [2009-02-11T16:00:41.035828 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> read 152 bytes
>> D, [2009-02-11T16:00:41.036168 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> received packet nr 1 type 31 len 148
>> D, [2009-02-11T16:00:41.054694 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> queueing packet nr 2 type 32 len 140
>> D, [2009-02-11T16:00:41.054862 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> sent 144 bytes
>> D, [2009-02-11T16:00:41.067351 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> read 656 bytes
>> D, [2009-02-11T16:00:41.067713 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> received packet nr 2 type 33 len 636
>> D, [2009-02-11T16:00:41.090398 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> queueing packet nr 3 type 21 len 20
>> D, [2009-02-11T16:00:41.090590 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> sent 24 bytes
>> D, [2009-02-11T16:00:41.090777 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> received packet nr 3 type 21 len 12
>> D, [2009-02-11T16:00:41.091242 #50594] DEBUG --
>> net.ssh.authentication.session[aa9baa]: beginning authentication of
>> `support'
>> D, [2009-02-11T16:00:41.091465 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> queueing packet nr 4 type 5 len 28
>> D, [2009-02-11T16:00:41.091611 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> sent 52 bytes
>> D, [2009-02-11T16:00:41.092293 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> read 52 bytes
>> D, [2009-02-11T16:00:41.092580 #50594] DEBUG -- tcpsocket[ab4f1e]:
>> received packet nr 4 type 6 len 28
>> D, [2009-02-11T16:00:41.092822 #50594] DEBUG --
>> net.ssh.authentication.session[aa9baa]: trying pass
>> connection failed for: sage.example.com (NameError: uninitialized
>> constant Net::SSH::Authentication::Methods::Pass)
>>
>>
>>
>>
>> ~/Documents/git_svn_projects/keeps(master) $ cap deploy_keeps_to_sage
>>  * executing `deploy_keeps_to_sage'
>>  * executing "mv /Library/WebServer/webapps/keeps /Library/WebServer/
>> webapps/keeps_20090211_160210"
>>    servers: ["sage.example.com"]
>> Enter ssh username:
>> support
>> D, [2009-02-11T16:02:13.948132 #50646] DEBUG --
>> net.ssh.transport.session[ab5f4a]: establishing connection to
>> sage.example.com:22
>> D, [2009-02-11T16:02:13.949844 #50646] DEBUG --
>> net.ssh.transport.session[ab5f4a]: connection established
>> I, [2009-02-11T16:02:13.950012 #50646]  INFO --
>> net.ssh.transport.server_version[ab5c20]: negotiating protocol  
>> version
>> D, [2009-02-11T16:02:13.965661 #50646] DEBUG --
>> net.ssh.transport.server_version[ab5c20]: remote is `SSH-2.0-
>> OpenSSH_5.1'
>> D, [2009-02-11T16:02:13.965801 #50646] DEBUG --
>> net.ssh.transport.server_version[ab5c20]: local is `SSH-2.0-Ruby/
>> Net::SSH_2.0.10 universal-darwin9.0'
>> D, [2009-02-11T16:02:13.969169 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> read 784 bytes
>> D, [2009-02-11T16:02:13.969372 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> received packet nr 0 type 20 len 780
>> I, [2009-02-11T16:02:13.969522 #50646]  INFO --
>> net.ssh.transport.algorithms[ab5964]: got KEXINIT from server
>> I, [2009-02-11T16:02:13.969734 #50646]  INFO --
>> net.ssh.transport.algorithms[ab5964]: sending KEXINIT
>> D, [2009-02-11T16:02:13.970052 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> queueing packet nr 0 type 20 len 508
>> D, [2009-02-11T16:02:13.970273 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> sent 512 bytes
>> I, [2009-02-11T16:02:13.970419 #50646]  INFO --
>> net.ssh.transport.algorithms[ab5964]: negotiating algorithms
>> D, [2009-02-11T16:02:13.970724 #50646] DEBUG --
>> net.ssh.transport.algorithms[ab5964]: negotiated:
>> * kex: diffie-hellman-group-exchange-sha1
>> * host_key: ssh-dss
>> * encryption_server: aes128-cbc
>> * encryption_client: aes128-cbc
>> * hmac_client: hmac-sha1
>> * hmac_server: hmac-sha1
>> * compression_client: none
>> * compression_server: none
>> * language_client:
>> * language_server:
>> D, [2009-02-11T16:02:13.970836 #50646] DEBUG --
>> net.ssh.transport.algorithms[ab5964]: exchanging keys
>> D, [2009-02-11T16:02:13.971100 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> queueing packet nr 1 type 34 len 20
>> D, [2009-02-11T16:02:13.971250 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> sent 24 bytes
>> D, [2009-02-11T16:02:13.976992 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> read 152 bytes
>> D, [2009-02-11T16:02:13.977264 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> received packet nr 1 type 31 len 148
>> D, [2009-02-11T16:02:13.996000 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> queueing packet nr 2 type 32 len 140
>> D, [2009-02-11T16:02:13.996263 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> sent 144 bytes
>> D, [2009-02-11T16:02:14.008774 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> read 656 bytes
>> D, [2009-02-11T16:02:14.009141 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> received packet nr 2 type 33 len 636
>> D, [2009-02-11T16:02:14.031428 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> queueing packet nr 3 type 21 len 20
>> D, [2009-02-11T16:02:14.031635 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> sent 24 bytes
>> D, [2009-02-11T16:02:14.031807 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> received packet nr 3 type 21 len 12
>> D, [2009-02-11T16:02:14.032217 #50646] DEBUG --
>> net.ssh.authentication.session[aaa92e]: beginning authentication of
>> `support'
>> D, [2009-02-11T16:02:14.032388 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> queueing packet nr 4 type 5 len 28
>> D, [2009-02-11T16:02:14.032514 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> sent 52 bytes
>> D, [2009-02-11T16:02:14.033160 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> read 52 bytes
>> D, [2009-02-11T16:02:14.033437 #50646] DEBUG -- tcpsocket[ab5d9c]:
>> received packet nr 4 type 6 len 28
>> D, [2009-02-11T16:02:14.033842 #50646] DEBUG --
>> net.ssh.authentication.session[aaa92e]: trying pass
>> connection failed for: sage.example.com (NameError: uninitialized
>> constant Net::SSH::Authentication::Methods::Pass)
>>
>>
>>>
>
>
> >


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