Skip to content

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

@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
1161142 dotnet/runtime Build product Log #120234
1161118 dotnet/runtime Build product Log #120234
1160530 dotnet/runtime Build product Log #120141
1160211 dotnet/runtime Build product Log #120099
1159071 dotnet/runtime Build product Log #120141
1158665 dotnet/runtime Build product Log #119432
1158531 dotnet/runtime Build product Log #119432
1157900 dotnet/runtime Build product Log #119432
1155977 dotnet/runtime Build product Log #119988
1155269 dotnet/runtime Build product Log #119957
1155152 dotnet/runtime Build product Log #119957
1154990 dotnet/runtime Build product Log #119957
1154887 dotnet/runtime Build product Log #119951
1154391 dotnet/runtime Build product Log
1154259 dotnet/runtime Build product Log #119432
1152308 dotnet/runtime Build product Log #119432
1152066 dotnet/runtime Build product Log #117429
1151920 dotnet/runtime Build product Log #117429
1151554 dotnet/runtime Build product Log #119432
1150733 dotnet/runtime Build product Log #119810
1150315 dotnet/runtime Build product Log #119432
1150179 dotnet/runtime Build product Log #119564
1149197 dotnet/runtime Build product Log #119745
1149025 dotnet/runtime Build product Log #119432
1148993 dotnet/runtime Build product Log #119738
1147722 dotnet/runtime Build product Log #119564
1147008 dotnet/runtime Build product Log #119674
1145876 dotnet/runtime Build product Log #119432
1145788 dotnet/runtime Build product Log #119599
1145390 dotnet/runtime Build product Log #118539
1144937 dotnet/runtime Build product Log #119432
1144768 dotnet/runtime Build product Log #119432
1143903 dotnet/runtime Build product Log #119432
1143831 dotnet/runtime Build product Log #119517
1143564 dotnet/runtime Build product Log #119432
1141258 dotnet/runtime Build product Log #119432
1139838 dotnet/runtime Build product Log #118264
1136981 dotnet/runtime Build product Log #119262
1136623 dotnet/runtime Build product Log #118123
1135861 dotnet/runtime Build product Log #115268

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 9 40

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions