-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[8.0.400] MSBuild Crash when publishing containers #42731
Comments
The 8.0.401 hotfix SDK has been released on all channels and contains a fix for this issue. |
@baronfel I originally tried 8.0.400 and got this container issue. I tried 8.0.401 this morning but the CI/CD pipeline seemed to break at the package restore stage with errors like: "C:\hostedtoolcache\windows\dotnet\sdk\8.0.401\NuGet.targets(174,5): error : The feed 'nuget.org [https://api.nuget.org/v3/index.json]' lists package 'Microsoft.AspNetCore.Components.Authorization.8.0.8' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. [D:\a\1\s\ecoDriverAnalytics\ecoDriverAnalytics.Services.Tests\ecoDriverAnalytics.Services.Tests.csproj] Reverting back to 8.0.303 seems to fix it, is this in some way related? |
My best guess is that this is a connectivity problem unique to your environment somehow. The package is available on nuget.org and has many downloads at this time. |
For what it's worth, we're also seeing a lot of these errors after the update to
The package that fails seems random. |
Same for us, since the 8.0.4xx our ci/cd pipeline (via circleci) randomly fail on dotnet restore. We will revert to 8.0.304 |
Hey folks - restore errors are entirely different from the container publishing system, please raise restore errors over at the NuGet/Home repo where the NuGet team will see them. |
Thanks for the heads up, I've created NuGet/Home#13729 |
In 8.0.400, we added some telemetry (documented here) for container publish to help us direct investment in the tech. This telemetry is reported through MSBuild's built-in telemetry hooks, which for the
dotnet
CLI ends up forwarding telemetry from MSBuild through the CLI Telemetry's configuration (aka the environment variable mentioned above:DOTNET_CLI_TELEMETRY_OPTOUT
).There was a bug in the MSBuild engine's handling of this telemetry data, which we fixed in this PR, and this bug is the cause of the crash that's reported. We found this error during final testing, but too late to include it in the 400 release, and so began the process of making a hotfix immediately. This hotfix, 8.0.401, should be available in the next day or so.
The main reason we decided to do a hotfix for this is that the proposed workaround - setting
DOTNET_CLI_TELEMETRY_OPTOUT
to1
/true
/other truthy values - did not consistently work in broader testing. This is because MSBuild is a multi-node system, and telemetry events generated on a worker node must be serialized and forwarded to the central node. This serialization is where the bug lies. If you can guarantee that MSBuild operates in a single-node mode (via/m:1
or similar) that may work as a workaround as well, but several high-impact use cases likeazd
deployment do not expose the configuration necessary to ensure this behavior.Other reports:
The text was updated successfully, but these errors were encountered: