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

NodeJS example with docker have node-gyp errors #3646

Open
davigottt opened this issue Oct 22, 2024 · 4 comments
Open

NodeJS example with docker have node-gyp errors #3646

davigottt opened this issue Oct 22, 2024 · 4 comments
Labels
javascript Pull requests that update Javascript code type/bug Something isn't working

Comments

@davigottt
Copy link

Describe the bug

U can't run node example with the provided dockerfile

To Reproduce

Steps to reproduce the behavior:

  1. Go into any node example
  2. docker compose build
  3. docker compose up -d
  4. check logs and
 /app/node_modules/node-gyp-build/index.js:59
2024-10-22T15:15:43.328348158Z   throw new Error('No native build was found for runtime=' + runtime + ' abi=' + abi + ' platform=' + platform + libc + ' arch=' + arch)
2024-10-22T15:15:43.328356404Z         ^
2024-10-22T15:15:43.328359920Z 
2024-10-22T15:15:43.328363557Z Error: No native build was found for runtime=node abi=131 platform=linuxglibc arch=x64
2024-10-22T15:15:43.328367214Z     at load.path (/app/node_modules/node-gyp-build/index.js:59:9)
2024-10-22T15:15:43.328370250Z     at load (/app/node_modules/node-gyp-build/index.js:19:30)
2024-10-22T15:15:43.328373296Z     at Object.<anonymous> (/app/node_modules/@datadog/pprof/out/src/heap-profiler-bindings.js:44:18)
2024-10-22T15:15:43.328376792Z     at Module._compile (node:internal/modules/cjs/loader:1568:14)
2024-10-22T15:15:43.328380209Z     at Object..js (node:internal/modules/cjs/loader:1711:10)
2024-10-22T15:15:43.328383215Z     at Module.load (node:internal/modules/cjs/loader:1328:32)
2024-10-22T15:15:43.328386251Z     at Function._load (node:internal/modules/cjs/loader:1138:12)
2024-10-22T15:15:43.328389427Z     at TracingChannel.traceSync (node:diagnostics_channel:315:14)
2024-10-22T15:15:43.328392442Z     at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
2024-10-22T15:15:43.328395498Z     at Module.require (node:internal/modules/cjs/loader:1350:12)

Expected behavior

Application starts normally

Environment

  • Infrastructure: Fedora 40, provided dockerfile
  • Deployment tool: Docker

Additional Context

@bryanhuhta bryanhuhta added type/bug Something isn't working javascript Pull requests that update Javascript code labels Oct 22, 2024
@richard-julien
Copy link

Hi, any available configuration, workaround available? thanks

@richard-julien
Copy link

Ok so after some research, if it can help some people,
The prebuilt exists in the package but the loader try to load them from the root of your project.
So you need to copy node_modules@datadog\pprof\prebuilds inside project_dir\prebuilds

@korniltsev
Copy link
Collaborator

This should have been fixed with grafana/pyroscope-nodejs@54777ab

Does it still not work with v0.4.3
v0.4.2 versions?

@tangirmiah
Copy link

This should have been fixed with grafana/pyroscope-nodejs@54777ab

Does it still not work with v0.4.3 v0.4.2 versions?

even after updating to v0.4.3 we are still facing the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants