-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 Publish crashes with error 'MSB4166: Child node "##" exited prematurely. Shutting down.' #10437
Comments
We're getting this exception on some of our self-hosted runners, but not all. It seems to only happen with SDK 8.0.400 but not 8.0.304; try using a {
"sdk": {
"version": "8.0.304"
}
} (That is, I suspect it's an issue in the SDK, not in https://github.com/actions/runner.) |
Since this appears to be happening from telemetry, try setting the |
This happens in Azure Devops with self-hosted agents as well. Agent version 2.206.1 running Linux Update: Setting the environment resolves the issue Update2: Other applications can build and published using |
Getting the same issue, looks like something broke today. Github action is failing whilst building a .net 8.0 C# project.... MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTemprunner/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory. |
Can also confirm that adding the ENV variable (DOTNET_CLI_TELEMETRY_OPTOUT: 1) to the github action fixed the issue |
@lancelind We are currently investigating the issue and will provide an update as soon as we have more information. Thank you. |
This is a dotnet SDK regression - we will have a 401 hotfix SDK out in the next day or so that fixes this. In the meantime the most consistent workaround is using the latest 30x SDK instead. Details about the issue can be found at dotnet/sdk#42719 (comment). |
This started happening for me as well |
The 8.0.401 hotfix SDK has been released on all channels and contains a fix for this issue. |
Apparently the same regression has been introduced in .NET 9 preview (9.0.100-preview.7.24407.12) which is now installed with the latest VS, because even after installing 8.0.401 whenever I'm trying to run
|
Hi @lancelind, Could you please confirm if the issue is fixed as external team SDK have provided workarounds Like below : try using a global.json to explicitly use the older SDK:
(That is, I suspect it's an issue in the SDK, not in https://github.com/actions/runner.) Thank you. |
It resolves the issue!
Skickat från min iPhone
tors 29 aug. 2024 kl. 12:26 skrev hemanthmanga ***@***.***>:
… Hi @lancelind <https://github.com/lancelind>, Could you please confirm if
the issue is fixed as external team SDK have provided workarounds Like
below :
try using a global.json to explicitly use the older SDK:
{
"sdk": {
"version": "8.0.304"
}
}
(That is, I suspect it's an issue in the SDK, not in
https://github.com/actions/runner.)
Thank you.
—
Reply to this email directly, view it on GitHub
<#10437 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADLF5GFIVI6INTY4Q3IDADZT3ZMPAVCNFSM6AAAAABMOY3K4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXGI3DCOBXHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi @lancelind, Since we haven't heard back, we'll assume your issue is resolved and will close this issue, Thanks. |
@hemanthmanga I still see the issue sporadically on various version of .NET 8 (I'm on latest 403 and tried to reduce to 304 - reproduced on both). |
Description
Starting with release 2.319.0 we are consistently seeing the following process crash when running dotnet publish.
MSBUILD : error MSB4166: Child node "xx" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTemprunner/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
MSBUILD : error MSB4166: /tmp/MSBuildTemprunner/MSBuild_pid-3214_c9915635ac784de6a0cbd7762603f60a.failure.txt:
MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 3214:
MSBUILD : error MSB4166: =====================
MSBUILD : error MSB4166: 08/13/2024 17:39:05
MSBUILD : error MSB4166: System.ArgumentNullException: Value cannot be null. (Parameter 'value')
MSBUILD : error MSB4166: at System.ArgumentNullException.Throw(String paramName)
MSBUILD : error MSB4166: at System.IO.BinaryWriter.Write(String value)
MSBUILD : error MSB4166: at Microsoft.Build.Framework.TelemetryEventArgs.WriteToStream(BinaryWriter writer)
MSBUILD : error MSB4166: at Microsoft.Build.Shared.LogMessagePacketBase.WriteToStream(ITranslator translator)
MSBUILD : error MSB4166: at Microsoft.Build.Shared.LogMessagePacketBase.Translate(ITranslator translator)
MSBUILD : error MSB4166: at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
MSBUILD : error MSB4166: ===================
MSBUILD : error MSB4166:
MSBUILD : error MSB4166:
Platforms affected
Runner images affected
Image version and build link
Image version 2.319.0.
Is it regression?
Yes. 2.318.0 did not have this version.
Expected behavior
Successful completion of dotnet publish
Actual behavior
dotnet.exe process crash
Repro steps
The text was updated successfully, but these errors were encountered: