# TypeError running knife bootstrap windows winrm

**URL:** <https://discourse.chef.io/t/typeerror-running-knife-bootstrap-windows-winrm/3788>\
**Category:** Chef Infra (archive)\
**Created:** [March 22, 2013, 8:58pm UTC](https://discourse.chef.io/t/typeerror-running-knife-bootstrap-windows-winrm/3788 "2013-03-22T20:58:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Bushnell](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Todd\_Bushnell](https://discourse.chef.io/u/Todd_Bushnell)\
**Post date:** [March 22, 2013, 8:58pm UTC](https://discourse.chef.io/t/typeerror-running-knife-bootstrap-windows-winrm/3788/1 "2013-03-22T20:58:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [March 22, 2013, 9:55pm UTC](https://discourse.chef.io/t/typeerror-running-knife-bootstrap-windows-winrm/3788/2 "2013-03-22T21:55:45Z")

</div>

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) ([http://sfrwin01.military.com](http://sfrwin01.military.com)) -N [sfrwin01.military.com](http://sfrwin01.military.com) ([http://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) ([http://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

---

<div class="post-metadata">

**Author:** ![Todd\_Bushnell](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Todd\_Bushnell](https://discourse.chef.io/u/Todd_Bushnell)\
**Post date:** [March 25, 2013, 3:29pm UTC](https://discourse.chef.io/t/typeerror-running-knife-bootstrap-windows-winrm/3788/3 "2013-03-25T15:29:47Z")

</div>

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](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](http://sfrwin01.military.com)xx.xxx  
> -N sfrwin01.x [http://sfrwin01.military.com](http://sfrwin01.military.com)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](http://sfrwin01.military.com)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

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [March 28, 2013, 3:32pm UTC](https://discourse.chef.io/t/typeerror-running-knife-bootstrap-windows-winrm/3788/4 "2013-03-28T15:32:25Z")

</div>

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](http://sfrwin01.xxx.xxx)) -N [sfrwin01.military.com](http://sfrwin01.military.com) ([http://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](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](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) ([mailto: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](http://sfrwin01.military.com))xx.xxx ([http://xx.xxx](http://xx.xxx)) -N sfrwin01.x ([http://sfrwin01.military.com](http://sfrwin01.military.com))xx.xxx ([http://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](http://sfrwin01.military.com))xx.xxx ([http://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
