Closed airom closed 5 years ago
Hey there. In Chef Infra Client 15 we completely rewrote the bootstrap functionality of Chef to use train engine. That rewrite fixed a large number of long standing issues and moves us to a much more robust connection method for bootstrapping. There is high likelihood that this issue has been resolved with that rewrite. I'm going to close this out at this point, but if you encounter the problem with Chef Infra Client 15 please open it up again.
Hi,
Every time running:
fails with :
The machine: AWS EC2 instance Windows 2012 R2 Here is the knife with -VV option:
I did some research and i found this information that may be helpfull:
1- I found that there is a hardcoded limit in knife-windows on the amount of data to be transfer.This is limited to 5000. I had to change that get to the server during my debugging. This limit is located in knife-windows/lib/chef/knife/bootstrap_windows_base.rb between lines 383 and 401. i changed it on mine to be able to move forward 2- After i was not able to perform winrm i hit a limit with shell execution when cmd is called by knife over winrm. This is limit that exists in cmd and (apparently is hardcoded).
Is it possible to switch from cmd to Powerhsell as executioner for knife bootstrap (i know knife winrm i can specify the shell type) Any thoughts?