Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jkotas opened this issue Oct 1, 2022 · 2 comments
Open
Labels
area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@jkotas
Copy link
Member

jkotas commented Oct 1, 2022

  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
847661 dotnet/runtime Build product Log #108464
845786 dotnet/runtime Build product Log #108955
845730 dotnet/runtime Build product Log #108955
843606 dotnet/runtime Build product Log #108854
842392 dotnet/runtime Build product Log #108464
839655 dotnet/runtime Build product Log #108782
828483 dotnet/runtime Build product Log #108574
827581 dotnet/runtime Build product Log #108464
826272 dotnet/runtime Build product Log #108464
822914 dotnet/runtime Build product Log #108415
818437 dotnet/runtime Build product Log #103450
814638 dotnet/runtime Build product Log #107772
813564 dotnet/runtime Build product Log #107734

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 5 13

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.

@jkotas jkotas added area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab labels Oct 1, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Oct 1, 2022
@ghost
Copy link

ghost commented Oct 1, 2022

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Issue Details
  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": false
 }

Full log: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/37592/logs/106
Hit in: #76463

Author: jkotas
Assignees: -
Labels:

area-Infrastructure, Known Build Error

Milestone: -

@ViktorHofer
Copy link
Member

cc @MichaelSimons regarding SourceBuildIntermediate.proj

@jeffschwMSFT jeffschwMSFT added this to the 8.0.0 milestone Oct 4, 2022
@jeffschwMSFT jeffschwMSFT removed the untriaged New issue has not been triaged by the area owner label Oct 4, 2022
@agocke agocke modified the milestones: 8.0.0, 9.0.0 Sep 18, 2023
@build-analysis build-analysis bot removed this from the 9.0.0 milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the 9.0.0 milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
@agocke agocke modified the milestones: 9.0.0, 10.0.0 Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure Known Build Error Use this to report build issues in the .NET Helix tab
Projects
Status: No status
Development

No branches or pull requests

5 participants