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

Downloading from nodejs.org failing #77

Closed
paglias opened this issue Oct 23, 2019 · 39 comments
Closed

Downloading from nodejs.org failing #77

paglias opened this issue Oct 23, 2019 · 39 comments
Labels
external Unexpected behavior was caused by external problems

Comments

@paglias
Copy link

paglias commented Oct 23, 2019

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 }}
....
@rashedmyt
Copy link

I am also having the same issue

@m4rkmckenna
Copy link

Same issue on ubuntu-latest

@chingc
Copy link

chingc commented Oct 23, 2019

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.

@abatilo
Copy link

abatilo commented Oct 23, 2019

I'm having the same problem!

@dijam
Copy link

dijam commented Oct 23, 2019

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

@ronaldtse
Copy link

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.

@vibou
Copy link

vibou commented Oct 23, 2019

Same here ! What's going on !

@timofeee
Copy link

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

@nicubarbaros
Copy link

nicubarbaros commented Oct 23, 2019

Same here! With node 8.15.

@andrew-boyd
Copy link

Possibly related to widespread DNS issues from AWS?

@simon300000
Copy link

Having problem with node 12 ubuntu-latest

@nicubarbaros
Copy link

Suddenly completed after rerunning the same action couple of times

@vibou
Copy link

vibou commented Oct 23, 2019

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 ?

@panva
Copy link
Contributor

panva commented Oct 23, 2019

Screenshot 2019-10-23 18 00 21

dtto, only a different error.

@dmail
Copy link

dmail commented Oct 23, 2019

I encountered a 500 error once too, maybe unrelated.

@panva
Copy link
Contributor

panva commented Oct 23, 2019

I encountered a 500 error once too, maybe unrelated.

saw that too

@tunnckoCore
Copy link

tunnckoCore commented Oct 23, 2019

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

Same here.

@simon300000
Copy link

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

@panva
Copy link
Contributor

panva commented Oct 23, 2019

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

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

@chingc
Copy link

chingc commented Oct 23, 2019

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

See this issue: nodejs/build#1993

@nicubarbaros
Copy link

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

Rerun check

@tunnckoCore
Copy link

It's working for couple of hours already.

@rigobcastro
Copy link

Same issue here

image

@edward-soetiono-asto
Copy link

lost so many hours from this error

any alternative?

@tunnckoCore
Copy link

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

@bryanmacfarlane
Copy link
Member

UPDATE:

Yes, it's external and nodejs downloads (not a CDN) is having. This action just downloads from their endpoint.

nodejs/build#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 bryanmacfarlane added the external Unexpected behavior was caused by external problems label Oct 24, 2019
@bryanmacfarlane bryanmacfarlane changed the title Action failing Downloading from nodejs.org failing Oct 24, 2019
@chingc
Copy link

chingc commented Oct 24, 2019

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

@neo
Copy link

neo commented Oct 29, 2019

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

@lol768
Copy link

lol768 commented Oct 29, 2019

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

@blane1988
Copy link

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

@Avinger27
Copy link

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

@blane1988
Copy link

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

@daiky00
Copy link

daiky00 commented Feb 24, 2020

I just ran into this issue today

@Etherdaemon
Copy link

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

@ssannidhi-palo
Copy link

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

@kitmoovup
Copy link

Same issue.

k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
k-matsuzawa added a commit to cryptogarageinc/libwally-core that referenced this issue Mar 2, 2020
@Kostanos
Copy link

the similar issue maybe?
image

@gustavlindstroms
Copy link

My issue might be realated

image

@dmitry-shibanov
Copy link
Contributor

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.

krzyk pushed a commit to krzyk/setup-node that referenced this issue Apr 11, 2023
deining pushed a commit to deining/setup-node that referenced this issue Nov 9, 2023
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.23.0 to 0.24.1.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](vercel/ncc@0.23.0...0.24.1)

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
external Unexpected behavior was caused by external problems
Projects
None yet
Development

No branches or pull requests