8000 Failed to find node-v115-linux-x64-musl/pprof.node, glibc available · Issue #301 · google/pprof-nodejs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Failed to find node-v115-linux-x64-musl/pprof.node, glibc available #301
Open
@chmielsen

Description

@chmielsen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0