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

.NET SDK install flakiness sourcing via installer scripts with internal errors #9797

Open
martincostello opened this issue Mar 12, 2025 · 2 comments

Comments

@martincostello
Copy link
Member

The new builds.dotnet.microsoft.com and ci.dot.net domains seem to exhibiting flakiness when attempting to download the latest .NET SDK on multiple operating systems based on errors I'm getting in GitHub Actions workflows in multiple repositories.

Retrying the build will lead to success eventually, but clearly that's not a good experience for consumption.

Windows:

dotnet-install: Downloading from "aka.ms" link has failed with error:
Uri: https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.407/dotnet-sdk-8.0.407-win-x64.zip
StatusCode: 
Error: Error while copying content to a stream.
The response ended prematurely. (ResponseEnded)

Exception: D:\a\_actions\actions\setup-dotnet\3951f0dfe7a07e2313ec93c75700083e2005cbab\externals\install-dotnet.ps1:1350
Line |
1350 |      throw "Could not find `"$assetName`" with version = $($DownloadLi …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find ".NET Core SDK" with version = 8.0.407 Refer to: https://aka.ms/dotnet-os-lifecycle for
     | information on .NET support
Error: Failed to install dotnet, exit code: 1. dotnet-install: Downloading from "aka.ms" link has failed with error:
Uri: https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.407/dotnet-sdk-8.0.407-win-x64.zip
StatusCode: 
Error: Error while copying content to a stream.
The response ended prematurely. (ResponseEnded)

Exception: D:\a\_actions\actions\setup-dotnet\3951f0dfe7a07e2313ec93c75700083e2005cbab\externals\install-dotnet.ps1:1350
Line |
1350 |      throw "Could not find `"$assetName`" with version = $($DownloadLi …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find ".NET Core SDK" with version = 8.0.407 Refer to: https://aka.ms/dotnet-os-lifecycle for
     | information on .NET support

macOS:

/Users/runner/work/_actions/actions/setup-dotnet/3951f0dfe7a07e2313ec93c75700083e2005cbab/externals/install-dotnet.sh --skip-non-versioned-files --version 9.0.201
dotnet-install: Attempting to download using primary link https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
dotnet-install: Download attempt #1 has failed: 200 Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz.
dotnet-install: Attempt #2 will start in 10 seconds.
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
dotnet-install: Download attempt #2 has failed: 200 Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz.
dotnet-install: Attempt #3 will start in 20 seconds.
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
dotnet-install: Failed to download primary link 'https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz': 200 Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz.
dotnet-install: Attempting to download using legacy link https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-dev-osx-arm64.9.0.201.tar.gz
curl: (56) The requested URL returned error: 404
dotnet-install: The resource at legacy link 'https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-dev-osx-arm64.9.0.201.tar.gz' is not available.
dotnet-install: Attempting to download using primary link https://ci.dot.net/public/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz
curl: (56) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://ci.dot.net/public/Sdk/9.0.201/dotnet-sdk-9.0.201-osx-arm64.tar.gz' is not available.
dotnet-install: Attempting to download using legacy link https://ci.dot.net/public/Sdk/9.0.201/dotnet-dev-osx-arm64.9.0.201.tar.gz
curl: (56) The requested URL returned error: 404
dotnet-install: The resource at legacy link 'https://ci.dot.net/public/Sdk/9.0.201/dotnet-dev-osx-arm64.9.0.201.tar.gz' is not available.
dotnet_install: Error: Could not find `.NET Core SDK` with version = 9.0.201
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Error: Failed to install dotnet, exit code: 1. dotnet_install: Error: Could not find `.NET Core SDK` with version = 9.0.201
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

Ubuntu:

/home/runner/work/_actions/actions/setup-dotnet/3951f0dfe7a07e2313ec93c75700083e2005cbab/externals/install-dotnet.sh --skip-non-versioned-files --version 9.0.201
dotnet-install: Attempting to download using primary link https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
dotnet-install: Download attempt #1 has failed: 200 Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz.
dotnet-install: Attempt #2 will start in 10 seconds.
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
dotnet-install: Download attempt #2 has failed: 200 Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz.
dotnet-install: Attempt #3 will start in 20 seconds.
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
dotnet-install: Failed to download primary link 'https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz': 200 Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz.
dotnet-install: Attempting to download using primary link https://ci.dot.net/public/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz
curl: (22) The requested URL returned error: 404
dotnet-install: The resource at primary link 'https://ci.dot.net/public/Sdk/9.0.201/dotnet-sdk-9.0.201-linux-x64.tar.gz' is not available.
dotnet_install: Error: Could not find `.NET Core SDK` with version = 9.0.201
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Error: Failed to install dotnet, exit code: 1. dotnet_install: Error: Could not find `.NET Core SDK` with version = 9.0.201
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
@martincostello martincostello marked this as a duplicate of #9798 Mar 12, 2025
@martincostello martincostello changed the title .NET SDK install flakiness souring via installer scripts with internal errors .NET SDK install flakiness sourcing via installer scripts with internal errors Mar 12, 2025
@CodeCasterNL
Copy link

Thanks, I reported that here as well: actions/setup-dotnet#613

@richlander
Copy link
Member

Thanks @martincostello. We are working on this. Please continue to report if you see this again (and/or reach out to me directly).

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

3 participants