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

Setup-dotnet Tasks fails for multiple workflows from the URL Change #588

Open
2 of 5 tasks
vinaysandela opened this issue Jan 16, 2025 · 8 comments
Open
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@vinaysandela
Copy link

vinaysandela commented Jan 16, 2025

Description:
Setup-dotnet Tasks fails for multiple workflows #3186928

Task version:
Specify the task version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Setup-dotnet Tasks fails for multiple workflows from the URL Change
Error:
Task in the workflow -

  • name: Set up .NET Core
    uses: actions/setup-dotnet@v4
    with:
    dotnet-version: 8.0.x

Error:
Run actions/setup-dotnet@v4
"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command & 'E:\GHE-AR\AR5_work_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1' -SkipNonVersionedFiles -Runtime dotnet -Channel LTS
OperationStopped: E:\GHE-AR\AR5_work_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1:481
Line |
481 | throw $DownloadException
| ~~~~~~~~~~~~~~~~~~~~~~~~
| Unable to download https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.[12](https://github.com/<>/<>/actions/runs/12813433294/job/35722398808#step:3:13)/dotnet-runtime-8.0.12-win-x64.zip.
Warning: Failed to install dotnet runtime + cli, exit code: 1. OperationStopped: E:\GHE-AR\AR5_work_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1:481

Expected behavior:
Installation completed

Actual behavior:
Exception during Download

@vinaysandela vinaysandela added bug Something isn't working needs triage labels Jan 16, 2025
@priyagupta108
Copy link
Contributor

Hi @vinaysandela 👋,
Thank you for your report. We will investigate the issue and get back to you as soon as we have updates.

@priya-kinthali
Copy link

Hello @vinaysandela👋,
I attempted to reproduce the error on my end but was unable to do so. I am able to successfully run the setup-dotnet step in a self-hosted runner, as seen in the screenshot below.

Image

Could you please try re-running the workflow and see if the issue persists? If it does, could you share a link to a minimal repository that demonstrates the problem? This would greatly help us understand and resolve the issue.
Thank you for your cooperation!

@vinaysandela
Copy link
Author

Hey @priya-kinthali
We have tried multiple times and want to confirm that setup-dotnet@v1 and setup-dotnet@v2 are working for us but not v3 and v4.
Is these versions dependent on Powershell versions on the runner?
Comparing with the screenshot above, we see that difference in pwsh versions.

Below is the screenshot from v1/2 and v3/v4

Using v4-
Image

Using v2

Image

@priya-kinthali
Copy link

Hi @vinaysandela👋,
I was able to successfully set up the actions/setup-dotnet@v4 from my end, so the issue seems to be specific to your self-hosted runner setup or configuration. Here are a few points to consider:

  • PowerShell Version: Ensure that you have the correct PowerShell version installed on your runner.
  • Network Issues: Verify if there are any network restrictions or proxy settings that might be blocking the download.
  • Permissions: Check if your self-hosted runner has the necessary permissions to download and install the .NET runtime. For more details on self-hosted runner configurations, please refer to this documentation.

To further diagnose the issue, please provide:

  1. A minimal public repository that can reproduce the error.
  2. The entire logs with debug mode enabled. You can enable debug mode by setting ACTIONS_STEP_DEBUG to true in your workflow.

Thank you for your cooperation.

@priya-kinthali
Copy link

Hello @vinaysandela👋,
just checking in to see if you had the opportunity to review the points I mentioned earlier and were able to set up .NET correctly. Your feedback would be greatly appreciated. Thank you!

@AlanHale25
Copy link

We are seeing failures on our Arc Runners with v4

Run actions/setup-dotnet@v4
/home/runner/_work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh --skip-non-versioned-files --runtime dotnet --channel LTS
dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to builds.dotnet.microsoft.com:443
dotnet-install: Download attempt #1 has failed: Unable to download https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz.
dotnet-install: Attempt #2 will start in 10 seconds.
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to builds.dotnet.microsoft.com:443
dotnet-install: Download attempt #2 has failed: Unable to download https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz.
dotnet-install: Attempt #3 will start in 20 seconds.
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to builds.dotnet.microsoft.com:443
dotnet-install: Failed to download aka.ms link 'https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz': Unable to download https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz.
dotnet_install: Error: Could not find .NET Core Runtime with version = 8.0.12
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Warning: Failed to install dotnet runtime + cli, exit code: 1. dotnet_install: Error: Could not find .NET Core Runtime with version = 8.0.12
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

/home/runner/_work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh --skip-non-versioned-files --version 8.0.11
dotnet-install: Attempting to download using primary link https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.11/dotnet-sdk-8.0.11-linux-x64.tar.gz
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to builds.dotnet.microsoft.com:443
dotnet-install: Download attempt #1 has failed: Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.11/dotnet-sdk-8.0.11-linux-x64.tar.gz.
dotnet-install: Attempt #2 will start in 10 seconds.
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to builds.dotnet.microsoft.com:443
dotnet-install: Download attempt #2 has failed: Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.11/dotnet-sdk-8.0.11-linux-x64.tar.gz.
dotnet-install: Attempt #3 will start in 20 seconds.
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to builds.dotnet.microsoft.com:443
dotnet-install: Failed to download primary link 'https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.11/dotnet-sdk-8.0.11-linux-x64.tar.gz': Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.11/dotnet-sdk-8.0.11-linux-x64.tar.gz.
dotnet-install: Attempting to download using primary link https://ci.dot.net/public/Sdk/8.0.11/dotnet-sdk-8.0.11-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/8.0.11/dotnet-sdk-8.0.11-linux-x64.tar.gz' is not available.
dotnet_install: Error: Could not find .NET Core SDK with version = 8.0.11
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 = 8.0.11
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

@priya-kinthali
Copy link

Hello @AlanHale25👋,
Thank you for reaching out. It appears that the issue you're experiencing may be related to the configuration or setup of your Arc Runner. For more specialized assistance, we recommend raising this issue in the actions-runner-controller repository.
Thank you!

@priya-kinthali
Copy link

Hello @vinaysandela👋,
Just giving you a gentle ping to see if there are any updates on your end regarding this issue? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants