|
|
Re: Password isn't being asked anymore: msg#00100
lang.ruby.capistrano.general
|
Subject: |
Re: Password isn't being asked anymore |
After debugging cap.... the problem is that in my case the
password of the gateway user isn't the same as the password of the user
on the server behind the gateway.
When cap connects to the gateway server, it asks for the password of
the gateway user. Once given, the value of options[:password] (which
was Proc.new { self.class.password_prompt }) will be overwritten by the
password entered via the keyboard. Upon successful login to the
gateway, cap then connects to the server behind the gateway. Again it
will need to ask for the password, however, options[:password] is
overwritten, and it will therefor (incorrectly) try to login with the
password given for the gateway server.
I've created a patch with a fairly simple solution:
http://dev.rubyonrails.org/ticket/10533
Cheers,
Lawrence
Hi,
So last friday I'd set up perfectly fine running capfile + deploy.rb
scripts, but due to a server reboot over the weekend my mongrel servers
weren't up anymore. Thinking I could simply start them again with cap
deploy:start I suddenly am unable to connect to the server.
I'm connecting via a gateway. Friday I only had to the enter the
password to the gateway once, and it was remembered for subsequent
calls to cap. It would however always ask me for the password to the
server behind the gateway.
Now however, every time I try cap (in vain), I have to enter the
password to the gateway server each and every time, and when it tries
to connect to the server which is behind the gateway it does not
ask for a password.
I tried ssh'ing manually, and that works fine, no problem.
Any idea why cap is failing on me suddenly??
I've tried ssh_options[:verbose] = :debug, but that's not really
helpful cq unreadable gibberish to me.... are there any other options??
(are the ssh_options btw applied to session to the gateway, and/or from
the gateway to the app server?)
* executing `deploy:check'
* executing "test -d /var/www/myproject/releases"
servers: ["10.0.0.20"]
* establishing connection to gateway `myuser-D4qZEMI14/jqlBn2x/YWAg@xxxxxxxxxxxxxxxx'
starting connection to gateway `myuser-D4qZEMI14/jqlBn2x/YWAg@xxxxxxxxxxxxxxxx'
Password:
gateway connection established
* establishing connection to `10.0.0.20' via gateway
Net::SSH::AuthenticationFailed: capuser
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/session.rb:143:in
`init
ialize'
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh.rb:47:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh.rb:47:in
`start'
c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/ssh.rb:99:in
`con
nect'
Cheers,
Lawrence
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to capistrano-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
|
|
|