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

Installing [email protected] fails continuously for unknown reasons. #838

Open
2 of 5 tasks
oliversalzburg opened this issue Aug 25, 2023 · 8 comments
Open
2 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@oliversalzburg
Copy link

Description:
When I try to install 19.6.0, the pipeline hangs on the setup-node step for 25 minutes and then fails.

Action version:
v3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Node: 19.6.0

Repro steps:
I wish I knew. I hope it's not just the NodeJS version that is causing this.

Expected behavior:
Node is installed.

Actual behavior:

Attempting to download 19.6.0...
Not found in manifest. Falling back to download directly from Node
Acquiring 19.6.0 - x64 from https://nodejs.org/dist/v19.6.0/node-v19.6.0-linux-x64.tar.gz
aborted
Waiting 13 seconds before trying again
aborted
Waiting 16 seconds before trying again
Error: aborted

The URL works just fine for me.

@oliversalzburg oliversalzburg added bug Something isn't working needs triage labels Aug 25, 2023
@oliversalzburg
Copy link
Author

After many retries it finally completed, after 30m runtime for the step. I have no idea what's going on.
image

@dusan-trickovic
Copy link

Hello, @oliversalzburg! Thank you for reporting the issue, we will take a closer look into it and see what can be done :)

@oliversalzburg
Copy link
Author

I'm sure there is nothing really wrong with this specific version, and I've seen other issues that report problems with non-LTS versions. Maybe some good workaround could be suggested for this. Or maybe some troubleshooting mode to at least be able to see the response headers from nodejs.org.

@dusan-trickovic
Copy link

dusan-trickovic commented Aug 28, 2023

Hello again @oliversalzburg ! Thank you for pointing that out. Based on the version you were trying to install, given that it's a non-LTS one, there's a high chance that this issue isn't on our side to begin with. Those get fetched directly from nodejs.org and, therefore, their availability pretty much completely depends on outside factors (most likely the availability of their servers at that time).

Have you tried setting it up and running the workflow again since the last time? Were there any changes? Maybe even used self-hosted runners (you can find out more about them in our docs)? They provide some more flexibility in terms of hardware and OS and could, possibly, help you cut down the time it takes for your selected version to be downloaded (you would likely just need to install it locally first).

In any case, I will discuss your troubleshooting mode suggestion with the team and see what can be done on that front. For more verbose outputs and information, though, you could also enable debugging on your repo and see if that provides a better insight into the processes happening at the step level.

Thank you very much for your cooperation! :)

@oliversalzburg
Copy link
Author

@dusan-trickovic I completely accept that this is an upstream issue. I felt like maybe too many GitHub hosted runners try to pull NodeJS versions from their server and they might just try to limit their traffic. I can relate to that.

We have since been able to get the pipeline running after many retries. Given that we only needed this version a few times to zero in on an issue, it's no longer blocking us.

We're looking into self-hosted runners for other reasons, but I'm sure this would help.

I guess, this is a documentation issue at best. I'm not sure if this makes any sense, but could there be a mode of operation where you can drop the .tar.xz NodeJS package into the repo and have setup-node install it?

@justvanrossum
Copy link

justvanrossum commented Sep 14, 2023

FWIW, I'm currently also (intermittently) experiencing this issue, actions/setup-node@v3, node-version: [19.x]

@phuwin
Copy link

phuwin commented Sep 15, 2023

Same here with

Run actions/setup-node@v1
  with:
    node-version: 18.17.0
    registry-url: https://npm.pkg.github.com/
    always-auth: false

@viniciuspalma
Copy link

Problem continues, github action gets stuck for about 30min. Can at least it has a backoff policy and stop the retrying. This costs 💵 💵

ruyadorno added a commit to GoogleCloudPlatform/cloud-sql-nodejs-connector that referenced this issue Sep 27, 2023
Removing deprecated node19 version from CI since it's currently having
problems to run on GitHub actions.

Refs: actions/setup-node#838
ruyadorno added a commit to GoogleCloudPlatform/cloud-sql-nodejs-connector that referenced this issue Sep 27, 2023
Removing deprecated node19 version from CI since it's currently having
problems to run on GitHub actions.

Refs: actions/setup-node#838
ruyadorno added a commit to GoogleCloudPlatform/cloud-sql-nodejs-connector that referenced this issue Sep 27, 2023
Removing deprecated node19 version from CI since it's currently having
problems to run on GitHub actions.

Refs: actions/setup-node#838
fharper added a commit to konstructio/kubefirst-docs that referenced this issue Oct 10, 2023
See actions/setup-node#838 for more information on the problem with v19.6.0 & non-LTS versions. I also updated to the latest version the actions/checkout, actions/setup-node & actions/cache GitHub Actions.
@nikolai-laevskii nikolai-laevskii self-assigned this Oct 18, 2023
fharper added a commit to konstructio/kubefirst-docs that referenced this issue Oct 24, 2023
See actions/setup-node#838 for more information on the problem with v19.6.0 & non-LTS versions. I also updated to the latest version the actions/checkout, actions/setup-node & actions/cache GitHub Actions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants
@oliversalzburg @viniciuspalma @justvanrossum @phuwin @dusan-trickovic @nikolai-laevskii @aparnajyothi-y and others