-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Actions fail intermittently due to NPM ECONNRESET #3737
Comments
Hi @rijkvanzanten! |
Well, found the link with connreset |
A more recent run which seems to hit the same error: https://github.com/directus/directus/runs/3080883194?check_suite_focus=true |
@rijkvanzanten old logs are not available as the retention policy has been configured to 5 days. |
Hi y'all! Thanks for the swift replies!
I would agree, it feels like a weird intermittent connection issue between Actions and NPM. Not sure on what side of the equation it goes wrong though..
I could see this, however, I run
Gotcha, the error message threw me off there. Should I open a separate ticket here/elsewhere to pick that up?
It seems to happen on a regular name: Debug NPM connection
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: |
npm install
Hard to tell with exact accuracy due to the logs retention, though I would estimate between 1-5% of the runs. |
Hey, @rijkvanzanten ! |
Makes sense, I understand this is too much of an edge case to be able to efficiently research and resolve. As for any concerns, the only one I have is that I'd rather not have our CI fail randomly of course 😅 Is there anything I can do from our side to debug this issue further when it happens? |
@rijkvanzanten please let us know as soon as you get it and provide the links to the failed runs. We will check the underlying infrastructure for the particular run. |
Will do! |
Hey folks, bumping an old thread here, we're seeing a lot of ECONNRESET issues, primarily in one action: actions/setup-dotnet#333 No recent change in the action, is this an issue with the virtual environment? |
Multiple runs failed from a long time ago, especially in QEMU-based ARM64 docker image building, but amd64 builder is working: ARM64 using QEMU: Successful runs using AMD64 directly (same commit): |
This can be reproduced stably using GH-Hosted runner on my side. |
I have been seeing this intermittently in my org as well. Self hosted runners, running version 2.312.0 on Ubuntu 22.04.03 |
Seeing this pretty often using stock actions/setup-node@v4
under
|
Also seeing this pretty often now, I'm getting the following log:
For the following action (the error comes specifically from the
|
I get this on macOS runners: Current runner version: '2.314.1'
Operating System
macOS
12.7.3
21H1015
Runner Image
Image: macos-12
Version: 20240218.1
Included Software: https://github.com/actions/runner-images/blob/macOS-12/20240218.1/images/macos/macos-12-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20240218.1
Runner Image Provisioner
2.0.341.1+ea3907f30f87ddf37e44fa45b753abddb03811b4 |
Getting the below error intermittently but regularly.
EDIT: using runner |
I'm getting a similar (and reproducible) error for an QEMU-based
Dockerfile
CICD yaml build job:
Any way to fix it @miketimofeev? |
FYI: Upgrading to Node 20 in the Dockerfile fixed the problem for me... |
I solved this by upgrading to Node 20 and enforcing IPv4, see force-ipv4 action. |
It's worth noting that npm just closed a bug (pending release) where too many connections were being opened during install: |
I got the same error, exactly as @dadebue describes. Regards, |
The problem is occurring again for me now. Even with Node 20 🤔 |
I also hit this issue often.
|
Description
Every now and again, our actions randomly fail due to an ECONNRESET error coming from NPM, see for example https://github.com/directus/directus/runs/3080202193?check_suite_focus=true, https://github.com/directus/directus/pull/5754/checks?check_run_id=2617592226, https://github.com/directus/directus/runs/2611005993 or https://github.com/directus/directus/runs/2602577476.
I reached out to GitHub Support about this, who referenced me to this repo.
Virtual environments affected
Image version and build link
n/a. Getting a
Error: We are currently unable to download the log. Please try again later.
message now..Is it regression?
No response
Expected behavior
The connection to NPM shouldn't fail
Actual behavior
The connection to NPM fails
Repro steps
npm ci
The text was updated successfully, but these errors were encountered: