Details
Description
From help.opscode.com, [1] occasionally knife may throw an EPERM error when running under cygwin. I am unsure if this is specific to a version of Ruby or Cygwin, but we could work around it by retrying on this error as other projects have [2].
Waiting for sshd/usr/lib/ruby/gems/1.8/gems/knife-ec2-0.5.4/lib/chef/knife/ec2_server_create.rb:156:in `initialize': Operation not permitted - connect(2) (Errno::EPERM) from /usr/lib/ruby/gems/1.8/gems/knife-ec2-0.5.4/lib/chef/knife/ec2_server_create.rb:156:in `new' from /usr/lib/ruby/gems/1.8/gems/knife-ec2-0.5.4/lib/chef/knife/ec2_server_create.rb:156:in `tcp_test_ssh' from /usr/lib/ruby/gems/1.8/gems/knife-ec2-0.5.4/lib/chef/knife/ec2_server_create.rb:256:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/knife.rb:391:in `run_with_pretty_exceptions' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/knife.rb:166:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/application/knife.rb:128:in `run' from /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/knife:25 from /usr/bin/knife:19:in `load' from /usr/bin/knife:19
[1] http://help.opscode.com/discussions/problems/547-error-errnoeperm-operation-not-permitted-connect2
[2] http://groups.google.com/group/selenium-developer-activity/browse_thread/thread/8da8e378f1fa43b5/7227408b065e823a?lnk=raot
This has been fixed:
https://github.com/opscode/knife-ec2/commit/c8eeb48314cdba980f5885cdc1b54331b9b8ca50
Verion 0.5.6 of the gem has also been released.