setup-node icon indicating copy to clipboard operation
setup-node copied to clipboard

Downloading from nodejs.org failing

Open paglias opened this issue 7 years ago • 39 comments

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 Schermata 2019-10-23 alle 16 22 25

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 }}
....

paglias avatar Oct 23 '19 14:10 paglias

Did you run the action with the re-run check or you trigger the workflow with an event ?

Rerun check

nicubarbaros avatar Oct 24 '19 07:10 nicubarbaros

It's working for couple of hours already.

tunnckoCore avatar Oct 24 '19 07:10 tunnckoCore

Same issue here

image

rigobcastro avatar Oct 24 '19 14:10 rigobcastro

lost so many hours from this error

any alternative?

edward-soetiono-asto avatar Oct 24 '19 15:10 edward-soetiono-asto

as I understand it's upstream, so...

tunnckoCore avatar Oct 24 '19 15:10 tunnckoCore

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 avatar Oct 24 '19 22:10 bryanmacfarlane

@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.

chingc avatar Oct 24 '19 23:10 chingc

I think having a cached version in the image would definitely help!

neo avatar Oct 29 '19 16:10 neo

Just ran into this today - would also appreciate a cache service.

lol768 avatar Oct 29 '19 16:10 lol768

Same. The past hour has seen many failures for the Node action. Some jobs it will work, but most don't.

blane1988 avatar Oct 29 '19 16:10 blane1988

Running into this today. is anyone still facing this issue?

Avinger27 avatar Jan 19 '20 23:01 Avinger27

@Avinger27 It is running fine for me. Are you still facing the issue?

blane1988 avatar Jan 20 '20 18:01 blane1988

I just ran into this issue today

daiky00 avatar Feb 24 '20 00:02 daiky00

Facing this issue today on Azure DevOps - I've had 1 build go past the nodeTool install successfully out of 8 so far.

Etherdaemon avatar Feb 24 '20 01:02 Etherdaemon

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

image

ssannidhi-palo avatar Feb 24 '20 02:02 ssannidhi-palo

Same issue.

kitmoovup avatar Feb 24 '20 07:02 kitmoovup

the similar issue maybe? image

Kostanos avatar May 18 '20 15:05 Kostanos

My issue might be realated

image

gustavlindstroms avatar Aug 30 '20 10:08 gustavlindstroms

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.

dmitry-shibanov avatar Nov 12 '21 14:11 dmitry-shibanov