azure-pipelines-agent: Error while saving the cache : [error]Failed to start the required dependency 'tar'. Please verify the correct version is installed and available on the path.

Having issue with YAML?

Please log an issue at Azure-Pipelines-YAML. Over there we discuss YAML templates, samples for Azure Pipelines, and designs for upcoming YAML features. Also a place for the community to share best practices, ideas, and so on. File suggestions and issues here if they’re specific to YAML pipelines.

Having issue with Tasks?

Log an issue at Azure-Pipelines-Tasks. It contains all of the in-box tasks we ship with Azure-Pipelines/VSTS/TFS. If you’re having issues with tasks in Build/Release jobs (e.g. unreasonable task failure) please log an issue there.

Having issue with software on Hosted Agent?

Log an issue at Hosted Agent Image Repository. It contains the VM image used in the Azure Pipelines Hosted Agent Pool. If you’re having Build/Release failures that seems like they are related to software installed on the Hosted Agent (e.g. the dotnet SDK is missing or the Azure SDK is not on the latest version) please log an issue there.

Having generic issue with Azure-Pipelines/VSTS/TFS?

Please report it on Developer Community

Have you tried troubleshooting?

Troubleshooting doc

Agent Version and Platform

Version of your agent? 2.144.0/2.144.1/…

OS of the machine running the agent? OSX/Windows/Linux/…

Azure DevOps Type and Version

dev.azure.com (formerly visualstudio.com) or on-premises TFS/Azure DevOps Server?

If on-premises, which release? 2015.0, 2017.1, 2019 RC2, etc.

If dev.azure.com, what is your organization name? https://dev.azure.com/{organization} or https://{organization}.visualstudio.com

What’s not working?

Please include error messages and screenshots.

Agent and Worker’s Diagnostic Logs

Logs are located in the agent’s _diag folder. The agent logs are prefixed with Agent_ and the worker logs are prefixed with Worker_. All sensitive information should already be masked out, but please double-check before pasting here.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 19 (3 by maintainers)

Most upvoted comments

Having the same problem when using NPM cache. Post build task fails with:

##[error]Failed to start the required dependency ‘tar’. Please verify the correct version is installed and available on the path.

Running a windows agent.

@nithyusha23 @jlabaj @matthoulb you can specify path that the tar either in Path environment variable or by specifying ‘VSTS_TAR_EXECUTABLE’ environment variable also - could you please try second approach?

Here same error too. Trying to use npm cache in order to increase a deployment speed but post cache task is showing the follow error: ##[error]Failed to start the required dependency ‘tar’. Please verify the correct version is installed and available on the path.

@fadnavistanmay - Can you take a look at this?