X Tutup
The Wayback Machine - https://web.archive.org/web/20230402141445/https://github.com/nodejs/node/issues/44336
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

v16 Win64 installer succeeds but hangs in choco powershell script 'Channels' section when NoUpdate status #44336

Closed
OzBob opened this issue Aug 22, 2022 · 7 comments

Comments

@OzBob
Copy link

OzBob commented Aug 22, 2022

Version

v16.13.2

Platform

Windows NT 10.0.22000.0 x64

Subsystem

win11

What steps will reproduce the bug?

Win 11, VS2022 Preview installed, install win64 Node/npm

PowerShell step starts with:

[5340:0008][2022-08-22T12:26:45] Download requested: https://go.microsoft.com/fwlink/?linkid=2066144
[5340:0012][2022-08-22T12:26:45] Attempting download 'https://go.microsoft.com/fwlink/?linkid=2066144' using engine 'WebClient'
[5340:0012][2022-08-22T12:26:46] Uri 'https://go.microsoft.com/fwlink/?linkid=2066144' redirected to 'https://vsstartpagenewsfeed.azureedge.net/news/vs'
[5340:0012][2022-08-22T12:26:46] Download of 'https://go.microsoft.com/fwlink/?linkid=2066144' succeeded using engine 'WebClient'
Warning: [5340:0004][2022-08-22T12:26:46] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\___\catalog.previous.json'
[5340:0009][2022-08-22T12:26:46] Status changed to NoUpdate
[5340:0007][2022-08-22T12:26:46] Setup Engine v3.3.2180, Microsoft Windows NT 10.0.22000.0
[5340:0007][2022-08-22T12:26:46] Command line: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" --includeRecommended --norestart --quiet --add Microsoft.VisualStudio.Workload.VCTools
...

Ends with:

[5340:0007][2022-08-22T12:26:48] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22000.0' is not in the supported version range '[6.1,6.2)'.
...
[5340:0008][2022-08-22T12:26:49] No restart manager available. Assuming no reboot required for instance state.
...
[5340:0009][2022-08-22T12:26:49] Try to get the token in the 'in memory' cache for aka.ms
[5340:0009][2022-08-22T12:26:49] Download requested: https://aka.ms/vs/channels
[5340:0027][2022-08-22T12:26:49] Attempting download 'https://aka.ms/vs/channels' using engine 'WebClient'
[5340:0027][2022-08-22T12:26:49] Uri 'https://aka.ms/vs/channels' redirected to 'https://download.visualstudio.microsoft.com/download/pr/186a7701-1c3b-4975-8d27-467db59251c6/1bb4746bf0ff680d487244435a9c0710/channels.json'
[5340:0027][2022-08-22T12:26:50] ManifestVerifier Result: Success
[5340:0027][2022-08-22T12:26:50] Download of 'https://aka.ms/vs/channels' succeeded using engine 'WebClient'
[5340:0027][2022-08-22T12:26:50] ManifestVerifier Result: Success
[5340:0027][2022-08-22T12:26:50] ManifestVerifier Result: Success
[5340:0004][2022-08-22T12:26:50] Status changed to NoUpdate

The installer then hangs

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

Rerunning the 'install additional tools for node.js' solves the issue.

What is the expected behavior?

on 'Status changed to NoUpdate' the installer should exit

What do you see instead?

Installer hangs in the Powershell installer.

Additional information

No response

@OzBob OzBob changed the title v16 Win64 installer succeeds but hangs in choco powershell script 'WebClient' section when NoUpdate status v16 Win64 installer succeeds but hangs in choco powershell script 'Channels' section when NoUpdate status Aug 22, 2022
@ricktheartist
Copy link

Same thing just happened to me 5 minutes ago. As I was writing this, PowerShell finally continued after hanging for a long, long time.

@Codie-Petersen
Copy link

Same thing just happened to me 5 minutes ago. As I was writing this, PowerShell finally continued after hanging for a long, long time.

Same for me, but has not continued yet. But good to know it has a chance at continuing.

Log

  • [26b0:0011][2022-09-01T15:03:04] Notifying VMs with the updated selections: GroupSelected - Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows10SDK.19041 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde
  • [26b0:0003][2022-09-01T15:03:04] No restart manager available. Assuming no reboot required for instance state.
  • [26b0:0003][2022-09-01T15:03:04] No restart manager available. Assuming no reboot required for instance state.
  • [26b0:000f][2022-09-01T15:03:04] Creating a UnelevatedProductModifier to modify the following packages: Microsoft.VisualStudio.Product.BuildTools Microsoft.VisualStudio.Workload.MSBuildTools Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.Roslyn.Compiler Microsoft.Component.MSBuild Microsoft.VisualStudio.Component.CoreBuildTools Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows10SDK.19041 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core
  • [26b0:000f][2022-09-01T15:03:04] Created a UnelevatedProductModifier
  • [26b0:000f][2022-09-01T15:03:04] Decorating UnelevatedProductModifier with UnelevatedInstallerTelemetryDecorator
  • Warning: [26b0:0010][2022-09-01T15:03:04] The operation was canceled.
  • Warning: [26b0:000e][2022-09-01T15:03:04] The operation was canceled.
  • [26b0:000e][2022-09-01T15:03:04] ManifestVerifier Result: Success
  • [26b0:000e][2022-09-01T15:03:04] Try to get the token in the 'in memory' cache for aka.ms
  • [26b0:000e][2022-09-01T15:03:04] Download requested: https://aka.ms/vs/channels
  • [26b0:0023][2022-09-01T15:03:04] Attempting download 'https://aka.ms/vs/channels' using engine 'WebClient'
  • [26b0:0023][2022-09-01T15:03:04] Uri 'https://aka.ms/vs/channels' redirected to 'https://download.visualstudio.microsoft.com/download/pr/22e71a6f-ffd9-4c8d-a2c9-34c4a311bd7e/a3c9bb41f841e83a9aeaadb7dc8838d7/channels.json'
  • [26b0:0023][2022-09-01T15:03:04] ManifestVerifier Result: Success
  • [26b0:0023][2022-09-01T15:03:04] Download of 'https://aka.ms/vs/channels' succeeded using engine 'WebClient'
  • [26b0:0023][2022-09-01T15:03:04] ManifestVerifier Result: Success
  • [26b0:0023][2022-09-01T15:03:04] ManifestVerifier Result: Success
  • [26b0:000b][2022-09-01T15:03:04] Status changed to NoUpdate

@aadmiral
Copy link

aadmiral commented Sep 6, 2022

Just experienced this issue, hung for 5-10 minutes then finished and prompted for closure. Hang in there I guess, to anybody else experiencing this.

@travisterrell
Copy link

travisterrell commented Sep 7, 2022

Just experienced this issue, hung for 5-10 minutes then finished and prompted for closure. Hang in there I guess, to anybody else experiencing this.

Must be just the right time; here I was with it just under a day later. I'm pretty sure that's what "NoUpdate" actually indicates; that it's disabling the verbose output we'd been seeing on the screen previously. Without a message of any sort, it leaves one to wonder, though!

Update: Well, I hung in there, and after what felt like a lifetime*, it finally completed, ending with the Chocolatey Install/Upgrade job summary. So yeah, it's basically just handling silent mode installation.

*Actually only like 25 minutes. I could see in Task Manager that PowerShell was actually chugging away; particularly disk usage, which suggested some installation was happening. And then Visual Studio Installer silently did something intensive, followed by "Windows® Installer", "Windows Modules Installer Worker", etc.) So basically, if nothing is visibly happening and you're afraid it's hung, just check task manager.

@ekalcrench
Copy link

I have waiting for about 20 minutes and nothing happen. And then I check task manager and nothing to process. So I close it (Ctrl + C) and it has already finished. Maybe a little bug

@reiniermybeats
Copy link

reiniermybeats commented Oct 14, 2022

Update: After a while I randomly switched between two of my open powershell windows and the script finished and closed its own window.


My install paused at this point:

[12cc:0011][2022-10-14T12:38:46] Package Microsoft.Net.4.8.FullRedist is not applicable: The current OS Version '10.0.22621.0' is not in the supported version range '[6.1.1,10.0.17763]'.
[12cc:0011][2022-10-14T12:38:46] Package Microsoft.VisualStudio.NuGet.PowershellBindingRedirect is not applicable: The current OS Version '10.0.22621.0' is not in the supported version range '[6.1,6.2)'.
Warning: [12cc:0011][2022-10-14T12:38:46] No previous catalog found at 'C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances\1c66e466\catalog.previous.json'
[12cc:0010][2022-10-14T12:38:46] Adding packages from --add
[12cc:000d][2022-10-14T12:38:46] Planning graph selection
[12cc:000d][2022-10-14T12:38:46] Graph.PlanSelection completed in 2ms
[12cc:000d][2022-10-14T12:38:46] Building the required chain
[12cc:000d][2022-10-14T12:38:46] Committing graph selection
[12cc:000d][2022-10-14T12:38:46] Graph.CommitSelection completed in 1ms
[12cc:000d][2022-10-14T12:38:46] Updating graph selection
[12cc:000d][2022-10-14T12:38:46] Graph.UpdateSelection completed in 3ms
[12cc:000d][2022-10-14T12:38:46] Notifying VMs with the updated selections: GroupSelected - Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows10SDK.19041 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde
[12cc:0018][2022-10-14T12:38:46] No restart manager available. Assuming no reboot required for instance state.
[12cc:0018][2022-10-14T12:38:46] No restart manager available. Assuming no reboot required for instance state.
[12cc:0004][2022-10-14T12:38:46] Creating a UnelevatedProductModifier to modify the following packages: Microsoft.VisualStudio.Product.BuildTools Microsoft.VisualStudio.Workload.MSBuildTools Microsoft.VisualStudio.Workload.VCTools Microsoft.VisualStudio.Component.Roslyn.Compiler Microsoft.Component.MSBuild Microsoft.VisualStudio.Component.CoreBuildTools Microsoft.VisualStudio.Component.Windows10SDK Microsoft.VisualStudio.Component.VC.CoreBuildTools Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.Redist.14.Latest Microsoft.VisualStudio.Component.Windows10SDK.19041 Microsoft.VisualStudio.Component.VC.CMake.Project Microsoft.VisualStudio.Component.TestTools.BuildTools Microsoft.VisualStudio.Component.VC.ASAN Microsoft.VisualStudio.Component.TextTemplating Microsoft.VisualStudio.Component.VC.CoreIde Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core
[12cc:0004][2022-10-14T12:38:46] Created a UnelevatedProductModifier
[12cc:0004][2022-10-14T12:38:46] Decorating UnelevatedProductModifier with UnelevatedInstallerTelemetryDecorator
[12cc:0016][2022-10-14T12:38:46] Try to get the token in the 'in memory' cache for aka.ms
[12cc:0016][2022-10-14T12:38:46] Download requested: https://aka.ms/vs/15/release/channel
Warning: [12cc:0011][2022-10-14T12:38:46] The operation was canceled.
[12cc:000d][2022-10-14T12:38:46] Error 0x8013153b: [12cc:000d][2022-10-14T12:38:46] Could not update channel "https://aka.ms/vs/15/release/channel"
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Setup.Download.DownloadManagerAuthenticationProxy.<Download>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Setup.ChannelManager.<GetLatestChannelManifestAsync>d__88.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Setup.ChannelManager.<UpdateChannelManifestAsync>d__80.MoveNext()
Warning: [12cc:000d][2022-10-14T12:38:46] A task was canceled.
Warning: [12cc:000d][2022-10-14T12:38:46] Didn't find any channel feed.
[12cc:000d][2022-10-14T12:38:46] Try to get the token in the 'in memory' cache for aka.ms
[12cc:000d][2022-10-14T12:38:46] Download requested: https://aka.ms/vs/channels
[12cc:0028][2022-10-14T12:38:46] Attempting download 'https://aka.ms/vs/channels' using engine 'WebClient'
[12cc:0028][2022-10-14T12:38:46] Uri 'https://aka.ms/vs/channels' redirected to 'https://download.visualstudio.microsoft.com/download/pr/51407592-61e7-4034-bf60-bf620bf6e278/1b2855b1fa856e6ec65e543cb3e63bbd/channels.json'
[12cc:0028][2022-10-14T12:38:46] ManifestVerifier Result: NotSigned
[12cc:0028][2022-10-14T12:38:46] Manifest File: C:\Users\Reinier\AppData\Local\Temp\chocolatey\5h5vwyh0.json
[12cc:0028][2022-10-14T12:38:46] Download failed using WebClient engine. Microsoft.VisualStudio.Setup.Security.InvalidSignatureException: Manifest File: 5h5vwyh0.json
   at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)
[12cc:0028][2022-10-14T12:38:46] Sleeping 5000 milliseconds before retrying download.
Warning: [12cc:0028][2022-10-14T12:38:51] Failed to download channels file from https://aka.ms/vs/channels: Cannot access a closed file.
[12cc:0015][2022-10-14T12:38:51] Status changed to NoUpdate

Have only been waiting for a few minutes 😅

@l3Fred
Copy link

l3Fred commented Mar 8, 2023

Check in Task Manager - Details if the setup.exe of the VisualStudio Installer is running - I waited for a while, stumbled across this thread, waited a bit longer while the PowerShell process was idle and seemingly nothing happened, but the VS build tools were installing in the background, took about 30 minutes then continued successfully!

@bnoordhuis bnoordhuis closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
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

9 participants
X Tutup