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] Failed to download artifact after 1 retries due to Not a valid zip file. #377

Open
ldeluigi opened this issue Feb 11, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@ldeluigi
Copy link

What happened?

Our CI/CDs are all failing when attempting to download a single file artifact, with the following error:

Redirecting to blob download url: https://productionresultssa17.blob.core.windows.net/actions-results/dca413c8-be14-4b73-8b1f-9ea21c8bfd4f/workflow-job-run-d6064804-82d8-5d56-5302-5ab7f96c1206/artifacts/2d676fe19cda0e5804065c49908b2efddee7e9292fc98073010f7977f80272a3.zip
Starting download of artifact to: /home/runner/work/dappertutto-booking/dappertutto-booking/publish/openapi
(node:1726) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
##[debug]Failed to download artifact after 1 retries due to Not a valid zip file. Retrying in 5 seconds...
Artifact download completed successfully.
Artifact download completed successfully.
##[debug]Failed to download artifact after 2 retries due to Not a valid zip file. Retrying in 5 seconds...
##[debug]Failed to download artifact after 3 retries due to Not a valid zip file. Retrying in 5 seconds...
##[debug]Failed to download artifact after 4 retries due to Not a valid zip file. Retrying in 5 seconds...
##[debug]Failed to download artifact after 5 retries due to Not a valid zip file. Retrying in 5 seconds...
Error: Unable to download artifact(s): Unable to download and extract artifact: Artifact download failed after 5 retries.

We are using the action without an input to download all artifacts available

What did you expect to happen?

Artifacts should download without error.

How can we reproduce it?

Our workflow is publicly available at https://github.com/EasyDesk/workflows/tree/3218c7008b83d4f35eacdb90f389d8d5b9d19f1f
And works with any dotnet project

Anything else we need to know?

No response

What version of the action are you using?

v4

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

No response

@ldeluigi ldeluigi added the bug Something isn't working label Feb 11, 2025
@ldeluigi
Copy link
Author

I solved this issue by disabling the generation of the build record from docker/build-push-action by setting DOCKER_BUILD_RECORD_UPLOAD=false in my job, but this doesn't explaing why the download action fails with that artifact

@shenxianpeng
Copy link

@shenxianpeng
Copy link

I enabled the debug mode in the next run https://github.com/cpp-linter/clang-tools-static-binaries/actions/runs/13275667377/job/37071217211 and found the following message

##[debug]Failed to download artifact after 1 retries due to ENOSPC: no space left on device, write. Retrying in 5 seconds...

@yacaovsnc
Copy link
Contributor

I solved this issue by disabling the generation of the build record from docker/build-push-action by setting DOCKER_BUILD_RECORD_UPLOAD=false in my job, but this doesn't explaing why the download action fails with that artifact

I believe the docker/build-push-action is uploading a gzip artifact by API, but this download-artifact action expects zip files, hence the error.

For now, the workaround is either to skip the upload, or use the name or pattern input to only download artifacts that were created by the upload-artifact action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants