You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash on init within a docker container - fix: warn about Node ABI version #14015
Note the version 131 it wants to load indeed does not exists, when i run nodejs locally and test the code that is used by sentry node profiler i get this:
Welcome to Node.js v22.9.0.
Type ".help" for more information.
> const nodeAbi = require('node-abi');
undefined
> const node_process = require('node:process');
undefined
> nodeAbi.getAbi(node_process.versions.node, 'node');
'127'
>
The file with 127 does exist and sentry works normally
The docker file just uses the official docker image and nothing special:
# Use the official Node.js image as the base image
FROM node:current-alpine
# Set the working directory inside the container
WORKDIR /home/node/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install
RUN npm install -g nodemon
# Start the server
CMD ["nodemon", "-x", "bin/www"]
I was forced to remove sentry from the apps within the company so we can deploy them and i rather would reactivate sentry.
changed the title [-]Crash on init within a docker container (but worked before in the container)[/-][+]Crash on init within a docker container - fix: warn about Node ABI version[/+]on Oct 21, 2024
Activity
chargome commentedon Oct 18, 2024
Hey @stoneburner, we currently only ship prebuilt binaries for node versions v16-22 (see https://github.com/getsentry/sentry-javascript/blob/develop/packages/profiling-node/README.md#prebuilt-binaries), and
current-alpineresolves to v23. Can you try downgrading to node 22?stoneburner commentedon Oct 18, 2024
Thanks, downgrading nodejs to 22 worked!
Maybe a check of the abi version would be a good idea, disabling profiling (and warning about that) would be nicer than just crashing
[-]Crash on init within a docker container (but worked before in the container)[/-][+]Crash on init within a docker container - fix: warn about Node ABI version[/+]s1gr1d commentedon Oct 21, 2024
Great to hear that it worked! And yes, checking for the version makes sense. I'll put that on our list.
fix(profiling-node): Always warn when running on incompatible major v…
github-actions commentedon Oct 31, 2024
A PR closing this issue has just been released 🚀
This issue was referenced by PR #14043, which was included in the 8.36.0 release.