Closed kriston closed 5 years ago
Is Windows installed in a regular path, i.e. C:\Windows
?
"\Microsoft" sounds like a path with spaces is being used somewhere, like C:\Program Files (x86)\Microsoft Windows\
or such, but I can't imagine why that would be happening as part of the installation.
Where is %TEMP% on your system?
Would also be helpful to see your bootstrap command and also to know what version of windows you are trying to bootstrap.
%TEMP% is at C:\User\Administrator\AppData\Local\Temp It's Windows Server 2012 (non-R2). knife bootstrap -VV windows winrm -N ${HOST} ${IP} --winrm-user="localhost\administrator" --run-list role[${ROLE}]
This machine has Visual Studio Enterprise 2015, nodejs, and a pretty huge PATH. I don't really get why knife winrm would choke on a PATH statement with spaces in it or why it feels the need to use that variable, anyway.
Can you run that command with -V -V
and share the debug output?
I have tried today to reproduce this issue on Windows 2012 with knife-windows v2.0.1
but unable to reproduce.
@kriston Any updates from your side regarding above comments? Else can we close this issue?
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.
I'm satisfied with the outcome especially with the news that it had been rewritten, though I will not be able to confirm this issue is resolved.
Bootstrapping Windows 2012 ends with \Microsoft was unexpected at this time. This happens with 1.7.1 and 1.7.0.
This is the output when it attempts this step in the bootstrap: