Repository navigation
Closed
Closed
Copy link
Labels
Description
Nixpkgs version
- Unstable (26.11)
Describe the bug
When building a pnpm 11 package's pnpmDeps attribute, the log is spammed with:
qui-web-pnpm-deps> (node:7511) Warning: File descriptor 46 opened in unmanaged mode twice
qui-web-pnpm-deps> (node:7511) Warning: File descriptor 46 closed but not opened in unmanaged mode
qui-web-pnpm-deps> (node:7511) Warning: File descriptor 46 opened in unmanaged mode twice
qui-web-pnpm-deps> (node:7511) Warning: File descriptor 46 closed but not opened in unmanaged modeWhen building multiple pnpm 11 packages on an aarch64-darwin GHA runner, after the same log messages the build will fail with:
2026-05-29T09:59:09.4366700Z qui-web-pnpm-deps> /nix/store/0y3vzjqz42dmyasywgr6ipcfb0nwdzvy-stdenv-darwin/setup: line 1831: 7511 Killed: 9 pnpm install --force --ignore-scripts --registry="$NIX_NPM_REGISTRY" --frozen-lockfileSteps to reproduce
This should give you the problematic logs on an aarch64-darwin machine:
nix build github:NixOS/nixpkgs/64c08a7ca051951c8eae34e3e3cb1e202fe36786#autobrr.passthru.autobrr-web.pnpmDeps --rebuildReviewing pnpm 11 PRs with nixpkgs-review-gha will emit the aforementioned logs and likely fail, previous instances:
- qui: update pnpmDeps' fetcherVersion from 3 to 4 #524812 (comment)
- fetchPnpmDeps: fix reproducibility of pnpm v11 store index #522703 (comment)
Expected behaviour
No log spam, no SIGKILL
Screenshots
No response
Relevant log output
Partial logs shown above.
Full logs for a failed GHA runner build: https://github.com/hesiod/nixpkgs-review-gha/actions/runs/26630712578/job/78478560785Additional context
No response
System metadata
N/A
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by Toma, Dennis Eum, Jamie Brynes, Benoît Deveaux, mazzz1y, Changsheng Wu, Anton Vilhelm Ásgeirsson, mortyccp, Menardi, Luke Carrier and 23 more
Activity
[-]fetchPnpmDeps: pnpm 11 build spams logs and gets SIGKILL on GHA runners[/-][+]fetchPnpmDeps: pnpm 11 build spams logs on darwin and gets SIGKILL on GHA runners[/+]LukeCarrier commentedon Jun 5, 2026
I don't yet understand the root cause, but this appears to work around the issue for me:
Working hypothesis is that it's a combination of isaacs/node-graceful-fs#248 and isaacs/node-graceful-fs#258, and the associated pnpm workaround, but I haven't quite figured it out yet.
Boelensman1 commentedon Jun 9, 2026
I'm seeing the same warnings, but am running just a regular pnpm i.
nix 2.34.7+1
pnpm 11.5.2
node v24.15.0
Congee commentedon Jun 10, 2026
Root cause is the nixpkgs build of
nodejs_2424.15.0 on aarch64-darwin, not pnpm: fd tracking inworker_threadsis broken, so any worker doing fs work spams these warnings. A bare worker importing 800 ESM modules triggers 1601 warnings; yarn 4 triggers it too. Official nodejs.org 24.15.0, nixpkgsnodejs_22/nodejs_26, and nixpkgsnodejs_2424.16.0 (nixos-25.11) are all clean.#522655 (24.15.0 → 24.16.0, in staging) fixes it once it reaches master. Meanwhile, a simpler workaround than patching
trackUnmanagedFds:ryand56 commentedon Jun 10, 2026
I'm also experiencing this with wrangler, and also getting:
ibizaman commentedon Jun 29, 2026
The switch to
nodejs 24.16.0didn't help on my side. I still get the error running a simplepnpm install.I tried 0474123 and 10dd8aa which seem to include the aforementioned PR since node is on version
24.16.0:I have this overlay:
The patch above made the warning go away. But I also don't know what that entails. I also tried the patch on pnpm
11.9.0with success.mortyccp commentedon Jun 30, 2026
The root cause is a V8
std::hashODR violation in Node.js 24, not pnpm itself. See the detailed analysis here: #536039 (comment)aduh95 commentedon Aug 13, 2026
Fixed by #536043