-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npm ci gives timeout error on gitlab runner #7076
Comments
yes,me too;I also experience timeout errors;I tried many times, but it didn't work; |
Hi, |
The same problem. |
Hi @Larsjep, thanks for pointing out your issue. Just wanted to confirm how did you check how many connections |
I'm using wireshark and noticing when and how many SYN packages it sends. |
I see. Using |
We were seeing the same issue on our Now that I'm trying to upgrade our systems to |
We had this problem on using the |
Hi guys, posting here as well for visibility. Looks like an issue with the new |
Hello guys, has somebody solved this issue? Im having the same problem, using node:20, my npm version is 10.2.4 and im getting the same error. I tried to do
|
We face the same issue in our Gitlab pipelines and were forced to pin our node version to
Result: In both installs with npm 10.x I could see long running requests for some packages as stated in the other comments. It's not always the same package, so it feels like a npm 10.x issue. Within the Gitlab CI pipeline it becomes a serious blocker as the jobs take much longer and often fail. |
You should try to use: Despite all this, when using this npm ci command above with cache and prefer offline, my gitlab ci/cd is constantly failing at random on one or more jobs. It's very frustrating! And I don't understand why npm doesn't give this issue more attention. As you notice a lot of developers are effected by this. |
I'm still seeing issue with this on my gitlab pipelines as well, inside of Dockerfiles within the CI/CD pipelines. I am using
|
Because it's not yet released. See: nodejs/node#52351 |
Hey everyone! Just wanted to post here, maybe some of you might have an idea. I somehow get this error, when executing npm install with the help of a gitlab runner. I don't have any idea what's going on... The error message says basically nothing, I don't see status codes other than 200 in the verbose logs. Is this truly a network issue? I have increased the fetch retries to 5, however, I don't see any retries actually happening (or at least, not logged then). What I see is that fetches slow down over time. Before it would crash, I see this kind of logs: Why am I not seeing retries? My problem is strange, because my jobs not always fail! Even when increasing the Anyone? Anything?? Would be appreciated very much. |
I have the feeling I'm repeating myself. But this npm fix is not yet part of nodejs. See open PR until further notice: nodejs/node#52505 Then update to nodejs v22. V16 is end of life. |
@IceBjerg try |
node:18 is a workaround for npm/cli/issues/7076
Hi folks, any news regarding this issue ?
|
Are you behind a corporate firewall? You might need to setup a proxy or use a local artifactory server assuming you are within a business. |
Nope I am using GKE, privates nodes, I have a Cloud Nat in order to access to Internet |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
We are running using the
node:18
docker image in our CI pipeline running on self hosted Gitlab runner. The runner is hosted on a VM running on GCP and our gitlab is running on GKE v.127.We started having this error a week ago. This is not a runner issue since we are able to install packages using pip and
mix deps.get
for elixir and only npm fails. We are not using any proxy and internet is reachable from docker containers.The runner is configured with the docker executor.
The exact error is:
We were able to solve this issue by setting
network_mode="host"
in the gitlab runner's config but this breaks the container services communication which we need for the builds.Expected Behavior
Running
npm ci
should fetch the packages from npm registry correctly.Steps To Reproduce
Environment
node:18
docker image - v18.19.0The text was updated successfully, but these errors were encountered: