chef-partners/azure-chef-extension

Exception Chef.Bootstrap.WindowsAzure.ChefClient has not exited on time on Chef Version 14

Opened this issue · 1 comments

Encountered this error when trying to install the extension with chef 14, tried this on the latest extension version as well as older versions. chef version 15 or 16 works just fine but there are gem conflicts with our cookbooks and we are stuck with 14 for a while.
install.cmd ran just fine, it was the enable.cmd it is having issues, full stack trace below:
`[10/11/2021 21:21:29.24] Executing: C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002\enable.cmd
[10/11/2021 21:26:30.56] Execution Complete.

Execution Output:
C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002>set CHEF_EXT_DIR=C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002\
C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002>echo C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002\
C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002
C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002>REM Installing chef-client
C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002>powershell -nologo -noprofile -executionpolicy unrestricted Import-Module C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002\bin\chef-install.psm1;Install-ChefClient
Environment variables not passed.
Downloading Chef Client ...
ModuleType Version Name ExportedCommands


Script 0.0 Omnitruck {Get-ProjectMetadata, Install-Project, install}
Installing chef from C:\Windows\TEMP\chef-client-14.15.6-1-x64.msi

Execution Error:

Number of Tries:
1Command C:\Packages\Plugins\Chef.Bootstrap.WindowsAzure.ChefClient\1210.12.110.1002\enable.cmd of Chef.Bootstrap.WindowsAzure.ChefClient has not exited on time! Killing it...
`

Any help would be appreciated, thanks!

Hi @bawenna, from the logs it seems you are using very old version of Azure-chef-extension can you please try with latest release version 1210.14.1.1.

Also chef-client 15 and under version have come to EOL on April 30 2021 you can refer to this source, we would suggest to upgrade to newer versions chef-client 16 or chef-client 17.