Skip to content

Intermittent build failure in AfterSourceBuild: "Could not write state file" #76488

Open
@jkotas

Description

@jkotas
  Building intermediate nupkg, and supplemental nupkgs for runtime, ILCompiler, Crossgen2Pack...
/__w/1/s/.dotnet/sdk/7.0.100-preview.7.22377.5/Microsoft.Common.CurrentVersion.targets(2318,5): error MSB3101: Could not write state file "/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache". The file '/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache' already exists. [/__w/1/s/artifacts/obj/ArcadeGeneratedProjects/SourceBuildIntermediate/SourceBuildIntermediate.proj]
##[error].dotnet/sdk/7.0.100-preview.7.22377.5/Microsoft.Common.CurrentVersion.targets(2318,5): error MSB3101: (NETCORE_ENGINEERING_TELEMETRY=AfterSourceBuild) Could not write state file "/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache". The file '/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache' already exists.
/__w/1/s/.dotnet/sdk/7.0.100-preview.7.22377.5/Microsoft.Common.CurrentVersion.targets(2318,5): error MSB3101: Could not write state file "/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache". The file '/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache' already exists. [/__w/1/s/artifacts/obj/ArcadeGeneratedProjects/SourceBuildIntermediate/SourceBuildIntermediate.proj]
##[error].dotnet/sdk/7.0.100-preview.7.22377.5/Microsoft.Common.CurrentVersion.targets(2318,5): error MSB3101: (NETCORE_ENGINEERING_TELEMETRY=AfterSourceBuild) Could not write state file "/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache". The file '/__w/1/s/artifacts/obj/SourceBuildIntermediate/Release/netstandard2.0/SourceBuildIntermediate.proj.AssemblyReference.cache' already exists.
 {
    "ErrorMessage" : "Could not write state file",
    "BuildRetry": true
 }

Full log: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/37592/logs/106
Hit in: #76463

Report

Build Definition Step Name Console log Pull Request
1084371 dotnet/runtime Build product Log #106374
1084372 dotnet/runtime Build product Log #106374
1082954 dotnet/runtime Build product Log #117192
1082914 dotnet/runtime Build product Log #117192
1082830 dotnet/runtime Build product Log #117192
1082162 dotnet/runtime Build product Log #117103
1082036 dotnet/runtime Build product Log #117103
1081013 dotnet/runtime Build product Log #105403
1080997 dotnet/runtime Build product Log #105403
1080772 dotnet/runtime Build product Log #117103
1080651 dotnet/runtime Build product Log #117103
1080486 dotnet/runtime Build product Log #117100
1079578 dotnet/runtime Build product Log #117074
1078693 dotnet/runtime Build product Log #117044
1077478 dotnet/runtime Build product Log #117010
1075072 dotnet/runtime Build product Log
1070316 dotnet/runtime Build product Log #116752
1069581 dotnet/runtime Build product Log #116659
1066908 dotnet/runtime Build product Log #116613
1066519 dotnet/runtime Build product Log #116574
1066606 dotnet/runtime Build product Log #116355
1066487 dotnet/runtime Build product Log #113935
1066493 dotnet/runtime Build product Log #116563
1066480 dotnet/runtime Build product Log #116549
1066461 dotnet/runtime Build product Log #116354
1066444 dotnet/runtime Build product Log #113697
1066457 dotnet/runtime Build product Log #116590
1065258 dotnet/runtime Build product Log #116540
1062560 dotnet/runtime Build product Log #116107
1062469 dotnet/runtime Build product Log #116107
1062439 dotnet/runtime Build product Log #116107
1061914 dotnet/runtime Build product Log #116331
1061833 dotnet/runtime Build product Log #116331
1060197 dotnet/runtime Build product Log #116339

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 9 34

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions