Closed robinbanbury closed 1 year ago
Thank you for the very detailed description.
Please be aware that there have been issues with the Windows 10 SDK component recently, caused by errors on Microsoft side (https://github.com/jberezanski/ChocolateyPackages/issues/107). The symptoms were different than in your case (the component simply failed to install with a clear error message), but still, you can try again now that the issue has been fixed.
Assuming your problem does not go away, I'd like to ask you to provide the (numerous) log files generated by the Visual Studio Installer: $Env:TEMP\chocolatey\dd_*.log
. They usually are enough to identify any problems with the VS install itself.
The fact that the Chocolatey log just stops is curious indeed and yes, it may indicate that choco.exe is being killed by something. Now, I'm not familiar with Packer, but perhaps by correlating the VS installer logs with the Packer log it might be possible to determine whether the VS installer continues running in the background.
choco install visualstudio2019buildtools && choco install visualstudio2019-workload-vctools
I noticed you do not pass -y
to choco.exe, which is normally required on a default install. I assume you are enabling the allowGlobalConfirmation
feature - is that correct? What other Chocolatey settings do you change from the default values?
I wonder if there is a timeout
Yes, there is:
--timeout, --execution-timeout=VALUE
CommandExecutionTimeout (in seconds) - The time to allow a command to
finish before timing out. Overrides the default execution timeout in the
configuration of 2700 seconds. '0' for infinite starting in 0.10.4.
I believe, however, that choco.exe would write a clear message if the timeout was reached (but I'm not 100% sure about it). You can try with some large value, such as --execution-timeout 108000
(it's what I use on slow virtual machines when testing the VS packages).
Thanks for your excellent suggestions. I'll try using the high timeout value today, and collect the log files you requested.
Sadly, the Windows 10 SDK fix released by Microsoft doesn't appear to have fixed the problem for me.
I assume you are enabling the allowGlobalConfirmation feature - is that correct?
Yes, using choco feature enable -n=allowGlobalConfirmation
Using a long timeout didn't help either...
I've collected the content of the dd_*.log
files. There's a lot of output (140+ files, ~50k lines), which I can send if required. I've analysed the log files and added my thoughts below.
The last line of logging from Packer regarding the Visual Studio Build Tools installation is the following:
2021/06/15 08:47:10 ui: ^[[0;32m googlecompute: Download of vs_BuildTools.exe (1.4 MB) completed.^[[0m
2021/06/15 08:47:13 ui: ^[[0;32m googlecompute: Hashes match.^[[0m
2021/06/15 08:47:13 ui: ^[[0;32m googlecompute: Installing visualstudio2019buildtools...^[[0m
2021/06/15 08:47:13 ui: ^[[0;32m googlecompute:^[[0m
2021/06/15 08:51:50 packer-builder-googlecompute plugin: [INFO] command 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'};. c:/Windows/Temp/packer-ps-env-vars-60c86862-8b03-6abb-1fcd-4ddb9cbacce3.ps1; &'c:/Windows/Temp/script-60c86862-be9b-e6af-3d50-42c429c5013c.ps1'; exit $LastExitCode }"' exited with code: 0
2021/06/15 08:51:50 packer-builder-googlecompute plugin: [INFO] RPC endpoint: Communicator ended with: 0
The last logs I can see in any of the dd_*.log
files is at 08:48:40, in the following files:
dd_installer_elevated_20210615084732.log.FullName
:
Content of file dd_installer_elevated_20210615084732.log.FullName^[[0m
[0e98:0001][2021-06-15T08:47:32] Setting the locale to en-US.^[[0m
[0e98:0001][2021-06-15T08:47:32] Saving the current locale (en-US) to user.json.^[[0m
[0e98:0001][2021-06-15T08:47:32] Setting the telemetry services^[[0m
[0e98:0003][2021-06-15T08:47:32] Creating a new telemetry service based on the previously serialized session.^[[0m
[0e98:0001][2021-06-15T08:47:32] Visual Studio Installer Version: 2.10.2174^[[0m
[0e98:0001][2021-06-15T08:47:32] Raw Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" elevate --activityId 46df08b0-03f2-4684-8f25-88175f760256 --locale en-US --pid 1640 --pipeName 522c11a6998d4d95926e7f2e4003cd42 --pipeSecret f404fc004065483597922146e1a4d057 --serializedSession "{\"IsOptedIn\":true,\"HostName\":\"Default\",\"AppInsightsInstrumentationKey\":\"f144292e-e3b2-4011-ac90-20e5c03fbce5\",\"AsimovInstrumentationKey\":\"AIF-312cbd79-9dbb-4c48-a7da-3cc2a931cb70\",\"AppId\":1000,\"UserId\":\"4c97eeb1-35ed-4a64-b65b-70dcaed57ae3\",\"Id\":\"1e7ce905-03fc-439e-8470-3402261edd6c\",\"ProcessStartTime\":637593436453999712}"^[[0m
[0e98:0001][2021-06-15T08:47:33] Parsed command line options: elevate --activityId 46df08b0-03f2-4684-8f25-88175f760256 --locale en-US --pid 1640 --pipeName 522c11a6998d4d95926e7f2e4003cd42 --pipeSecret f404fc004065483597922146e1a4d057 --serializedSession "{\"IsOptedIn\":true,\"HostName\":\"Default\",\"AppInsightsInstrumentationKey\":\"f144292e-e3b2-4011-ac90-20e5c03fbce5\",\"AsimovInstrumentationKey\":\"AIF-312cbd79-9dbb-4c48-a7da-3cc2a931cb70\",\"AppId\":1000,\"UserId\":\"4c97eeb1-35ed-4a64-b65b-70dcaed57ae3\",\"Id\":\"1e7ce905-03fc-439e-8470-3402261edd6c\",\"ProcessStartTime\":637593436453999712}"^[[0m
...
[0e98:0006][2021-06-15T08:48:40] BEGIN: Caching package 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=16.10.31205.252'^[[0m
[0e98:0006][2021-06-15T08:48:40] END: Caching package 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=16.10.31205.252'^[[0m
[0e98:0006][2021-06-15T08:48:40] BEGIN: Installing "Win10SDK_10.0.19041,version=10.0.19041.1"^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Installing Win10SDK_10.0.19041^[[0m
[0e98:0006][2021-06-15T08:48:40] Package Log: C:\Users\packer_user\AppData\Local\Temp\chocolatey\dd_setup_20210615084733_128_Win10SDK_10.0.19041.log^[[0m
[0e98:0006][2021-06-15T08:48:40] Executing: "C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.19041,version=10.0.19041.1\winsdkinstaller.exe" SetupExe=winsdksetup.exe LogFile="C:\Users\packer_user\AppData\Local\Temp\chocolatey\dd_setup_20210615084733_128_Win10SDK_10.0.19041.log" SetupLogFolder=windowssdk CeipSetting="on" ProgramFilesOrSharedDriveSdkPath="C:\Program Files (x86)\Windows Kits\10" SetupParameters="/features OptionId.AvrfExternal OptionId.UWPManaged OptionId.WindowsSoftwareLogoToolkit OptionId.SigningTools OptionId.UWPLocalized OptionId.UWPCPP OptionId.DesktopCPPx64 OptionId.DesktopCPPx86 OptionID.DesktopCPPARM OptionID.DesktopCPPARM64 OptionId.MSIInstallTools /quiet /norestart"^[[0m
dd_setup_20210615084733.log.FullName
:
[0e98:000d][2021-06-15T08:47:33] Setup Engine v2.10.2174, Microsoft Windows NT 10.0.17763.0^[[0m
[0e98:000d][2021-06-15T08:47:33] Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" elevate --activityId 46df08b0-03f2-4684-8f25-88175f760256 --locale en-US --pid 1640 --pipeName 522c11a6998d4d95926e7f2e4003cd42 --pipeSecret f404fc004065483597922146e1a4d057 --serializedSession "{\"IsOptedIn\":true,\"HostName\":\"Default\",\"AppInsightsInstrumentationKey\":\"f144292e-e3b2-4011-ac90-20e5c03fbce5\",\"AsimovInstrumentationKey\":\"AIF-312cbd79-9dbb-4c48-a7da-3cc2a931cb70\",\"AppId\":1000,\"UserId\":\"4c97eeb1-35ed-4a64-b65b-70dcaed57ae3\",\"Id\":\"1e7ce905-03fc-439e-8470-3402261edd6c\",\"ProcessStartTime\":637593436453999712}"^[[0m
...
[0e98:0006][2021-06-15T08:48:40] BEGIN: Caching package 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=16.10.31205.252'^[[0m
[0e98:0006][2021-06-15T08:48:40] END: Caching package 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=16.10.31205.252'^[[0m
[0e98:0006][2021-06-15T08:48:40] BEGIN: Installing "Win10SDK_10.0.19041,version=10.0.19041.1"^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Installing Win10SDK_10.0.19041^[[0m
[0e98:0006][2021-06-15T08:48:40] Package Log: C:\Users\packer_user\AppData\Local\Temp\chocolatey\dd_setup_20210615084733_128_Win10SDK_10.0.19041.log^[[0m
[0e98:0006][2021-06-15T08:48:40] Executing: "C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.19041,version=10.0.19041.1\winsdkinstaller.exe" SetupExe=winsdksetup.exe LogFile="C:\Users\packer_user\AppData\Local\Temp\chocolatey\dd_setup_20210615084733_128_Win10SDK_10.0.19041.log" SetupLogFolder=windowssdk CeipSetting="on" ProgramFilesOrSharedDriveSdkPath="C:\Program Files (x86)\Windows Kits\10" SetupParameters="/features OptionId.AvrfExternal OptionId.UWPManaged OptionId.WindowsSoftwareLogoToolkit OptionId.SigningTools OptionId.UWPLocalized OptionId.UWPCPP OptionId.DesktopCPPx64 OptionId.DesktopCPPx86 OptionID.DesktopCPPARM OptionID.DesktopCPPARM64 OptionId.MSIInstallTools /quiet /norestart"^[[0m
dd_setup_20210615084733_125_Microsoft.VC.14.29.16.10.CodeAnalysis.Extensions.X86.base.log.FullName
:
[0e98:0006][2021-06-15T08:48:40] Opening the package for processing^[[0m
[0e98:0006][2021-06-15T08:48:40] Using package payload to get the embedded manifest^[[0m
[0e98:0006][2021-06-15T08:48:40] Getting list of files within the package^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/cfgpersist.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/cfgpersist.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\cfgpersist.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/cfgpersist.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\cfgpersist.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\cfgpersist.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/ConcurrencyCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/ConcurrencyCheck.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\ConcurrencyCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/ConcurrencyCheck.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\ConcurrencyCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\ConcurrencyCheck.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/CppCoreCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/CppCoreCheck.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\CppCoreCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/CppCoreCheck.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\CppCoreCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\CppCoreCheck.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/EnumIndex.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/EnumIndex.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\EnumIndex.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/EnumIndex.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\EnumIndex.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\EnumIndex.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/EspXEngine.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/EspXEngine.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\EspXEngine.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/EspXEngine.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\EspXEngine.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\EspXEngine.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/HResultCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/HResultCheck.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\HResultCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/HResultCheck.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\HResultCheck.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\HResultCheck.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/VariantClear.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/VariantClear.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\VariantClear.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Tools/MSVC/14.29.30037/bin/HostX86/x86/VariantClear.dll to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\VariantClear.dll^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\VariantClear.dll'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Package executed successfully. Return code: 0^[[0m
dd_setup_20210615084733_126_Microsoft.VisualCpp.CodeAnalysis.Extensions.X86.log.FullName
:
[0e98:0006][2021-06-15T08:48:40] Opening the package for processing^[[0m
[0e98:0006][2021-06-15T08:48:40] Using package payload to get the embedded manifest^[[0m
[0e98:0006][2021-06-15T08:48:40] Getting list of files within the package^[[0m
[0e98:0006][2021-06-15T08:48:40] Package executed successfully. Return code: 0^[[0m
dd_setup_20210615084733_127_Microsoft.VisualCpp.CodeAnalysis.Extensions.log.FullName
:
[0e98:0006][2021-06-15T08:48:40] Opening the package for processing^[[0m
[0e98:0006][2021-06-15T08:48:40] Using package payload to get the embedded manifest^[[0m
[0e98:0006][2021-06-15T08:48:40] Getting list of files within the package^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/Msbuild/Microsoft/VC/v160/Microsoft.CodeAnalysis.Extensions.props^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/Msbuild/Microsoft/VC/v160/Microsoft.CodeAnalysis.Extensions.props to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Msbuild\Microsoft\VC\v160\Microsoft.CodeAnalysis.Extensions.props^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/Msbuild/Microsoft/VC/v160/Microsoft.CodeAnalysis.Extensions.props to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Msbuild\Microsoft\VC\v160\Microsoft.CodeAnalysis.Extensions.props^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Msbuild\Microsoft\VC\v160\Microsoft.CodeAnalysis.Extensions.props'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/Msbuild/Microsoft/VC/v160/Microsoft.CodeAnalysis.Extensions.targets^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/Msbuild/Microsoft/VC/v160/Microsoft.CodeAnalysis.Extensions.targets to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Msbuild\Microsoft\VC\v160\Microsoft.CodeAnalysis.Extensions.targets^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/Msbuild/Microsoft/VC/v160/Microsoft.CodeAnalysis.Extensions.targets to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Msbuild\Microsoft\VC\v160\Microsoft.CodeAnalysis.Extensions.targets^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Msbuild\Microsoft\VC\v160\Microsoft.CodeAnalysis.Extensions.targets'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Processing file /Contents/VC/Auxiliary/VS/include/CppCoreCheck/warnings.h^[[0m
[0e98:0006][2021-06-15T08:48:40] Started: Copying file /Contents/VC/Auxiliary/VS/include/CppCoreCheck/warnings.h to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\VS\include\CppCoreCheck\warnings.h^[[0m
[0e98:0006][2021-06-15T08:48:40] Completed: Copying file /Contents/VC/Auxiliary/VS/include/CppCoreCheck/warnings.h to C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\VS\include\CppCoreCheck\warnings.h^[[0m
[0e98:0006][2021-06-15T08:48:40] Timestamp updated for file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\VS\include\CppCoreCheck\warnings.h'.^[[0m
[0e98:0006][2021-06-15T08:48:40] Package executed successfully. Return code: 0^[[0m
dd_setup_20210615084733_128_Win10SDK_10.0.19041.log.FullName
:
[6/15/2021 08:48:40] Launching 'C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.19041,version=10.0.19041.1\winsdksetup.exe' with arguments '/features OptionId.AvrfExternal OptionId.UWPManaged OptionId.WindowsSoftwareLogoToolkit OptionId.SigningTools OptionId.UWPLocalized OptionId.UWPCPP OptionId.DesktopCPPx64 OptionId.DesktopCPPx86 OptionID.DesktopCPPARM OptionID.DesktopCPPARM64 OptionId.MSIInstallTools /quiet /norestart /Ceip on /InstallPath "C:\Program Files (x86)\Windows Kits\10" /Log "C:\Users\packer_user\AppData\Local\Temp\chocolatey\windowssdk\dd_setup_20210615084733_128_Win10SDK_10.0.19041.winsdksetup_1.log"'.^[[0m
[6/15/2021 08:48:40] Waiting for child process to terminate...^[[0m
So again it seems the problem is with the Windows 10 SDK installation, and no logging for several minutes before the silent failure. The other components seem to install ok - the log files look like they return an exit code of 0, a few are are 'waiting for setup process to complete'.
Is that helpful?
I think whatever the problem was with the Windows 10 SDK installer, it has since been resolved. The workload installs successfully, at least on machines I manage.
I'm trying to install the VCTools workload (Desktop development with C++) using the
visualstudio2019buildtools
/visualstudio2019-workload-vctools
Chocolatey packages, but getting silent failures. My aim is to use Packer for the build, to have a completely hands off / automated VM image build process.The issue seems to be with the Windows 10 SDK component. On Windows 2012, this component seems to install ok, but on Windows 2019 it fails silently.
I've tried the following commands to install the components/workloads I need:
In each case, the Windows 10 SDK is not installed, but the failure is silent.
Debug
Packer logs from a failed install (Windows 2019):
The script returns exits code 0, but the VS Build Tools did not install all required components.
Indeed, when I spin up an instance of the resulting VM image, I can see several messages like the following in Event Viewer, after startup:
So it looks like the installer is still trying to continue the installation, or fix itself somehow?
Compare that with a successful installation log, on Windows 2012:
Compared to the unsuccessful installation, we get confirmation that
visualstudio2019buildtools has been installed
.The logs from the unsuccessful installation seem to stop suddenly, without recording a success/failure. I wonder if there is a timeout, or if the process is being moved into the background / killed?
Looking at the chocolatey logs:
Unsuccessful install
^^ that last line is the end of the log.
Successful install
I can post detailed steps to reproduce, if required.