# Chef bootstrap stops and completes after rendering chunk steps

**URL:** <https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356>\
**Category:** Chef Infra (archive)\
**Created:** [September 8, 2016, 7:04pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356 "2016-09-08T19:04:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 8, 2016, 7:04pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/1 "2016-09-08T19:04:41Z")

</div>

Chef bootstrap has been working for all our Windows servers so far except for one, where the bootstrap process stops and ends after the rendering chunk steps. There are no errors, it just completes without finishing the bootstrap process. Any ideas?

`Bootstrapping Chef on 10.1.12.40 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 1 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 2 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 3 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 4 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 5 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 6 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 7 10.1.12.40 Rendering "C:\Users\BUILDE~1.COR\AppData\Local\Temp\bootstrap-17620-1473358455.bat" chunk 8`

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 8, 2016, 8:00pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/2 "2016-09-08T20:00:25Z")

</div>

What version of windows is the node running?

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 8, 2016, 8:05pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/3 "2016-09-08T20:05:01Z")

</div>

Windows Server 2008 Standard SP2

---

<div class="post-metadata">

**Author:** ![nclemons](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/nclemons/32/3374_2.png) [@nclemons](https://discourse.chef.io/u/nclemons)\
**Post date:** [September 8, 2016, 9:53pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/4 "2016-09-08T21:53:30Z")

</div>

I ran into that at $JOB-2; restarting the Windows Remote Management (WinRM) service helped.

Nathan Clemons  
DevOps Engineer  
Moxie Cloud Services (MCS)

O +1.425.467.5075  
M +1.360.861.6291  
E [nclemons@gomoxie.com](mailto:nclemons@gomoxie.com)  
W [www.gomoxie.com](http://www.gomoxie.com)[http://www.gomoxie.com/](http://www.gomoxie.com/)

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 9, 2016, 1:54am UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/5 "2016-09-09T01:54:29Z")

</div>

I restarted the winrm service and unfortunately that did not help.

```
net stop winrm
net start winrm
```

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 9, 2016, 7:51pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/6 "2016-09-09T19:51:43Z")

</div>

This is something we have seen in windows server 2008 but not 2008 R2. However we released knife-windows 1.6.0 earlier this week and it includes many fixes to various edge cases, including this break on 2008 (r1), and may impact your issue.

Do note that knife-windows 1.6.0 uses newer winrm v2 gems that may not be activated in a chef-dk environment. So there are really 2 options you have to use it today:

1: Use a chef-dk prerelease from our current channel which bundles knife-windows 1.6.0:

`curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -c current -P chefdk -v 0.18.13`

or

`. { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -channel current -project chefdk -version 0.18.13`

2: Use `bundle exec` with a `Gemfile` including `gem "knife-windows"`

If you are not familiar with bundler workflows, I recommend the first option.

Matt

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 12, 2016, 9:30pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/7 "2016-09-12T21:30:52Z")

</div>

Hi Matt,

Thanks the reply and tip about chef-dk pre-release. I think for now we’re going to work with the teams using Server 2008 Standard to upgrade their systems to a more supported platform. If that does not work then we’ll re-visit the pre-release chef-dk idea.

Question: when will the pre-release code you mention be part of an official release version?

Keith

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 12, 2016, 9:34pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/8 "2016-09-12T21:34:00Z")

</div>

Should be next week. It won’t be that exact version but likely the last successful build from this thursday or friday.

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 30, 2016, 7:02pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/9 "2016-09-30T19:02:30Z")

</div>

Dumb question: does the latest ChefDK need to be installed on the Chef Linux server or the Windows PCs where we run the bootstrap commands?

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 30, 2016, 7:04pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/10 "2016-09-30T19:04:51Z")

</div>

You want to install it on the PC where you bootstrap from.

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 30, 2016, 7:06pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/11 "2016-09-30T19:06:21Z")

</div>

OK, I installed the latest ChefDK on our Server 2012 machine and still getting same issue when trying to bootstrap Server 2008 Standard machine.

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 30, 2016, 9:05pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/12 "2016-09-30T21:05:37Z")

</div>

if you run:

```auto
knife winrm -m 10.1.12.40 "dir %TEMP%" -x administrator -P your_password

```

Do you see the .bat file listed?

If so, what happens if you run:

```auto
knife winrm -m 10.1.12.40 "%TEMP%/that_bat_file.bat" -x administrator -P your_password

```

if nothing at all, then try:

```auto
knife winrm -m 10.1.12.40 "$env:TEMP/that_bat_file.bat" -x administrator -P your_password --winrm-shell powershell

```

I’m curious here if the PSRP protocol used for the powershell shell will get around this.

Note that if you are running this in a powershell console, make sire to preceed the above `$env` with a tick(`).

If that still does not work, try running the .bat file directly RDP’d to the box and let me know what you find. Thanks!

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [September 30, 2016, 9:30pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/14 "2016-09-30T21:30:38Z")

</div>

I ran the first command on the Server 2012 machine and see 3 .bat files:

bootstrap-10632-1473384594.bat  
bootstrap-132-1473385395.bat  
bootstrap-2740-1473366715.bat

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [September 30, 2016, 9:35pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/15 "2016-09-30T21:35:15Z")

</div>

I’m asking to run them from the 2012 server where you are trying to bootstrap from. The three files are probably from 3 different attempts. I’d use the newest one.

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [October 1, 2016, 12:49am UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/16 "2016-10-01T00:49:19Z")

</div>

Hi Matt,

Sorry for the delay. I could only run the .bat file on the 2008 server via RDP. Here is the error output:

```
C:\Users\BUILDE~1.COR\AppData\Local\Temp>(echo.{"run_list":[]}) 1>C:\chef\first-boot.json
Starting chef to bootstrap the node...

C:\Users\BUILDE~1.COR\AppData\Local\Temp>SET "PATH=C:\oracle\product\client\x86\11.2.0.3\bin;C:\orac
le\product\11.2.0\client_x86_1\bin;c:\oracle\product\11.2.0\client_x64_1\bin;C:\Windows\system32;C:\
Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\Win
dowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Mi
crosoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\ruby\bin;C
:\opscode\chef\bin;C:\opscode\chef\embedded\bin"

C:\Users\BUILDE~1.COR\AppData\Local\Temp>chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json

Starting Chef Client, version 12.14.89
[2016-09-30T17:37:44-07:00] INFO: ***Chef 12.14.89***
[2016-09-30T17:37:44-07:00] INFO: Platform: x64-mingw32
[2016-09-30T17:37:44-07:00] INFO: Chef-client pid: 4920
[2016-09-30T17:37:53-07:00] ERROR: SSL Validation failure connecting to host: server.domain.com - 
SSL_connect returned=1 errno=0 state=error: certificate verify failed

================================================================================
Chef encountered an error attempting to load the node data for "10.1.12.40"
================================================================================

Unexpected Error:

```

* * *

```
OpenSSL::SSL::SSLError: SSL Error connecting to https://server.domain.com/organizations/wa
g-bellevue/nodes/10.1.12.40 - SSL_connect returned=1 errno=0 state=error: certificate verify failed

Platform:

```

* * *

```
x64-mingw32

Running handlers:
[2016-09-30T17:37:53-07:00] ERROR: Running exception handlers
Running handlers complete
[2016-09-30T17:37:53-07:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 08 seconds
[2016-09-30T17:37:53-07:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2016-09-30T17:37:53-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-09-30T17:37:53-07:00] FATAL: OpenSSL::SSL::SSLError: SSL Error connecting to https://server.domain.com/organizations/wag-bellevue/nodes/10.1.12.40- SSL_connect returned=1 errno=0
 state=error: certificate verify failed
```

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [October 1, 2016, 2:28am UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/17 "2016-10-01T02:28:57Z")

</div>

Ok I fired up a 2008 standard vm and reproduced this. Its a regression introduced in winrmv2 and only affects 2008 standard. 2008 standard does not work well with a UTF-8 codepage and we need to revert to 437. We will fix this in the next release.

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [October 3, 2016, 5:27pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/18 "2016-10-03T17:27:19Z")

</div>

Thanks Matt. Fortunately, most of our servers are Server 2012 and 2008 R2, and we’ve already successfully bootstrapped 150+ nodes. We just have a small number that are running 2008 Standard and will try those again when the fix is out.

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [October 13, 2016, 3:05am UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/19 "2016-10-13T03:05:55Z")

</div>

Hi Matt, is there an ETA for when the fix for Server 2008 Standard will be released? We have a work item tracking this issue and was curious about a timeline. Thanks!

---

<div class="post-metadata">

**Author:** ![Matt\_Wrock](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_wrock/32/3394_2.png) [@Matt\_Wrock](https://discourse.chef.io/u/Matt_Wrock)\
**Post date:** [October 14, 2016, 12:46am UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/20 "2016-10-14T00:46:51Z")

</div>

There is a v1.7.0 coming up [https://github.com/chef/knife-windows/pull/401](https://github.com/chef/knife-windows/pull/401) that fixes this. For Windows 2008, you just need to add `--winrm-codepage 437`

---

<div class="post-metadata">

**Author:** ![kswem](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kswem](https://discourse.chef.io/u/kswem)\
**Post date:** [October 14, 2016, 8:17pm UTC](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356/21 "2016-10-14T20:17:30Z")

</div>

How/where do I add `--winrm-codepage 437`? Do I add this to the bootstrap process?

[Next page](https://discourse.chef.io/t/chef-bootstrap-stops-and-completes-after-rendering-chunk-steps/9356.md?page=2)
