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

[BUG]: DotNetCoreCLI@2 Error: Failed find: EACCES: permission denied #20881

Open
3 of 7 tasks
ReinhardvdBerg opened this issue Feb 24, 2025 · 1 comment
Open
3 of 7 tasks
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug triage

Comments

@ReinhardvdBerg
Copy link

ReinhardvdBerg commented Feb 24, 2025

New issue checklist

Task name

DotNetCoreCLI@2

Task version

2.247.3

Issue Description

Hi, I we starting getting this error a couple hours ago when trying to run C# unit tests across allot of our pipelines:

##[error]Error: Failed find: EACCES: permission denied, scandir '/agent/_work/_temp/.cache/fanal'

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20.04

Relevant log output

Starting: Unit Tests (if any)
==============================================================================
Task         : .NET Core
Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command
Version      : 2.247.3
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
==============================================================================
Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required version.
Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently lts. Unless you have locked down a SDK version for your project(s), 5.x SDK might be picked up which might have breaking behavior as compared to previous versions. You can learn more about the breaking changes here: https://docs.microsoft.com/en-us/dotnet/core/tools/ and https://docs.microsoft.com/en-us/dotnet/core/compatibility/ . To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting
##[error]Error: Failed find: EACCES: permission denied, scandir '/agent/_work/_temp/.cache/fanal'
Finishing: Unit Tests (if any)

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

@sanjuyadav24 sanjuyadav24 added Area: ABTT Akvelon Build Tasks Team area of work and removed Area: Release labels Feb 24, 2025
@justastudenttryingtolearn
Copy link

justastudenttryingtolearn commented Mar 5, 2025

In our case it seems the cause of the build agents becoming corrupted was that we had some builds still using SonarQube Tasks on a deprecated version (specifically @5) but theses builds didn't fail as usual - leading to subsequent builds failing.
The finer details of why this happens still alludes me but ultimately updating these versions and deleting the poisoned build agents fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug triage
Projects
None yet
Development

No branches or pull requests

3 participants