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
1131604 dotnet/runtime Build product Log #119077
1131467 dotnet/runtime Build product Log #119077
1130480 dotnet/runtime Build product Log #119033
1130302 dotnet/runtime Build product Log #118996
1130274 dotnet/runtime Build product Log #118996
1130241 dotnet/runtime Build product Log #118996
1129793 dotnet/runtime Build product Log #118997
1127920 dotnet/runtime Build product Log #106880
1127940 dotnet/runtime Build product Log #115268
1126880 dotnet/runtime Build product Log #115268
1126430 dotnet/runtime Build product Log #118732
1126196 dotnet/runtime Build product Log #118824
1125975 dotnet/runtime Build product Log #118732
1125963 dotnet/runtime Build product Log #118862
1125894 dotnet/runtime Build product Log #118732
1125455 dotnet/runtime Build product Log #117010
1124549 dotnet/runtime Build product Log #118732
1121179 dotnet/runtime Build product Log #117975
1120903 dotnet/runtime Build product Log #117975
1120169 dotnet/runtime Build product Log #118624
1120106 dotnet/runtime Build product Log #118624
1118199 dotnet/runtime Build product Log #118513
1117871 dotnet/runtime Build product Log #118539
1118106 dotnet/runtime Build product Log #118513
1117564 dotnet/runtime Build product Log #118456
1117285 dotnet/runtime Build product Log #118513
1117080 dotnet/runtime Build product Log
1116700 dotnet/runtime Build product Log #118456
1116433 dotnet/runtime Build product Log #117010
1114523 dotnet/runtime Build product Log #118123
1114526 dotnet/runtime Build product Log #118122
1112165 dotnet/runtime Build product Log #118311
1111052 dotnet/runtime Build product Log #118264

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 7 33

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