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

action download fails to extract archive file #544

Closed
2 of 5 tasks
markgoho opened this issue Jul 12, 2022 · 11 comments
Closed
2 of 5 tasks

action download fails to extract archive file #544

markgoho opened this issue Jul 12, 2022 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@markgoho
Copy link

markgoho commented Jul 12, 2022

Description:
The setup-node action cannot be downloaded

Action version:
v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
n/a

Repro steps:
use the action in a workflow

Expected behavior:
the action downloads and is used

Actual behavior:
the action cannot be downloaded due to:

Download action repository 'actions/setup-node@v3' (SHA:5b9[49](https://github.com/ideacrew/enroll/runs/7309204561?check_suite_focus=true#step:1:53)b50c3461bbcd5a540b150c368278160234a)
##[debug]Download 'https://api.github.com/repos/actions/setup-node/tarball/5b949b50c3461bbcd5a540b150c368278160234a' to '/home/runner/work/_actions/_temp_5db10cf7-c813-4a48-be47-45d74a09eaa7/77720dc4-ac1f-4e76-9010-ecf0b2b7adb2.tar.gz'
Error: Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_5db10cf7-c813-4a48-be47-45d74a09eaa7/77720dc4-ac1f-4e76-9010-ecf0b2b7adb2.tar.gz. return code: 2.
##[debug]System.NotSupportedException: Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_5db10cf7-c813-4a48-be47-45d74a09eaa7/77720dc4-ac1f-4e76-9010-ecf0b2b7adb2.tar.gz. return code: 2.

here is a dump from a successful download action:

Download action repository 'actions/checkout@v3' (SHA:25[41](https://github.com/ideacrew/enroll/runs/7309204561?check_suite_focus=true#step:1:45)b1294d2704b0964813337f33b291d3f8596b)
##[debug]Download 'https://api.github.com/repos/actions/checkout/tarball/2541b1294d2704b0964813337f33b291d3f8596b' to '/home/runner/work/_actions/_temp_8658b1a3-50c0-48d5-a019-faa131ff87a7/a304dd22-9a2a-4980-bd2d-4e2fd9524024.tar.gz'
##[debug]Unwrap 'actions-checkout-2541b12' to '/home/runner/work/_actions/actions/checkout/v3'
##[debug]Archive '/home/runner/work/_actions/_temp_8658b1a3-50c0-48d5-a019-faa131ff87a7/a304dd22-9a2a-4980-bd2d-4e2fd9524024.tar.gz' has been unzipped into '/home/runner/work/_actions/actions/checkout/v3'.
@markgoho markgoho added bug Something isn't working needs triage labels Jul 12, 2022
@djalmaaraujo
Copy link

djalmaaraujo commented Jul 12, 2022

Having the same problem for actions/setup-node@v3. Blocking our repo from using the main branch. Trying with actions/setup-node@v2, I will update if it works for our case.

@amhunt
Copy link

amhunt commented Jul 12, 2022

Same here. Interestingly, it seems to work ~20% of the time (so we're rerunning CI jobs a bunch atm 😂)

@ddzz
Copy link

ddzz commented Jul 12, 2022

Seeing the same issue here.

@dudadornelles
Copy link

Try using a different cache key or clearing the cache - things worked after I cleared the node cache entries we had but unclear if it was luck

@djalmaaraujo
Copy link

Can confirm actions/setup-node@v2 works on our case. I am not sure how to clear the cache. Should we remove the line that mention cache in the config and, after a successful build, add again? @dudadornelles

@dmitry-shibanov
Copy link
Contributor

Hello everyone. Thank you for your reports. I think it's GitHub internals issue because the same behaviour can be reproduced with some other actions.

@dudadornelles
Copy link

@djalmaaraujo afaik you can only delete using the api, this may be helpful https://gist.github.com/dudadornelles/eacf6f3a796a0b509fac9ef9a7da59b9

@ddzz
Copy link

ddzz commented Jul 14, 2022

Has this issue been resolved?

@dmitry-shibanov
Copy link
Contributor

Hello @ddzz. It was not fixed by this release because it looks like the issue from other side because the similar behaviour can be reproduced with other actions.
I think it is related issue: actions/runner#1923

@dmitry-shibanov dmitry-shibanov self-assigned this Jul 14, 2022
@dmitry-shibanov
Copy link
Contributor

Hello everyone. Does it still reproduce for you? According to the comment it should work as expected actions/runner#1923 (comment)

@dmitry-shibanov
Copy link
Contributor

Hello everyone. For now It looks like the action works as expected. I'm going to close because according to the comment the issue was fixed

deining pushed a commit to deining/setup-node that referenced this issue Nov 9, 2023
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

6 participants