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

dotnet-install: Failed to verify the version of installed ".NET Core SDK". #466

Closed
MichalStrehovsky opened this issue Apr 29, 2024 · 10 comments
Assignees

Comments

@MichalStrehovsky
Copy link
Member

I'm using the setup-dotnet Github action to install the latest 9.0 daily build.

I'm getting the error in the subject. Full log:

"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command & 'D:\a\_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1' -SkipNonVersionedFiles -Runtime dotnet -Channel LTS
dotnet-install: .NET Core Runtime with version '8.0.4' is already installed.
"C:\Program Files\PowerShell\[7](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8874728405/job/24363235450#step:2:8)\pwsh.exe" -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command & 'D:\a\_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1' -SkipNonVersionedFiles -Channel 9.0 -Quality daily
dotnet-install: Remote file https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100-preview.5.24227.1/dotnet-sdk-9.0.100-preview.5.24227.1-win-x64.zip size is 2973106[8](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8874728405/job/24363235450#step:2:9)8 bytes.
dotnet-install: Downloaded file https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100-preview.5.24227.1/dotnet-sdk-9.0.100-preview.5.24227.1-win-x64.zip size is 297310688 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet-install: Extracting the archive.
dotnet-install: Failed to verify the version of installed ".NET Core SDK".
Installation source: https://dotnetbuilds.azureedge.net/public/Sdk/[9](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8874728405/job/24363235450#step:2:10).0.100-preview.5.24227.1/dotnet-sdk-9.0.100-preview.5.24227.1-win-x64.zip.
Installation location: C:\Program Files\dotnet.
Report the bug at https://github.com/dotnet/install-scripts/issues.
Exception: D:\a\_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1:1342
Line |
1342 |      throw "`"$assetName`" with version = $($DownloadedLink.effectiveV …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | ".NET Core SDK" with version = 9.0.100 failed to install with an unknown error.
Error: Failed to install dotnet, exit code: 1. dotnet-install: Failed to verify the version of installed ".NET Core SDK".
Installation source: https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100-preview.5.24227.1/dotnet-sdk-9.0.100-preview.5.24227.1-win-x64.zip.
Installation location: C:\Program Files\dotnet.
Report the bug at https://github.com/dotnet/install-scripts/issues.
Exception: D:\a\_actions\actions\setup-dotnet\v4\externals\install-dotnet.ps1:1342
Line |
1342 |      throw "`"$assetName`" with version = $($DownloadedLink.effectiveV …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | ".NET Core SDK" with version = 9.0.[10](https://github.com/MichalStrehovsky/rt-sz/actions/runs/8874728405/job/24363235450#step:2:11)0 failed to install with an unknown error.

FWIW, here is how my Github workflow invokes the action:

https://github.com/MichalStrehovsky/rt-sz/blob/49efb3c6bbf5eeeb3480945d26181aaac9fe5137/.github/workflows/sizestats.yml#L121-L125

Here is the failing run: https://github.com/MichalStrehovsky/rt-sz/actions/runs/8874728405/job/24363235450

This worked fine 3 days ago and I didn't make any changes in the repo for a while.

@YuliiaKovalova
Copy link
Member

YuliiaKovalova commented Apr 29, 2024

Hi @MichalStrehovsky,

According to the logs, there was a problem with checking if the package was installed locally successfully, after the unpacking the archive with sdk.
Unfortunately, the normal verbosity log doesn't let me understand what kind of restrictions it may have faced.
I don't see the support of -verbose parameter in the action itself..

Could you just try to rerun it? Probably the was a temporary issue with the build machine.

@MichalStrehovsky
Copy link
Member Author

It succeeded on a rerun. I guess since we don't have the log we won't know what went wrong and there's nothing left to investigate. Thanks!

@YuliiaKovalova
Copy link
Member

@MichalStrehovsky, I have requested the support for the scripts verbosity output.
Once available, you can enable it by default: actions/setup-dotnet#522

@LoopedBard3
Copy link
Member

Hello @YuliiaKovalova, I am still seeing this issue when running the command line: powershell.exe -NoProfile -ExecutionPolicy Bypass .\dotnet-install.ps1 -InstallDir .\plz_dlt -Architecture x64 -Channel 9.0 -Quality daily on windows. The full execution is as follows:

powershell.exe -NoProfile -ExecutionPolicy Bypass .\dotnet-install.ps1 -InstallDir .\plz_dlt -Architecture x64 -Channel 9.0 -Quality daily
dotnet-install: Remote file https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100-preview.5.24230.7/dotnet-sdk-9.0.100-preview.5.24230.7-win-x64.zip size is 295722648 bytes.
dotnet-install: Downloaded file https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100-preview.5.24230.7/dotnet-sdk-9.0.100-preview.5.24230.7-win-x64.zip size is 295722648 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet-install: Extracting the archive.
dotnet-install: Failed to verify the version of installed ".NET Core SDK".
Installation source: https://dotnetbuilds.azureedge.net/public/Sdk/9.0.100-preview.5.24230.7/dotnet-sdk-9.0.100-preview.5.24230.7-win-x64.zip.
Installation location: .\plz_dlt.
Report the bug at https://github.com/dotnet/install-scripts/issues.
".NET Core SDK" with version = 9.0.100 failed to install with an unknown error.
At C:\Users\parkerbibus\Desktop\dotnet-install.ps1:1355 char:5
+     throw "`"$assetName`" with version = $($DownloadedLink.effectiveV ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (".NET Core SDK"... unknown error.:String) [], RuntimeException
    + FullyQualifiedErrorId : ".NET Core SDK" with version = 9.0.100 failed to install with an unknown error.

Is there any other steps we can take to hopefully figure out why this is failing?

@YuliiaKovalova
Copy link
Member

YuliiaKovalova commented Apr 30, 2024

Hi @LoopedBard3 ,

Could you please rerun it with -Verbose argument specified and attach the log?

Thank you!

@YuliiaKovalova
Copy link
Member

We were able to reproduce it on our side, I am working on the resolution.

@ViktorHofer
Copy link
Member

@mmitche submitted a change that will fix this but the change hasn't yet reached installer because dependency flow is blocked right now because of a source-build re-bootstrap issue. Once that is resolved, bits should be flowing again and the blob won't contain duplicate assets anymore.

You can the track the status of dependency flow via this PR: dotnet/installer#19634

@mmitche
Copy link
Member

mmitche commented May 2, 2024

My change should have resolved the issue immediately (since it affected sdk's official builds immediately). If you see this again, let us know

@mmitche
Copy link
Member

mmitche commented May 2, 2024

Looking closer, the main build is broken, this change dotnet/installer#19641 will end up being the resolution.

@YuliiaKovalova
Copy link
Member

@mmitche, I have just validated the fix - it works now!
Thank you for addressing it.

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

5 participants