[Capistrano] Re: SSH connection fails on windows (add_key method)
Sorry, wrong Information. It isn't working on this machine after adding the ssh_options[:paranoid] = false option. just the add_key method works. I was remote on the wrong box as i tested again. after entering my password i get an SocketError. Full error here: http://pastie.caboo.se/59791 On 8 Mai, 10:00, dweinand [EMAIL PROTECTED] wrote: Hello, i'm getting an error on my windows box if i try to run capistrano from this laptop. this is the error: host-key-verifier.rb:64:in `add_key': undefined method `mkdir' for File:Class (NoMethodError) the error occurs if i try to run cap with my windows ruby installation, but on the same machine calling cap from cygwin, the same error will be raised. interesting is, that on my other windows box everything works smooth, in both environments (windows and cygwin) after searching the group i found the ssh_options[:paranoid] = false option. after setting this option it works on my laptop too. any hints whats going wrong on my machine? Versions CygWin: Capistrano v1.4.1 ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-cygwin] Versions Windows: Capistrano v1.4.1 ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] full error message provided with the following pasties: //windowshttp://pastie.caboo.se/59786 //cygwinhttp://pastie.caboo.se/59787 --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~--~~~~--~~--~--~---
[Capistrano] Re: SSH connection fails on windows (add_key method)
Doing the things described here won't fix the problem. http://rubyforge.org/forum/forum.php?thread_id=13883forum_id=1177 Is it a problem with Capistrano or net-ssh? is Capistrano using an different implementation? On 8 Mai, 10:18, dweinand [EMAIL PROTECTED] wrote: Sorry, wrong Information. It isn't working on this machine after adding the ssh_options[:paranoid] = false option. just the add_key method works. I was remote on the wrong box as i tested again. after entering my password i get an SocketError. Full error here:http://pastie.caboo.se/59791 On 8 Mai, 10:00, dweinand [EMAIL PROTECTED] wrote: Hello, i'm getting an error on my windows box if i try to run capistrano from this laptop. this is the error: host-key-verifier.rb:64:in `add_key': undefined method `mkdir' for File:Class (NoMethodError) the error occurs if i try to run cap with my windows ruby installation, but on the same machine calling cap from cygwin, the same error will be raised. interesting is, that on my other windows box everything works smooth, in both environments (windows and cygwin) after searching the group i found the ssh_options[:paranoid] = false option. after setting this option it works on my laptop too. any hints whats going wrong on my machine? Versions CygWin: Capistrano v1.4.1 ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-cygwin] Versions Windows: Capistrano v1.4.1 ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] full error message provided with the following pasties: //windowshttp://pastie.caboo.se/59786 //cygwinhttp://pastie.caboo.se/59787 --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~--~~~~--~~--~--~---
[Capistrano] Re: SSH connection fails on windows (add_key method)
Hi, Could you try the suggestion I've just made in that thread? I believe you should also be able to fix this problem without editing your services file, by changing line 108 of net/ssh/transport/session.rb to: ip_address = Socket.getnameinfo(addr, Socket::NI_NUMERICHOST | Socket::NI_NUMERICSERV).first (i.e. adding the NI_NUMERICSERV flag). It looks like that might be the SocketError you're seeing. Cheers, Chris. On 08/05/07, dweinand [EMAIL PROTECTED] wrote: Doing the things described here won't fix the problem. http://rubyforge.org/forum/forum.php?thread_id=13883forum_id=1177 Is it a problem with Capistrano or net-ssh? is Capistrano using an different implementation? On 8 Mai, 10:18, dweinand [EMAIL PROTECTED] wrote: Sorry, wrong Information. It isn't working on this machine after adding the ssh_options[:paranoid] = false option. just the add_key method works. I was remote on the wrong box as i tested again. after entering my password i get an SocketError. Full error here:http://pastie.caboo.se/59791 On 8 Mai, 10:00, dweinand [EMAIL PROTECTED] wrote: Hello, i'm getting an error on my windows box if i try to run capistrano from this laptop. this is the error: host-key-verifier.rb:64:in `add_key': undefined method `mkdir' for File:Class (NoMethodError) the error occurs if i try to run cap with my windows ruby installation, but on the same machine calling cap from cygwin, the same error will be raised. interesting is, that on my other windows box everything works smooth, in both environments (windows and cygwin) after searching the group i found the ssh_options[:paranoid] = false option. after setting this option it works on my laptop too. any hints whats going wrong on my machine? Versions CygWin: Capistrano v1.4.1 ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-cygwin] Versions Windows: Capistrano v1.4.1 ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] full error message provided with the following pasties: //windowshttp://pastie.caboo.se/59786 //cygwinhttp://pastie.caboo.se/59787 --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~--~~~~--~~--~--~---
[Capistrano] Re: SSH connection fails on windows (add_key method)
Thank you, just found your Thread and wanted to tell it here. But you've been faster. Thank you for the fix. Works now on this machine. Great Work! On May 8, 12:16 pm, Chris Andrews [EMAIL PROTECTED] wrote: Hi, Could you try the suggestion I've just made in that thread? I believe you should also be able to fix this problem without editing your services file, by changing line 108 of net/ssh/transport/session.rb to: ip_address = Socket.getnameinfo(addr, Socket::NI_NUMERICHOST | Socket::NI_NUMERICSERV).first (i.e. adding the NI_NUMERICSERV flag). It looks like that might be the SocketError you're seeing. Cheers, Chris. On 08/05/07, dweinand [EMAIL PROTECTED] wrote: Doing the things described here won't fix the problem. http://rubyforge.org/forum/forum.php?thread_id=13883forum_id=1177 Is it a problem with Capistrano or net-ssh? is Capistrano using an different implementation? On 8 Mai, 10:18, dweinand [EMAIL PROTECTED] wrote: Sorry, wrong Information. It isn't working on this machine after adding the ssh_options[:paranoid] = false option. just the add_key method works. I was remote on the wrong box as i tested again. after entering my password i get an SocketError. Full error here:http://pastie.caboo.se/59791 On 8 Mai, 10:00, dweinand [EMAIL PROTECTED] wrote: Hello, i'm getting an error on my windows box if i try to run capistrano from this laptop. this is the error: host-key-verifier.rb:64:in `add_key': undefined method `mkdir' for File:Class (NoMethodError) the error occurs if i try to run cap with my windows ruby installation, but on the same machine calling cap from cygwin, the same error will be raised. interesting is, that on my other windows box everything works smooth, in both environments (windows and cygwin) after searching the group i found the ssh_options[:paranoid] = false option. after setting this option it works on my laptop too. any hints whats going wrong on my machine? Versions CygWin: Capistrano v1.4.1 ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-cygwin] Versions Windows: Capistrano v1.4.1 ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] full error message provided with the following pasties: //windowshttp://pastie.caboo.se/59786 //cygwinhttp://pastie.caboo.se/59787 --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~--~~~~--~~--~--~---
[Capistrano] Re: SSH connection fails on windows (add_key method)
Ah, thanks for testing that out. This getnameinfo issue on Windows seems to be causing a few problems that have been reported here, and this seems a reasonable fix -- it doesn't cause trouble on either OSX or Linux. Chris. On 08/05/07, dweinand [EMAIL PROTECTED] wrote: Thank you, just found your Thread and wanted to tell it here. But you've been faster. Thank you for the fix. Works now on this machine. Great Work! On May 8, 12:16 pm, Chris Andrews [EMAIL PROTECTED] wrote: Hi, Could you try the suggestion I've just made in that thread? I believe you should also be able to fix this problem without editing your services file, by changing line 108 of net/ssh/transport/session.rb to: ip_address = Socket.getnameinfo(addr, Socket::NI_NUMERICHOST | Socket::NI_NUMERICSERV).first (i.e. adding the NI_NUMERICSERV flag). It looks like that might be the SocketError you're seeing. Cheers, Chris. On 08/05/07, dweinand [EMAIL PROTECTED] wrote: Doing the things described here won't fix the problem. http://rubyforge.org/forum/forum.php?thread_id=13883forum_id=1177 Is it a problem with Capistrano or net-ssh? is Capistrano using an different implementation? On 8 Mai, 10:18, dweinand [EMAIL PROTECTED] wrote: Sorry, wrong Information. It isn't working on this machine after adding the ssh_options[:paranoid] = false option. just the add_key method works. I was remote on the wrong box as i tested again. after entering my password i get an SocketError. Full error here:http://pastie.caboo.se/59791 On 8 Mai, 10:00, dweinand [EMAIL PROTECTED] wrote: Hello, i'm getting an error on my windows box if i try to run capistrano from this laptop. this is the error: host-key-verifier.rb:64:in `add_key': undefined method `mkdir' for File:Class (NoMethodError) the error occurs if i try to run cap with my windows ruby installation, but on the same machine calling cap from cygwin, the same error will be raised. interesting is, that on my other windows box everything works smooth, in both environments (windows and cygwin) after searching the group i found the ssh_options[:paranoid] = false option. after setting this option it works on my laptop too. any hints whats going wrong on my machine? Versions CygWin: Capistrano v1.4.1 ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-cygwin] Versions Windows: Capistrano v1.4.1 ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] full error message provided with the following pasties: //windowshttp://pastie.caboo.se/59786 //cygwinhttp://pastie.caboo.se/59787 --~--~-~--~~~---~--~~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~--~~~~--~~--~--~---