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

[error]The process '/bin/tar' failed with exit code 2 #51

Closed
de-jcup opened this issue Apr 6, 2020 · 7 comments
Closed

[error]The process '/bin/tar' failed with exit code 2 #51

de-jcup opened this issue Apr 6, 2020 · 7 comments

Comments

@de-jcup
Copy link

de-jcup commented Apr 6, 2020

Problem description

Sometimes I got errors at my build showing

The process '/bin/tar' failed with exit code 2

as shown in next picture:
image

When using setup-go V1 I had today such problems with
https://github.com/Daimler/sechub/runs/564346427?check_suite_focus=true
But doing a retry it worked (same commit ID):
https://github.com/Daimler/sechub/runs/564357022?check_suite_focus=true

Problem seems to be already fixed for setup-node

At actions/setup-node#116 the same problem was found for setup-node action. There was a bugfix done and issue closed - so was this only fixed for setup-node? IMHO there should be another fix for go, or former bugfix did not work. Or the fix did not effect setup-go V1?

@VascoFerraro
Copy link

I have been seeing this since this morning.

pipeline

@qnkhuat
Copy link

qnkhuat commented Apr 6, 2020

Same here. I got 2/12 success build today.

@bryanmacfarlane
Copy link
Member

@VascoFerraro - please report the node issues in the setup-node repo. Note that nodejs is having outages this morning (where that targz is downloaded from).

@de-jcup I think the same thing may have happened with setup go.

I think both should validate the download targz after downloading with a sha or checksum before attempting to extract. In some failure cases, if it's being streamed and they are having issues, it can lead to an incomplete, zero byte or corrupt targz.

@de-jcup
Copy link
Author

de-jcup commented Apr 6, 2020

@bryanmacfarlane Thank you for your reply. Maybe it would be better for GitHub actions to have a cache mechanism or a proxy server for standard binaries/parts (e.g. gradle, maven, go, java , etc.) so become more independant from other servers?

At business I normally use repository servers (e.g. artifactory, NEXUS, etc.) to reduce network traffic, maybe even check security vulnerabilites in libraries and also become independent from external network.

Another option would be : GitHub does provide GitHub Packages itself. So maybe using GitHub Packages for those dependencies could be an option as well?

@bhautikpip
Copy link

Same here. I have been seeing this error since today morning. (https://github.com/aws/aws-xray-sdk-go/pull/194/checks?check_run_id=565254625)

@bryanmacfarlane
Copy link
Member

bryanmacfarlane commented Apr 9, 2020

@de-jcup We are working on a CDN cache to insulate from these type of issues and get better perf from locality of data centers with edge caching. We are also working on getting latest versions directly on the hosted VM images to short circuit any downloads at all in common cases:

actions/toolkit#382

In the meantime, you may also want to try setup-go@v2-beta which added some better error handling and retries. I'm hoping to release v2 today so maybe wait for that.

@bryanmacfarlane
Copy link
Member

setup-go@v2 is released and has better error handling for this error (with retries). So I'm going to close this. There's a larger effort started to cache some of these distributions but that's tracked elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants