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

Install tools script gets timed out when installing visualstudio2019-workload-vctools on slower internet connection #4525

Open
przemo20 opened this issue Dec 29, 2024 · 1 comment
Labels

Comments

@przemo20
Copy link

przemo20 commented Dec 29, 2024

Version

v23.5.0

Platform

Microsoft Windows NT 10.0.26100.0 x64

Subsystem

No response

What steps will reproduce the bug?

Example steps to reproduce:

  1. Install node.js on a clean system (so visualstudio2019-workload-vctools isn't already installed) and check the option to automatically install the necessary tools during the installation
  2. When the installation is done, the “Install Additional Tools for Node.js” window will show up – press any button, accept UAC prompt and wait for ~50 minutes

How often does it reproduce? Is there a required condition?

  • Slow internet connection. In my case, I have ~6 Mbps internet. You can use a program like NetLimiter (paid software) to limit the download speed for some process (to like 450 KB/s).
  • Computer speed is another factor that may affect it.
  • visualstudio2019-workload-vctools not already installed (if it is already installed, then the installation won't take more than 45 minutes)

What is the expected behavior? Why is that the expected behavior?

The visualstudio2019-workload-vctools installation doesn't automatically abort if it was running for 45 minutes.

What do you see instead?

The visualstudio2019-workload-vctools installation failed. Although when I check CPU usage in Task Manager and/or network activity, this is still installing/downloading? Not sure. A little off-topic here (or maybe not?), pressing the ENTER key when the “Type ENTER to exit:” message is present doesn't work – it just enters a new line, but doesn't close the PowerShell window. (Yet another sign that this is still installing?)

Screenshots:
Image
Image
(you can ignore the last two error messages about not being able to start another instance – I was trying to get a screenshot of Visual Studio Installer – sometimes when I opened it, I would see there that the installation of Visual Studio Build Tools 2019 failed with an option to Retry or Uninstall/Remove (there was also a button to show error details, but if I remember correctly, it showed nothing), but I couldn't reproduce it now; now – after I closed PowerShell window – I only saw that installation was paused with an option to Resume)

Copy-paste of all text in the PowerShell window: log.txt
chocolatey.log file: chocolatey.log

Additional information

Changing choco upgrade -y python visualstudio2019-workload-vctools; to choco upgrade -y python visualstudio2019-workload-vctools --execution-timeout=0; in the install_tools.bat script “fixes” the issue.

@marco-ippolito
Copy link
Member

Hi I'll move this issue to the help repo since its not strictly related to Node.js

@marco-ippolito marco-ippolito transferred this issue from nodejs/node Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants