Closed XcydeDev closed 10 months ago
Also on MacOS 14.2.1 when installing @sentry/profiling-node@1.3.3
.
Reverting back to @sentry/profiling-node@1.3.2
works.
❯ npm i @sentry/profiling-node@1.3.3
npm ERR! path /Users/lhermann/path/to/node_modules/@sentry/profiling-node
npm ERR! command failed
npm ERR! signal SIGABRT
npm ERR! command sh -c node scripts/check-build.mjs
npm ERR! @sentry/profiling-node: Precompiled binary found, attempting to load /Users/lhermann/path/to/node_modules/@sentry/profiling-node/lib/sentry_cpu_profiler-darwin-arm64-108.node
npm ERR! @sentry/profiling-node: Precompiled binary found, skipping build from source.
npm ERR! Assertion failed: (handle->flags & UV_HANDLE_CLOSING), function uv__finish_close, file core.c, line 301.
npm ERR! A complete log of this run can be found in: /Users/lhermann/.npm/_logs/2024-01-11T11_36_25_577Z-debug-0.log
Do you mind bumping to v1.3.4 and letting me know if the issue persists?
@JonasBa can confirm installation with npm i @sentry/profiling-node@latest
works now 👌
@lhermann thank you so much and sorry for the issue. I'll investigate why CI did not catch this
@JonasBa This is happening again on node:lts-alpine
and "@sentry/profiling-node": "^8.30.0"
This is a duplicate of https://github.com/getsentry/profiling-node/issues/247 (we've moved this repo to the sentry JS monorepo). There should be a fix going out with the next release, I will update you on that.
I linked the wrong issue in the reply above, the correct link is https://github.com/getsentry/sentry-javascript/issues/12169
Is there an existing issue for this?
SDK Version
1.3.3
What environment is your node script running in?
Docker container with node:20-alpine
Are you using an alpine based docker image?
Does the failure occur on a remote environment only?
Are you using alpine based node docker image. If so, what version are you using? e.g node:16-alpine3.12
node:20-alpine
If you are using alpine, have you tried using latest version of alpine or (currently alpine3.16 or alpine3.17)?
Have you tried using the latest minor version of node (currently 16.20 or 18.15)?
If you run npm install --verbose --foreground-scripts @sentry/profiling-node in an empty directory, what is the output?
Crash report
We get an SIGSEGV error when trying to install it. Our dockerfile is the following:
FROM node:20-alpine as builder
WORKDIR /usr/src/build
RUN npm install --verbose --foreground-scripts @sentry/profiling-node