Downloading from nodejs.org failing
I'm not sure this is the best repo to report the issue, if it's the wrong place please close this :)
We've been using Github Actions successfully for a few days but starting today all our builds have started to fail at the setup-node step with this error:
4m 57s
##[error]Node run failed with exit code 1
Run actions/setup-node@v1
with:
node-version: 12.x
always-auth: false
/bin/tar xzC /home/runner/work/_temp/83341e1a-c86d-4ddb-9963-ef01607f6e1e -f /home/runner/work/_temp/58fc8365-fe95-474e-ad3c-c5511594abdd
gzip: stdin: unexpected end of file
/bin/tar: Unexpected EOF in archive
/bin/tar: Unexpected EOF in archive
/bin/tar: Error is not recoverable: exiting now
##[error]The process '/bin/tar' failed with exit code 2
##[error]Node run failed with exit code 1
Attaching a screenshot for more clarity

You can see an example of a failed build here https://github.com/HabitRPG/habitica/pull/11474/checks?check_run_id=271716057.
The code of the workflow is the standard one that can be seen in the official docs
steps:
.....
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
....
Did you run the action with the re-run check or you trigger the workflow with an event ?
Rerun check
It's working for couple of hours already.
Same issue here

lost so many hours from this error
any alternative?
as I understand it's upstream, so...
UPDATE:
Yes, it's external and nodejs downloads (not a CDN) is having. This action just downloads from their endpoint.
https://github.com/nodejs/build/issues/1993
We do have a workitem to cache the latest of each major version on our hosted images and this action checks that cache first (resolved the semver you supply against the cache and if not there queries the cloud).
Downside is you may not get absolute latest (image gen'd yesterday, patch released today). but we have a plan for that as well - an option in the action to always query for cloud first.
You could also fall back on failure the only issue with that takes a long time every invocation when an issue like this is happening and it's a fresh machine every time.
Thoughts?
@bryanmacfarlane I think adding automatic resume to interrupted downloads would be great too. From what I can tell, the file IS being downloaded but it's so slow it can't finish before timing out.
I think having a cached version in the image would definitely help!
Just ran into this today - would also appreciate a cache service.
Same. The past hour has seen many failures for the Node action. Some jobs it will work, but most don't.
Running into this today. is anyone still facing this issue?
@Avinger27 It is running fine for me. Are you still facing the issue?
I just ran into this issue today
Facing this issue today on Azure DevOps - I've had 1 build go past the nodeTool install successfully out of 8 so far.
Facing this issue today on github actions, with ubuntu-18.04 and node 12.14
test: runs-on: ubuntu-18.04 name: Run unit & integration tests steps: - uses: actions/checkout@v1 - name: Setup Node.js uses: actions/setup-node@v1 with: node-version: 12.14

Same issue.
the similar issue maybe?

My issue might be realated

Hello everyone. We released tag v2 for setup-node. It should resolve some issues related downloading. For details you can take a look on this comment and issue. For now I'm closing the issue. If you have any concerns feel free to ping us.