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
1206034 dotnet/runtime Build product Log #121721
1203668 dotnet/runtime Build product Log #121343
1200108 dotnet/runtime Build product Log #121343
1199485 dotnet/runtime Build product Log #121343
1199157 dotnet/runtime Build product Log #121343
1198721 dotnet/runtime Build product Log #121412
1197389 dotnet/runtime Build product Log #121412
1197240 dotnet/runtime Build product Log #121412
1197110 dotnet/runtime Build product Log #121412
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

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 27

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