azure-pipelinesazure-artifacts

Azure Pipeline Error: Dedup Size Mismatch in DownloadPipelineArtifact@2


I'm encountering an error in my Azure Pipeline when trying to download artifacts using DownloadPipelineArtifact@2 task. The pipeline fails with the following error:

System.IO.EndOfStreamException: Dedup size does not match the downloaded size. DedupId:123456789 at Microsoft.VisualStudio.Services.BlobStore.WebApi.DedupStoreClient.<>c__DisplayClass36_0.<<DownloadToWriterAsync>b__1>d.MoveNext()  --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Services.Content.Common.NonSwallowingTransformBlockUtils.<>c__DisplayClass1_0`2.<<CreateNonSwallowingTaskFunc>b__0>d.MoveNext()

Context: I have three pipelines:

Has anyone encountered this issue before? What could be causing the Dedup size mismatch, and how can I resolve it?


Solution

  • The lowest agent version required by DownloadPipelineArtifact@2 task is 2.164.1.

    enter image description here

    However, using the older agent versions might bring unexpected or legacy errors which have been fixed in the newer versions. And the older agent versions also could have compatibility issues when running the new task versions. So, to make the tasks can work smoothly as possible in your pipelines, it is recommended to keep your agents be the latest available version.

    You can regularly check and update the self-hosted agents to the latest available versions in the Agent pools, Deployment pools and Environments in your Azure DevOps organizations/collections. See "Agent version and upgrades".