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

I am also having the same issue

rashedmyt avatar Oct 23 '19 14:10 rashedmyt

Same issue on ubuntu-latest

m4rkmckenna avatar Oct 23 '19 14:10 m4rkmckenna

I'm also having the same problem. One thing I noticed on my CircleCI builds is nvm is failing to download nodejs. The download is so slow that it will timeout, then the installation fails due to an incomplete download.

I'm think it might be a similar problem affecting this action. If it's the same issue, it would be nice if there was some kind of automatic resume so it doesn't keep trying to download from the beginning.

chingc avatar Oct 23 '19 14:10 chingc

I'm having the same problem!

abatilo avatar Oct 23 '19 14:10 abatilo

I retied couple of times. Waited 10 min, a cup of coffee, tried again and it worked.

dijam avatar Oct 23 '19 14:10 dijam

Same issue, retried couple of times but still didn't work. https://github.com/metanorma/isodoc/runs/271773491

Seems like an issue from upstream, but could this action use locally installed Node.js?

GHA help says that Node.js 10.16 is installed on Ubuntu 16.04 and 18.04.

ronaldtse avatar Oct 23 '19 15:10 ronaldtse

Same here ! What's going on !

vibou avatar Oct 23 '19 15:10 vibou

Just experimenting right now with Actions, good to know it's not something I messed up

timofeee avatar Oct 23 '19 15:10 timofeee

Same here! With node 8.15.

nicubarbaros avatar Oct 23 '19 15:10 nicubarbaros

Possibly related to widespread DNS issues from AWS?

andrew-boyd avatar Oct 23 '19 15:10 andrew-boyd

Having problem with node 12 ubuntu-latest

simon300000 avatar Oct 23 '19 15:10 simon300000

Suddenly completed after rerunning the same action couple of times

nicubarbaros avatar Oct 23 '19 15:10 nicubarbaros

Suddenly completed after rerunning the same action couple of times

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

vibou avatar Oct 23 '19 15:10 vibou

Screenshot 2019-10-23 18 00 21

dtto, only a different error.

panva avatar Oct 23 '19 16:10 panva

I encountered a 500 error once too, maybe unrelated.

dmail avatar Oct 23 '19 16:10 dmail

I encountered a 500 error once too, maybe unrelated.

saw that too

panva avatar Oct 23 '19 16:10 panva

Nope. It's because of the action, I'm sure.

Same here.

tunnckoCore avatar Oct 23 '19 16:10 tunnckoCore

I just noticed node published v13 yesterday, might it be related?

simon300000 avatar Oct 23 '19 16:10 simon300000

I just noticed node published v13 yesterday, might it be related?

No, i had node 13 builds running fine 7 hours ago.

panva avatar Oct 23 '19 16:10 panva

It's a download issue. Node is failing to download which causes tar or 7z to fail when trying to extract.

See this issue: https://github.com/nodejs/build/issues/1993

chingc avatar Oct 23 '19 16:10 chingc