Skip to content

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

Closed

Description

@martincostello

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

Activity

  1. 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[/+] on Mar 12, 2025
  2. CodeCasterNL commented on Mar 12, 2025

    @CodeCasterNL

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

  3. richlander commented on Mar 13, 2025

    @richlander
    Member

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

  4. added
    area-setup
    on Apr 7, 2025
  5. martincostello commented on May 2, 2025

    @martincostello
    MemberAuthor

    Everything's been quiet on this front since March's Update Tuesday - I guess that means the CDN changes were successful and this is fixed?

  6. richlander commented on May 2, 2025

    @richlander
    Member

    We are coming to the same conclusion.

  7. krwq commented on May 6, 2025

    @krwq
    Member

    Should we close and wait if someone will report again?

  8. krwq commented on May 12, 2025

    @krwq
    Member

    I'm closing this since there isn't any specific action which can be taken here. Please re-open or create a new issue if you're still seeing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-setup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions