Skip to content
New issue

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

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

Already on GitHub? # to your account

visualstudio may not finish installing all components #1222

Closed
Ana06 opened this issue Dec 17, 2024 · 0 comments · Fixed by #1250
Closed

visualstudio may not finish installing all components #1222

Ana06 opened this issue Dec 17, 2024 · 0 comments · Fixed by #1250
Assignees
Labels
🐛 bug Something isn't working 🌀 FLARE-VM A package or feature to be used by FLARE-VM ❔ discussion Further discussion is needed

Comments

@Ana06
Copy link
Member

Ana06 commented Dec 17, 2024

Details

I get the a timeout error (more than 45 minutes) when installing visualstudio.vm, which comes from running the following command:

choco install visualstudio2022community --params "--add Microsoft.VisualStudio.Component.CoreEditor --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended"

The package still gets installed correctly. I suspect this is because of the bug chocolatey/choco#3487 (which in this case is a feature 😅).

This is the relevant part of the output:

Progress: 100% - Completed download of C:\Users\flare\AppData\Local\ChocoCache\visualstudio2022community\117.12.2\vs_Community.exe (4.23 MB).
Download of vs_Community.exe (4.23 MB) completed.
Hashes match.
Installing visualstudio2022community...

Chocolatey timed out waiting for the command to finish. The timeout
 specified (or the default value) was '2700' seconds. Perhaps try a
 higher `--execution-timeout`? See `choco -h` for details.
  visualstudio2022community may be able to be automatically uninstalled.
The install of visualstudio2022community was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2022community\tools\ChocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - visualstudio2022community (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2022community\tools\ChocolateyInstall.ps1'.
 See log for details.

The error persist if I install visualstudio.vm with --execution-timeout 6000, likely because visualstudio2022community is not installed as a dependency because of the arguments that we need to provide. We could add the --execution-timeout 6000 to the visualstudio2022community installation command, not sure if that would fix it. This change could also increase the daily running time. @mandiant/vms any ideas? Is there a better way to pass the arguments?

@Ana06 Ana06 added 🐛 bug Something isn't working ❔ discussion Further discussion is needed 🌀 FLARE-VM A package or feature to be used by FLARE-VM labels Dec 17, 2024
@Ana06 Ana06 added this to the FLARE-VM 2025 Q1-P1 milestone Dec 17, 2024
@Ana06 Ana06 self-assigned this Jan 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🐛 bug Something isn't working 🌀 FLARE-VM A package or feature to be used by FLARE-VM ❔ discussion Further discussion is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant