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

Concurrent aquire all ASP.NET and aquire all .NET causes ASP.NET acquisition timeout #1922

Open
vsccarl opened this issue Aug 16, 2024 · 1 comment

Comments

@vsccarl
Copy link

vsccarl commented Aug 16, 2024

Describe the bug.

From the runtime extension test plan, Run the 'Sample: Acquire all 2.X ASPNET Runtimes Concurrent', but also run Sample: Acquire all 2.X .NET Runtimes Concurrent command at the same time.

Running both at the same time causes the ASP.NET acquisition to timout.

Running the aquire all ASP.NET runtimes again by itself will continue to timeout.

Reproduction Steps

Using the sample extension, run Sample: Concurrently acquire all 2.X ASPNET Core runtimes and Sample: Concurrently acquire all 2.X .NET Core runtimes at the same time (or as close as possible)

Expected Behavior

All runtimes are successfully installed.

Exceptions & Errors (if any)

image

ms-dotnettools.sample-extension: Trying to install .NET 2.1.30x64aspnetcore but it already exists. No downloads or changes were made.
ms-dotnettools.sample-extension requested to download the .NET ASP.NET Runtime.
Downloading .NET version(s) 2.0.9x64aspnetcore ...ms-dotnettools.sample-extension: Trying to install .NET 2.2.8x64aspnetcore but it already exists. No downloads or changes were made.
...
Error : (DotnetAcquisitionInstallError)
Failed to download .NET 2.0.9x64aspnetcore:
.NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; & 'c:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\v-sccarl\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\2.0.9x64aspnetcore' -Version 2.0.9 -Verbose -Runtime aspnetcore -Architecture x64 }"
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404
Could not find "ASP.NET Core Runtime" with version = 2.0.9
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
At C:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\install
scripts\dotnet-install.ps1:1330 char:5

  • throw "Could not find `"$assetName`" with version = $($DownloadLi ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
    • FullyQualifiedErrorId : Could not find "ASP.NET Core Runtime" with version = 2.0.9
      Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support

, CODE: 1, SIGNAL: null

Error : (DotnetCommandFailed)
Failed to download .NET 2.0.9x64aspnetcore:
.NET Acquisition Failed: .NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; & 'c:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\v-sccarl\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\2.0.9x64aspnetcore' -Version 2.0.9 -Verbose -Runtime aspnetcore -Architecture x64 }"
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404
Could not find "ASP.NET Core Runtime" with version = 2.0.9
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
At C:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\install
scripts\dotnet-install.ps1:1330 char:5

  • throw "Could not find `"$assetName`" with version = $($DownloadLi ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
    • FullyQualifiedErrorId : Could not find "ASP.NET Core Runtime" with version = 2.0.9
      Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support

, CODE: 1, SIGNAL: null, Error: .NET install timed out.
You should change the timeout if you have a slow connection. See: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/Documentation/troubleshooting-runtime.md#install-script-timeouts.
Our CDN may be blocked in China or experience significant slowdown, in which case you should install .NET manually., MESSAGE: Command failed: powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy unrestricted -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; & 'c:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\install scripts\dotnet-install.ps1' -InstallDir 'c:\Users\v-sccarl\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\2.0.9x64aspnetcore' -Version 2.0.9 -Verbose -Runtime aspnetcore -Architecture x64 }"
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/aspnetcore/Runtime/2.0.9/aspnetcore-runtime-2.0.9-win-x64.zip. Returned HTTP status code: 404
Could not find "ASP.NET Core Runtime" with version = 2.0.9
Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support
At C:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\install
scripts\dotnet-install.ps1:1330 char:5

  • throw "Could not find `"$assetName`" with version = $($DownloadLi ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Could not find ...on .NET support:String) [], RuntimeException
    • FullyQualifiedErrorId : Could not find "ASP.NET Core Runtime" with version = 2.0.9
      Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET support

, CODE: 1, SIGNAL: null
at f. (c:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\extension.js:2:22739)
at Generator.next ()
at s (c:\Users\v-sccarl.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-2.1.2\dist\extension.js:2:20318)

.NET Install Tool Version

2.1.2

Your operating system? Please provide more detail, such as the version and or distro above.

Windows

VS Code Version

1.92.2

@nagilson
Copy link
Member

Thank you for this report.

Well I feel a bit silly because version 2.0.9 of aspnet does not even exist. That is why it's timing out, I'm pretty sure... We need to update this command ;

@nagilson nagilson added the P2 label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants