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

pnpm and yarn installation hangs and does not appear in processes (Node.js) #359376

Closed
mapinedad opened this issue Nov 26, 2024 · 3 comments
Closed
Labels
2.status: duplicate This is a duplicate of another issue or PR

Comments

@mapinedad
Copy link

Issue description

I am encountering an issue with pnpm while attempting to install dependencies on a NixOS server. The installation process hangs indefinitely during dependency resolution and does not proceed further. Additionally, when inspecting the processes using top or htop, the pnpm process does not appear, which suggests that it might be blocked or stalled without consuming resources.

I've attempted various optimizations and configurations, including clearing the cache, limiting resource usage, and testing network settings, but the issue persists.

The server specifications are:

RAM: 4GB
Swap: 512MB
CPU: 2 cores
Node.js version: 18
pnpm version: Latest
yarn version: Latest
This issue significantly impacts the ability to work with pnpm or yarn on NixOS effectively.

Steps to reproduce

Install Node.js 18 on a NixOS server.
Install pnpm using npm with the command:
npm install -g pnpm
Attempt to install a dependency using pnpm. For example:
pnpm add <package_name> --save-prod --prefer-offline
Observe that the process hangs indefinitely and does not proceed.

Technical details

sheikh@pelagrino-production:~/ > nix-shell -p nix-info --run "nix-info -m"
these 3 paths will be fetched (46.90 MiB download, 206.52 MiB unpacked):
/nix/store/mswlm05dvixp5p7bxgqzk5lzkz30isxm-gcc-12.2.0
/nix/store/061ybr50r1m2jnvih4vvpgmgwb37df3r-gcc-wrapper-12.2.0
/nix/store/dw70k9j6gny70iwxh0jrdnkal4vlbqv6-stdenv-linux
copying path '/nix/store/mswlm05dvixp5p7bxgqzk5lzkz30isxm-gcc-12.2.0' from 'https://cache.nixos.org'...

copying path '/nix/store/061ybr50r1m2jnvih4vvpgmgwb37df3r-gcc-wrapper-12.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/dw70k9j6gny70iwxh0jrdnkal4vlbqv6-stdenv-linux' from 'https://cache.nixos.org'...

  • system: "x86_64-linux"
  • host os: Linux 6.6.58, NixOS, 24.05 (Uakari), 24.05.20241023.32e940c
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.8
  • nixpkgs: /home/sheikh/.nix-defexpr/channels/nixpkgs
@donovanglover
Copy link
Member

Looks like a duplicate of #353709. Try updating your kernel

@Eveeifyeve
Copy link
Contributor

Eveeifyeve commented Dec 6, 2024

Looks like a duplicate of #353709. Try updating your kernel

I confirm this is occurring in kernal 6.6.59 by building modrinth-app.

nix-info:

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.59, NixOS, 24.11 (Vicuna), 24.11.20241105.a04d33c`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/2dnhi8i27vs99rmn2zn3sibhis4jggxf-source`

@FliegendeWurst FliegendeWurst added the 2.status: duplicate This is a duplicate of another issue or PR label Dec 6, 2024
@Eveeifyeve
Copy link
Contributor

Try updating your kernel version to 6.6.63 as this is a duplicate of #353709.
If anymore issues with after updating your kernel version then reopen this issue.

@Eveeifyeve Eveeifyeve closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: duplicate This is a duplicate of another issue or PR
Projects
None yet
Development

No branches or pull requests

4 participants