Skip to content

CI is currently broken "You cannot extract a file outside of the target path" #52596

Closed

Description

@eerhardt

I'm seeing this same error on multiple PRs:

https://dev.azure.com/dnceng/public/_build/results?buildId=1132154&view=logs&j=a4640945-bbdc-597c-ef1f-fa8333a2fcba&t=a98154d0-d3a5-5a2b-9381-8130b5ef9cd5&l=44

https://dev.azure.com/dnceng/public/_build/results?buildId=1132211&view=logs&j=f827f174-7a88-54e3-54c2-8dcd28f39edd&t=102b6136-808d-5b02-a12e-313a3079cf99&l=45

Downloading artifact CoreCLRProduct___windows_arm64_release from: https://dev.azure.com/dnceng//9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_apis/build/builds/1132154/artifacts?artifactName=CoreCLRProduct___windows_arm64_release&$format=zip
Downloading  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Downloaded  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 21.079 secs, Download size: 0Bytes
Starting artifact items integrity check
Artifact items integrity check successfully finished
Error: in Download zip - CoreCLRProduct___windows_arm64_release, so retrying => retries pending  : 4
Downloading artifact CoreCLRProduct___windows_arm64_release from: https://dev.azure.com/dnceng//9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_apis/build/builds/1132154/artifacts?artifactName=CoreCLRProduct___windows_arm64_release&$format=zip
Downloading  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Downloaded  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 23.103 secs, Download size: 0Bytes
Starting artifact items integrity check
Artifact items integrity check successfully finished
Error: in Download zip - CoreCLRProduct___windows_arm64_release, so retrying => retries pending  : 3
Downloading artifact CoreCLRProduct___windows_arm64_release from: https://dev.azure.com/dnceng//9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_apis/build/builds/1132154/artifacts?artifactName=CoreCLRProduct___windows_arm64_release&$format=zip
Downloading  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Downloaded  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 23.132 secs, Download size: 0Bytes
Starting artifact items integrity check
Artifact items integrity check successfully finished
Error: in Download zip - CoreCLRProduct___windows_arm64_release, so retrying => retries pending  : 2
Downloading artifact CoreCLRProduct___windows_arm64_release from: https://dev.azure.com/dnceng//9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_apis/build/builds/1132154/artifacts?artifactName=CoreCLRProduct___windows_arm64_release&$format=zip
Downloading  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Downloaded  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 27.139 secs, Download size: 0Bytes
Starting artifact items integrity check
Artifact items integrity check successfully finished
Error: in Download zip - CoreCLRProduct___windows_arm64_release, so retrying => retries pending  : 1
Downloading artifact CoreCLRProduct___windows_arm64_release from: https://dev.azure.com/dnceng//9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_apis/build/builds/1132154/artifacts?artifactName=CoreCLRProduct___windows_arm64_release&$format=zip
Downloading  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Downloaded  to D:\workspace\_work\1\s\__download__\CoreCLRProduct___windows_arm64_release.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 21.118 secs, Download size: 0Bytes
Starting artifact items integrity check
Artifact items integrity check successfully finished
##[error]Failed in Download zip - CoreCLRProduct___windows_arm64_release with error: Failed to extract package with error Error: You cannot extract a file outside of the target path
Successfully downloaded artifacts to D:\workspace\_work\1\s/__download__
##[error]Failed to extract package with error Error: You cannot extract a file outside of the target path

Runfo Tracking Issue: Failure to extract packages

Definition Build Kind Job Name

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 0 0

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on May 11, 2021
  2. Chrisboh commented on May 11, 2021

    @Chrisboh
    Member

    @dotnet/dnceng could you take a look at this and see if this is part of the AzDo issues we are currently seeing?

  3. ericstj commented on May 11, 2021

    @ericstj
    Member

    Has anyone inspected the ZIP to see if it has malformed entries? Things like a rooted (\foo) or relative (..) archive entry might cause that error.

  4. hoyosjs commented on May 11, 2021

    @hoyosjs
    Member

    Also, a quick scan through the hits I saw on runfo - all of them seem to be on Windows. Before most of our corruption at download was seen on Linux/macOS. @ericstj this is at download time, so unlikely. The only validation done at this stage on the artifact is that the file size matches the size in the manifest (this was added in microsoft/azure-pipelines-tasks#14065). I am wondering if the asset manifest is correct here, or if it matches whatever typescript considers to be file size when checking the artifact in https://github.com/microsoft/azure-pipelines-tasks/blob/c9771bc064cd60f47587c68e5c871b7cd13f0f28/Tasks/DownloadBuildArtifactsV0/download_helper.ts#L37.

  5. chcosta commented on May 11, 2021

    @chcosta
    Member

    Thanks for reporting this, I'm taking a look.

  6. hoyosjs commented on May 11, 2021

    @hoyosjs
    Member

    @chcosta I just checked this manually. The manifest size and the size reported by powershell on the asset reported in the issue and they do differ quite a bit: 208496577 in manifest vs 207457787 in pwsh.

  7. chcosta commented on May 11, 2021

    @chcosta
    Member

    Seems weird to me that the artifact is a zip that has a folder which contains a zip that has the contents. I'm trying to understand how the runtime repo is packaging these artifacts, but it's taking me a while to sort through the mass of yamls.

  8. hoyosjs commented on May 11, 2021

    @hoyosjs
    Member

    You can take a look at eng\pipelines\common\upload-artifact-step.yml. There's an equivalent download one on the same folder.

  9. hoyosjs commented on May 11, 2021

    @hoyosjs
    Member

    You're right, the zip inside does have the expected size - 208496577. However, the task link for the reported failed download gives me a zip with the wrong size. I wonder if they are checking the size prior to decompression and that's why it fails.

  10. chcosta commented on May 11, 2021

    @chcosta
    Member
  11. chcosta commented on May 11, 2021

    @chcosta
    Member

    Azdo has made a rollback of an update, and Juan is monitoring to ensure the issue is resolved. If it's not, we'll jump on another call tomorrow.

  12. hoyosjs commented on May 12, 2021

    @hoyosjs
    Member

    Removing blocking CI. No new instances have been spotted since the rollback happened.

  13. removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on May 12, 2021
  14. sandreenko commented on May 12, 2021

    @sandreenko
    Contributor
  15. hoyosjs commented on May 12, 2021

    @hoyosjs
    Member

    @sandreenko yes. Different issue. The other one was a Windows only issue. Taking a quick look.

  16. hoyosjs commented on May 12, 2021

    @hoyosjs
    Member

    Have you seen it in multiple PRs? I see they appear to have tried to fix the task and updated it. But I don't see any other instances except one from over a week ago.

  17. sandreenko commented on May 13, 2021

    @sandreenko
    Contributor

    Have you seen it in multiple PRs? I see they appear to have tried to fix the task and updated it. But I don't see any other instances except one from over a week ago.

    No, I saw it in my PR after I added a commit to it, the neighbor runs did not have this issue.

  18. ViktorHofer commented on Sep 7, 2021

    @ViktorHofer
    Member

    Closing as resolved.

  19. ghost locked as resolved and limited conversation to collaborators on Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions