TypeError running knife bootstrap windows winrm

Trying to Chef my first Windows server (Windows is my kryptonite) and
immediately hit a wall:

knife bootstrap windows winrm sfrwin01.military.com -N
sfrwin01.military.com-x Root
WARNING: Could not load IOV methods. Check your GSSAPI C library for an
update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an
update
Bootstrapping Chef on sfrwin01.military.com
Enter your password:
ERROR: TypeError: no implicit conversion from nil to integer

Assume maybe it’s a bad gem version or something, but searches come up
snakeyes. Appreciate any tips.

todd

Can you post the debug logs and stack trace from running with the -VV (very verbose) option?

I'm not familiar with the plugin, I can tell you that it's probably executing code like this:

%w[ foo bar ][nil]

(trying to look up an element on an array, but using nil as the index).

--
Daniel DeLeo

On Friday, March 22, 2013 at 1:58 PM, Todd Bushnell wrote:

Trying to Chef my first Windows server (Windows is my kryptonite) and immediately hit a wall:

knife bootstrap windows winrm sfrwin01.military.com (http://sfrwin01.military.com) -N sfrwin01.military.com (http://sfrwin01.military.com) -x Root
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
Bootstrapping Chef on sfrwin01.military.com (http://sfrwin01.military.com)
Enter your password:
ERROR: TypeError: no implicit conversion from nil to integer

Assume maybe it's a bad gem version or something, but searches come up snakeyes. Appreciate any tips.

todd

Thanks Daniel. Here's the same command with -VV

$ knife bootstrap windows winrm sfrwin01.xxx.xxx -N
sfrwin01.military.com-x Root -VV
WARNING: Could not load IOV methods. Check your GSSAPI C library for an
update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an
update
Bootstrapping Chef on sfrwin01.xxx.xxx
DEBUG: Looking for bootstrap template in
/Users/tbushnell/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.12/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in
/Users/tbushnell/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.12/lib/chef/knife/bootstrap
DEBUG: Adding sfrwin01.xxx.xxx
Enter your password:
DEBUG: :session => :init
ERROR: TypeError: no implicit conversion from nil to integer

On Fri, Mar 22, 2013 at 2:55 PM, Daniel DeLeo dan@kallistec.com wrote:

Can you post the debug logs and stack trace from running with the -VV
(very verbose) option?

I'm not familiar with the plugin, I can tell you that it's probably
executing code like this:

%w[ foo bar ][nil]

(trying to look up an element on an array, but using nil as the index).

--
Daniel DeLeo

On Friday, March 22, 2013 at 1:58 PM, Todd Bushnell wrote:

Trying to Chef my first Windows server (Windows is my kryptonite) and
immediately hit a wall:

knife bootstrap windows winrm sfrwin01.x http://sfrwin01.military.comxx.xxx
-N sfrwin01.x http://sfrwin01.military.comxx.xxx -x Root
WARNING: Could not load IOV methods. Check your GSSAPI C library for an
update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an
update
Bootstrapping Chef on sfrwin01.x http://sfrwin01.military.comxx.xxx
Enter your password:
ERROR: TypeError: no implicit conversion from nil to integer

Assume maybe it's a bad gem version or something, but searches come up
snakeyes. Appreciate any tips.

todd

Is there a stacktrace as well?

--
Daniel DeLeo

On Monday, March 25, 2013 at 8:29 AM, Todd Bushnell wrote:

Thanks Daniel. Here's the same command with -VV

$ knife bootstrap windows winrm sfrwin01.xxx.xxx (http://sfrwin01.xxx.xxx) -N sfrwin01.military.com (http://sfrwin01.military.com) -x Root -VV
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
Bootstrapping Chef on sfrwin01.xxx.xxx (http://sfrwin01.xxx.xxx)
DEBUG: Looking for bootstrap template in /Users/tbushnell/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.12/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /Users/tbushnell/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.12/lib/chef/knife/bootstrap
DEBUG: Adding sfrwin01.xxx.xxx (http://sfrwin01.xxx.xxx)
Enter your password:
DEBUG: :session => :init
ERROR: TypeError: no implicit conversion from nil to integer

On Fri, Mar 22, 2013 at 2:55 PM, Daniel DeLeo <dan@kallistec.com (mailto:dan@kallistec.com)> wrote:

Can you post the debug logs and stack trace from running with the -VV (very verbose) option?

I'm not familiar with the plugin, I can tell you that it's probably executing code like this:

%w[ foo bar ][nil]

(trying to look up an element on an array, but using nil as the index).

--
Daniel DeLeo

On Friday, March 22, 2013 at 1:58 PM, Todd Bushnell wrote:

Trying to Chef my first Windows server (Windows is my kryptonite) and immediately hit a wall:

knife bootstrap windows winrm sfrwin01.x (http://sfrwin01.military.com)xx.xxx (http://xx.xxx) -N sfrwin01.x (http://sfrwin01.military.com)xx.xxx (http://xx.xxx) -x Root
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
Bootstrapping Chef on sfrwin01.x (http://sfrwin01.military.com)xx.xxx (http://xx.xxx)
Enter your password:
ERROR: TypeError: no implicit conversion from nil to integer

Assume maybe it's a bad gem version or something, but searches come up snakeyes. Appreciate any tips.

todd