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

Failed to find node-v115-linux-x64-musl/pprof.node, glibc available #301

Open
chmielsen opened this issue Oct 11, 2024 · 0 comments
Open

Comments

@chmielsen
Copy link

chmielsen commented Oct 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant