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
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
1055418 dotnet/runtime Build product Log #115583
1054491 dotnet/runtime Build product Log #116111
1054280 dotnet/runtime Build product Log #115583
1054265 dotnet/runtime Build product Log #108464
1052734 dotnet/runtime Build product Log #115959
1048846 dotnet/runtime Build product Log #115909
1048530 dotnet/runtime Build product Log #115829
1047963 dotnet/runtime Build product Log #115826
1047862 dotnet/runtime Build product Log #115826
1047576 dotnet/runtime Build product Log #115829
1047510 dotnet/runtime Build product Log #115826
1047509 dotnet/runtime Build product Log #115826
1046703 dotnet/runtime Build product Log #115795
1046391 dotnet/runtime Build product Log #115733
1046048 dotnet/runtime Build product Log #115761
1045667 dotnet/runtime Build product Log #115743
1045668 dotnet/runtime Build product Log #115743
1045560 dotnet/runtime Build product Log #115732
1045396 dotnet/runtime Build product Log #115732
1045395 dotnet/runtime Build product Log #115732
1043827 dotnet/runtime Build product Log #115609

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 15 37

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