question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DownloadBuildArtifacts has incomplete downloads with no errors

See original GitHub issue

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: bug

Enter Task Name: DownloadBuildArtifactsV0

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises?

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

Example build: See “Libraries Test Run release coreclr Windows_NT x64 Debug” in https://dnceng.visualstudio.com/public/_build/results?buildId=722532&view=logs&j=694d544e-ff71-5faf-b01a-5137c04e57c6&t=e3fd78b8-f38c-5ce4-3c18-7a68a40fe399

  • Agent - Hosted or Private:

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version:

Private - Windows Server 2019

Issue Description

Starting: Download Test Assets
==============================================================================
Task         : Download build artifacts
Description  : Download files that were saved as artifacts of a completed build
Version      : 0.167.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
==============================================================================
Downloading artifacts for build: 722532
Downloading items from container resource #/4554312/libraries_test_assets_Windows_NT_x64_Debug
Downloading artifact libraries_test_assets_Windows_NT_x64_Debug from: https://dev.azure.com/dnceng//_apis/resources/Containers/4554312?itemPath=libraries_test_assets_Windows_NT_x64_Debug&isShallow=true&api-version=4.1-preview.4
Downloading libraries_test_assets_Windows_NT_x64_Debug/libraries_test_assets_Windows_NT_x64_Debug.zip to F:\workspace\_work\1\s\__download__\libraries_test_assets_Windows_NT_x64_Debug\libraries_test_assets_Windows_NT_x64_Debug.zip
Downloaded libraries_test_assets_Windows_NT_x64_Debug/libraries_test_assets_Windows_NT_x64_Debug.zip to F:\workspace\_work\1\s\__download__\libraries_test_assets_Windows_NT_x64_Debug\libraries_test_assets_Windows_NT_x64_Debug.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 1819.658 secs, Download size: 199.113MB
Successfully downloaded artifacts to F:\workspace\_work\1\s/__download__
Finishing: Download Test Assets

… but the file at https://dev.azure.com/dnceng/_apis/resources/Containers/4554312?itemPath=libraries_test_assets_Windows_NT_x64_Debug%2Flibraries_test_assets_Windows_NT_x64_Debug.zip is 365 MB, so in the next step when it tries to unzip:


ERROR: Data Error : helix\tests\Windows_NT.AnyCPU.Debug\System.IO.Compression.ZipFile.Tests.zip
 
error: undefined;
##[error]Extraction failed for file: F:\workspace\_work\1\s\__download__\libraries_test_assets_Windows_NT_x64_Debug\libraries_test_assets_Windows_NT_x64_Debug.zip 
code: 2 

[Include task name(s), screenshots and any other relevant details]

Task logs

See linked build.

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-smolyakovcommented, Feb 2, 2021

@MattGal, the PR with the fix was merged. I’ll let you know once the fix is deployed.

0reactions
WilliamRaphaWydecommented, Nov 8, 2022

FYI we have been experiencing the same issue on our end. It was working fine until yesteday, but it failed 3 times for our build today.

eg. https://dev.azure.com/mphasis-wyde/Wynsure Product/_build/results?buildId=3390&view=logs&j=c1abedab-6e8a-5acb-7f25-be4ece04f074&t=7727b2dc-7902-526f-78b7-45d9a2b1af14

Read more comments on GitHub >

github_iconTop Results From Across the Web

DownloadBuildArtifacts does not download published artifact ...
The error comes because the DBA task downloads an old version, and not the latest. The issue is because since it is a...
Read more >
5 Causes for Incomplete or Partial Downloads - KeyCDN
Incomplete or partial downloads occur when a client is in the process of downloading a file and the connection gets interrupted, ...
Read more >
DownloadBuildArtifacts@1 - Download build artifacts v1 task
If there is no triggering build from the specified pipeline, it downloads artifacts from the build specified in the options below.
Read more >
[JIRA] [core] (JENKINS-26700) Download build artifacts as zip ...
Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory...
Read more >
Why Do Browsers Download Incomplete Files?
An incomplete download differs from a stuck download, which is more conspicuous. ... When you do figure it out, you can usually fix...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found