Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The installation of visualstudio2022buildtools failed (installer exit code: 5003) #154

Open
Lyvin-zhang opened this issue Sep 2, 2024 · 3 comments

Comments

@Lyvin-zhang
Copy link

2024-09-02 15:41:31,899 15592 [INFO ] - Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\67252b8f3ad21d66adcf554f43f232db\vs_bootstrapper_d15\vs_setup_bootstrapper.json...
2024-09-02 15:41:31,901 15592 [INFO ] -
2024-09-02 15:41:31,906 15592 [DEBUG] - Command ["C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\visualstudio2022buildtools\117.11.1\vs_BuildTools.exe" --quiet --channelUri https://aka.ms/vs/17/release/channel --wait --productId Microsoft.VisualStudio.Product.BuildTools --norestart --channelId VisualStudio.17.Release] exited with '5003'.
2024-09-02 15:41:31,908 15592 [DEBUG] - Finishing 'Start-VSChocolateyProcessAsAdmin'
2024-09-02 15:41:31,909 15592 [DEBUG] - Exit code returned from Start-VSChocolateyProcessAsAdmin: '5003'
2024-09-02 15:41:31,910 15592 [DEBUG] - [20240902 15:41:31.910] Looking for still running VS installer processes
2024-09-02 15:41:31,920 15592 [DEBUG] - Did not find any running VS installer processes.
2024-09-02 15:41:31,921 15592 [DEBUG] - [20240902 15:41:31.921] Looking for vs_installer.windows.exe processes spawned by the uninstaller
2024-09-02 15:41:31,924 15592 [DEBUG] - Did not find any running vs_installer.windows.exe processes.
2024-09-02 15:41:31,926 15592 [DEBUG] - Setting Env:ChocolateyExitCode to '5003'
2024-09-02 15:41:31,937 15592 [INFO ] - VERBOSE: Examining Visual Studio Installer log files (C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\dd_*.log)
2024-09-02 15:41:31,948 15592 [INFO ] - VERBOSE: No ISO to dismount
2024-09-02 15:41:31,953 15592 [ERROR] - ERROR: The installation of visualstudio2022buildtools failed (installer exit code: 5003).
2024-09-02 15:41:31,998 15592 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'.
2024-09-02 15:41:32,006 15592 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2024-09-02 15:41:32,129 15592 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2024-09-02 15:41:32,244 15592 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools'
2024-09-02 15:41:32,246 15592 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\visualstudio2022buildtools.nupkg'
with checksum '5505CA3B62BBA21DCA84EC3FDDBB971A'
2024-09-02 15:41:32,247 15592 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\visualstudio2022buildtools.nuspec'
with checksum '45C784DCA977B65A6CD44578CEF23998'
2024-09-02 15:41:32,248 15592 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\tools.skipAutoUninstall'
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2024-09-02 15:41:32,249 15592 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\tools\ChocolateyInstall.ps1'
with checksum '458E812170A3A836EF413A415F873A89'
2024-09-02 15:41:32,250 15592 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\tools\ChocolateyUninstall.ps1'
with checksum 'E83778E19BD6694D1E82BB41265D3EB5'
2024-09-02 15:41:32,263 15592 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\visualstudio2022buildtools.117.11.1.arguments".
2024-09-02 15:41:32,263 15592 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\visualstudio2022buildtools.117.11.1.extra".
2024-09-02 15:41:32,264 15592 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\visualstudio2022buildtools.117.11.1.version".
2024-09-02 15:41:32,265 15592 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\visualstudio2022buildtools.117.11.1.sxs".
2024-09-02 15:41:32,266 15592 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\visualstudio2022buildtools.117.11.1.pin".
2024-09-02 15:41:32,266 15592 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\visualstudio2022buildtools.117.11.1.deploymentLocation".
2024-09-02 15:41:32,270 15592 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\visualstudio2022buildtools".
2024-09-02 15:41:32,276 15592 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2024-09-02 15:41:32,278 15592 [ERROR] - The install of visualstudio2022buildtools was NOT successful.
2024-09-02 15:41:32,282 15592 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\tools\ChocolateyInstall.ps1'.
See log for details.
2024-09-02 15:41:32,292 15592 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad\visualstudio2022buildtools".
2024-09-02 15:41:32,294 15592 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\visualstudio2022buildtools to C:\ProgramData\chocolatey\lib-bad\visualstudio2022buildtools\117.11.1
2024-09-02 15:41:32,297 15592 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools'
to 'C:\ProgramData\chocolatey\lib-bad\visualstudio2022buildtools\117.11.1'
2024-09-02 15:41:34,327 15592 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2024-09-02 15:41:34,332 15592 [INFO ] -
2024-09-02 15:41:34,337 15592 [ERROR] - Failures
2024-09-02 15:41:34,343 15592 [ERROR] - - visualstudio2022buildtools (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2022buildtools\tools\ChocolateyInstall.ps1'.
See log for details.
2024-09-02 15:41:34,350 15592 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2024-09-02 15:41:34,354 15592 [DEBUG] - Exiting with -1

@Lyvin-zhang
Copy link
Author

We are using a Windows container
docker images is mcr.microsoft.com/windows/server:ltsc2022
dotnet 4.8 install success
Dependencies install success

@Lyvin-zhang
Copy link
Author

help me

@jberezanski
Copy link
Owner

You need to examine the log files generated by the Visual Studio Installer and look for the failure reason there. The logs are written to the C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey directory; the file names start with "dd_".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants