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
1196005 dotnet/runtime Build product Log #121412
1196017 dotnet/runtime Build product Log #121343
1194259 dotnet/runtime Build product Log #119432
1193540 dotnet/runtime Build product Log #121351
1193339 dotnet/runtime Build product Log #121343
1192843 dotnet/runtime Build product Log #119432
1192783 dotnet/runtime Build product Log #119432
1191075 dotnet/runtime Build product Log #119432
1190690 dotnet/runtime Build product Log #119432
1188158 dotnet/runtime Build product Log #121158
1186689 dotnet/runtime Build product Log #121072
1185211 dotnet/runtime Build product Log #121072
1184301 dotnet/runtime Build product Log #121062
1181206 dotnet/runtime Build product Log #119996
1180919 dotnet/runtime Build product Log #119996
1180889 dotnet/runtime Build product Log #120906
1180091 dotnet/runtime Build product Log #120906
1179926 dotnet/runtime Build product Log #120899
1178615 dotnet/runtime Build product Log #119432
1177738 dotnet/runtime Build product Log #119432
1176876 dotnet/runtime Build product Log #119432
1176008 dotnet/runtime Build product Log #120732
1175777 dotnet/runtime Build product Log #119996
1175392 dotnet/runtime Build product Log #120732
1175315 dotnet/runtime Build product Log #120623
1174797 dotnet/runtime Build product Log #120623
1174795 dotnet/runtime Build product Log #120431
1174671 dotnet/runtime Build product Log #119432
1174476 dotnet/runtime Build product Log #119432
1173730 dotnet/runtime Build product Log #118570
1173277 dotnet/runtime Build product Log #120670
1173155 dotnet/runtime Build product Log #119432
1172973 dotnet/runtime Build product Log #120673
1172609 dotnet/runtime Build product Log #120663
1172593 dotnet/runtime Build product Log #120660
1172554 dotnet/runtime Build product Log #118577
1171539 dotnet/runtime Build product Log #120636
1170787 dotnet/runtime Build product Log #119432
1170634 dotnet/runtime Build product Log #119432
1169766 dotnet/runtime Build product Log #119432
1169718 dotnet/runtime Build product Log
1169654 dotnet/runtime Build product Log #120454
1169636 dotnet/runtime Build product Log #119432
1169451 dotnet/runtime Build product Log #119432

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 9 44

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