Failed to find node-v115-linux-x64-musl/pprof.node, glibc available
- Vorherrschende Sprache
- JavaScript
- Sterne
- 291
- Forks
- 37
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
System info: Linux 6bb9818c4ed1 5.15.0-119-generic #129-Ubuntu SMP x86_64 GNU/Linux
Node version: v20.11.1
Yarn version: 3.8.3
Hey folks, I'm trying to run pprof for a NestJS app, I've followed the instructions and added:
```
"pprof": "^4.0.0",
"@google-cloud/profiler": "^6.0.2",
```
to dependencies. I've added basic profiling setup, but I'm getting error:
```
Error: Qualified path resolution failed: we looked for the following paths, but none could be accessed.
Source path: /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/build/node-v115-linux-x64-musl/pprof.node
Not found: /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/build/node-v115-linux-x64-musl/pprof.node
Not found: /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/build/node-v115-linux-x64-musl/pprof.node.js
Not found: /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/build/node-v115-linux-x64-musl/pprof.node.json
Not found: /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/build/node-v115-linux-x64-musl/pprof.node.node
Require stack:
- /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/out/src/heap-profiler-bindings.js
- /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/out/src/heap-profiler.js
- /home/user/projects/atom-core/.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/out/src/index.js
```
Seems like the problem is `pprof.node` binary being present in:
`.yarn/unplugged/pprof-npm-4.0.0-ee08b7ccd3/node_modules/pprof/build/node-v115-linux-x64-glibc` dir, but it's being looked at in:
`node-v115-linux-x64-musl`. I tried copying the binary - if fixes the error, but the traces coming out of it are empty.
Is there something I'm missing in the setup of pprof, or configuring per `musl` instead of `glibc`? I don't know where those values are pulled from.
Beitragsleitfaden
Rechercherichtung
Beginne mit out/src/heap-profiler-bindings.js und vergleiche den angeforderten Pfad build/node-v115-linux-x64-musl/pprof.node mit der verfügbaren Binärdatei build/node-v115-linux-x64-glibc/pprof.node. Reproduziere den Fehler mit Node v20.11.1, Yarn 3.8.3 und dem gemeldeten pprof 4.0.0-Setup. Als abgeschlossen gilt die Aufgabe, wenn die korrekte native Binärdatei ohne Kopieren von Binärdateien aufgelöst wird und das Profiling nichtleere Traces erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- observability-sre
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100