Doh! I just figured out why Net::SSH 1.0.10 won't work with Cap  
1.99.2. I'll get that fixed, so that cap2 final will be compatible  
with earlier Net::SSH versions.

Next week I'll be ironing out the host key verification problems in  
Net::SSH.

- Jamis

On Jun 16, 2007, at 7:27 PM, DeRailed wrote:

>
> Jamis - Just to be clear there was no issues deploying on my
> server with cap 1.4.1 and net-ssh 1.0.10. I did update net-ssh to
> 1.1.1 to solve the original class loading issue with Cap2.
>
> Sounds like rsa auth and net-ssh 1.1.1 is the ankle bitter now...
>
>
> On Jun 16, 5:37 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
>> Yup, that new error is because Net::SSH doesn't respect rsa keys in
>> the known_hosts file, if your server supports both rsa and dsa hosts.
>> It's on my "to fix" list.
>>
>> There are two ways to fix this:
>>
>> 1. Edit your known_hosts file to delete the rsa key in question, and
>> then run cap.
>>
>> 2. Edit your deploy.rb and add "ssh_options[:paranoid] = false". This
>> will disable host-key verification altogether.
>>
>> Weird, though, that you had problems with Net::SSH 1.0.10. It should
>> have worked fine.
>>
>> - Jamis
>>
>> On Jun 16, 2007, at 5:17 PM, DeRailed wrote:
>>
>>
>>
>>> Hi Jamis,
>>
>>>    Hum the plot thickens...
>>
>>>    When I initially punched in the irb commands, I got this:
>>
>>>>> gem "capistrano"
>>> => true
>>>>> require 'capistrano/ssh'
>>> => false
>>>>> p Capistrano::SSH
>>> NameError: uninitialized constant Capistrano::SSH
>>>         from (irb):7
>>
>>> So I figure something might be going on with the require net-ssh. A
>>> quick gem list
>>> showed net-ssh 1.0.10. So I updated to net-ssh 1.1.1.
>>> Went back to irb and now I get
>>
>>>>> gem 'capistrano'
>>> => true
>>>>> require 'capistrano/ssh'
>>> => true
>>>>> p Capistrano::SSH
>>> Capistrano::SSH
>>> => nil
>>
>>> The original error went away, splendid, but now I am getting this
>>> error:
>>
>>>> cap deploy:setup
>>
>>> /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/net/ssh/host- 
>>> key-
>>> verifier.rb:47:in `process_cache_miss' ...  
>>> (Net::SSH::HostKeyMismatch)
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/host-key-verifier.rb:38:in `verify'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/lenient-host-key-verifier.rb:9:in `verify'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/transport/kex/dh.rb:165:in `verify_server_key'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/transport/kex/dh.rb:232:in `exchange_keys'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/
>>> needle/
>>> lifecycle/proxy.rb:60:in `method_missing'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/transport/session.rb:182:in `exchange_keys'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/transport/session.rb:143:in `kexinit'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.1/lib/ 
>>> net/
>>> ssh/transport/session.rb:101:in `initialize'
>>>          ... 42 levels...
>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/ 
>>> lib/
>>> capistrano/cli/execute.rb:31:in `execute!'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/ 
>>> lib/
>>> capistrano/cli/execute.rb:14:in `execute'
>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/ 
>>> bin/
>>> cap:4
>>>         from /usr/local/bin/cap:16
>>
>>> So I figure perhaps my know_hosts file was out of date and blew it
>>> away. I then proceeded to
>>> ssh into that host directly and a new entry was created in the
>>> know_hosts file. Great.
>>
>>> Re-issued the deploy:setup and I am still getting the same error...
>>> Doh !!
>>
>>> Any clues ?
>>
>>> BTW Running locally on OSX deploying to Linux box
>>> Ruby V 1.8.4
>>> Old Cap 1.4.1
>>> New Cap 1.99.2
>>
>>> On Jun 16, 11:56 am, Jamis Buck <[EMAIL PROTECTED]> wrote:
>>>> That's...odd. If you fire up irb, and type:
>>
>>>>    gem "capistrano"
>>>>    require 'capistrano/ssh'
>>>>    p Capistrano::SSH
>>
>>>> What happens? What version of Ruby are you using? What version of
>>>> Capistrano did you have installed previously? And finally, what OS
>>>> are you using locally?
>>
>>>> - Jamis
>>
>>>> On Jun 16, 2007, at 10:39 AM, DeRailed wrote:
>>
>>>>> Hi,
>>
>>>>>    Just upgraded my install to cap2. I am getting the following
>>>>> error
>>>>> on this
>>>>>    command:
>>
>>>>>> cap deploy:setup
>>
>>>>>    What am I missing ?
>>
>>>>> /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/lib/ 
>>>>> capistrano/
>>>>> configuration/connections.rb:20:in `connect_to': uninitialized
>>>>> constant
>>>>> Capistrano::Configuration::Connections::DefaultConnectionFactory:: 
>>>>> SS
>>>>> H
>>>>> (NameError)
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/connections.rb:94:in
>>>>> `establish_connection_to'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/connections.rb:94:in
>>>>> `establish_connection_to'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/connections.rb:59:in
>>>>> `establish_connections_to'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/connections.rb:59:in
>>>>> `establish_connections_to'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/connections.rb:84:in `execute_on_servers'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/actions/invocation.rb:50:in `run'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/configuration/namespaces.rb:179:in `method_missing'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/recipes/deploy.rb:98:in `load'
>>>>>          ... 6 levels...
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/cli/execute.rb:31:in `execute!'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> lib/
>>>>> capistrano/cli/execute.rb:14:in `execute'
>>>>>         from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.99.2/
>>>>> bin/
>>>>> cap:4
>>>>>         from /usr/local/bin/cap:16
>
>
> >


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