You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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!
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.
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:
A minimal public repository that can reproduce the error.
The entire logs with debug mode enabled. You can enable debug mode by setting ACTIONS_STEP_DEBUG to true in your workflow.
Description:
Setup-dotnet Tasks fails for multiple workflows #3186928
Task version:
Specify the task version
Platform:
Runner type:
Repro steps:
Setup-dotnet Tasks fails for multiple workflows from the URL Change
Error:
Task in the workflow -
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
The text was updated successfully, but these errors were encountered: