title: chef-client run fails to sync cookbooks with EOFError: end of file reached
body: <p>When running a cookbook with chef-client, the run fails with this error:
    EOFError: end of file reached</p>
  
  <p>I'm fairly new to this, and I don't know what this means.  The cookbook is a very simple wrapper around the community cookbook which should be good.
  <a href="https://supermarket.chef.io/cookbooks/powershell" rel="nofollow">https://supermarket.chef.io/cookbooks/powershell</a></p>
  
  <p>Here's the error again:</p>
  
  <pre><code>Synchronizing Cookbooks:
    - windows (1.37.0)
    - ms_dotnet2 (0.0.0)
    - ms_dotnet45 (0.0.0)
    - powershell (3.1.0)
    - chef_handler (1.1.8)
    - ewe-powershell (0.1.0)
  
    ================================================================================
    Error Syncing Cookbooks:
    ================================================================================
  
    Unexpected Error:
    -----------------
    EOFError: end of file reached
  
  
    Running handlers:
  [2015-11-18T08:30:15-08:00] ERROR: Running exception handlers
    Running handlers complete
  [2015-11-18T08:30:15-08:00] ERROR: Exception handlers complete
    Chef Client failed. 0 resources updated in 24 seconds
  [2015-11-18T08:30:15-08:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
  [2015-11-18T08:30:15-08:00] FATAL: EOFError: end of file reached
  
  C:\WINDOWS\system32&gt;
  </code></pre>
  
  <p>and here's the stacktrace:</p>
  
  <pre><code>Generated at 2015-11-18 08:30:15 -0800
  EOFError: end of file reached
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/protocol.rb:153:in `rbuf_fill'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/protocol.rb:134:in `readuntil'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/protocol.rb:144:in `readline'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http/response.rb:39:in `read_status_line'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http/response.rb:28:in `read_new'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:1412:in `block in transport_request'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:1409:in `catch'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:1409:in `transport_request'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:1382:in `request'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:1375:in `block in request'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:852:in `start'
  C:/opscode/chef/embedded/lib/ruby/2.0.0/net/http.rb:1373:in `request'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http/basic_client.rb:65:in `request'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http.rb:264:in `block in send_http_request'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http.rb:298:in `block in retrying_http_errors'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http.rb:296:in `loop'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http.rb:296:in `retrying_http_errors'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http.rb:260:in `send_http_request'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/http.rb:170:in `streaming_request'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/rest.rb:180:in `streaming_request'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/rest.rb:118:in `get'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/cookbook/synchronizer.rb:277:in `download_file'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/cookbook/synchronizer.rb:254:in `sync_file'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/cookbook/synchronizer.rb:152:in `block (2 levels) in sync_cookbooks'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/util/threaded_job_queue.rb:52:in `call'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/util/threaded_job_queue.rb:52:in `block (3 levels) in process'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/util/threaded_job_queue.rb:50:in `loop'
  C:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/chef-12.5.1-universal-mingw32/lib/chef/util/threaded_job_queue.rb:50:in `block (2 levels) in process'
  </code></pre>
  
  <p>Does this mean there is some EOFError in protocol.rb ?
  But that's part of the community cookbook, which I thought looked pretty solid.</p>