Since March 3rd we have been getting errors in our Azure DevOps Pipelines with SonarQube scans. There are architecture_graphs….pb files that are locked and cannot be removed by SonarQube when running the analysis.
We use self-hosted agents and Microsoft hosted agents.
This is the error on the selfhosted agents on a Windows Server 2022.
##[error]ERROR: Failed to delete temp folder
##[error]java.nio.file.FileSystemException: D:\[Redacted SelfHostedAgent]\_work\397\.sonarqube\out\.sonar\.sonartmp\architecture_graphs6018381077981158318.pb: The process cannot access the file because it is being used by another process
This is the error on a Microsoft hosted Windows 2025 agent.
##[error]13:18:04.040 ERROR: Failed to delete temp folder
##[error]java.nio.file.FileSystemException: C:\a\_work\9\.sonarqube\out\.sonar\.sonartmp\architecture_graphs8015529215648093421.pb: The process cannot access the file because it is being used by another process
For most teams, using the Azure DevOps SonarCloudAnalyze@3 task, it is just noisy. The analysis does continue.
For a few teams that use Nuke/Pulumi it made the pipeline fail on the error, but they have now changed the pipeline to ignore these errors as a workaround.