Title: Latest @sentry/profiling-node (9.28.1) not working with Node 20 Azure Function: "version `GLIBCXX_3.4.29' not found" · Issue #16561 · getsentry/sentry-javascript · GitHub
Open Graph Title: Latest @sentry/profiling-node (9.28.1) not working with Node 20 Azure Function: "version `GLIBCXX_3.4.29' not found" · Issue #16561 · getsentry/sentry-javascript
X Title: Latest @sentry/profiling-node (9.28.1) not working with Node 20 Azure Function: "version `GLIBCXX_3.4.29' not found" · Issue #16561 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16561
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Latest @sentry/profiling-node (9.28.1) not working with Node 20 Azure Function: \"version `GLIBCXX_3.4.29' not found\"","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/node\n\n### SDK Version\n\n9.28.1\n\n### Framework Version\n\nAzure Function with Node v20\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```ts\nimport * as Sentry from \"@sentry/node\";\nimport { nodeProfilingIntegration } from \"@sentry/profiling-node\";\nimport { version } from \"./version\";\n\n// When DSN is undefined, Sentry just ignores all calls\nconst SENTRY_DSN = process.env.SENTRY_DSN || undefined;\n\nexport function getReleaseSemver(): string {\n\treturn `OURAPP-functions@${version}`;\n}\n\nSentry.init({\n\tdsn: SENTRY_DSN,\n\tintegrations: [nodeProfilingIntegration()],\n\t// Tracing\n\ttracesSampleRate: 1.0, // Capture 100% of the transactions\n\n\t// Set sampling rate for profiling - this is relative to tracesSampleRate\n\tprofilesSampleRate: 1.0,\n\n\t// Set the release version\n\trelease: getReleaseSemver(),\n});\n```\n\n\n### Steps to Reproduce\n\npackage.json:\n\n```json\n{\n\t\"name\": \"OURAPP-functionapp\",\n\t\"version\": \"1.0.0\",\n\t\"description\": \"\",\n\t\"main\": \"dist/src/functions/*.js\",\n\t\"private\": true,\n\t\"scripts\": {\n\t\t\"##### postinstall #####\": \"# We use 'npx' so we can use 'pnpm install --prod' to install only production dependencies.\",\n\t\t\"postinstall\": \"npx --yes patch-package@8.0.0 && pnpm run genversion\",\n\t\t\"genversion\": \"(echo \\\"// Generated file: pnpm run genversion\\\" && echo \\\"export const version = \\\\\\\"$(jq -r .version \u003c package.json)+$(git rev-parse --short HEAD)\\\\\\\";\\\") > ./src/version.ts\",\n\t\t\"prebuild\": \"pnpm run clean && pnpm run genversion\",\n\t\t\"build\": \"tsc && rm -r dist/tests\",\n\t\t\"clean\": \"rm -rf dist\",\n\t\t\"watch\": \"tsc -w\",\n\t\t\"check-updates\": \"npx npm-check-updates\",\n\t\t\"prestart\": \"pnpm run build\",\n\t\t\"start\": \"func start --typescript --cors \\\"*\\\"\",\n\t\t\"test\": \"jest --runInBand\",\n\t\t\"test:watch\": \"jest --runInBand --watch\",\n\t\t\"test:ci\": \"jest --runInBand --ci --coverage --coverageReporters=cobertura --reporters=default --reporters=jest-junit\",\n\t\t\"lint\": \"eslint --fix --max-warnings 0 .\",\n\t\t\"lint:ci\": \"eslint --max-warnings 0 .\",\n\t\t\"install-azure-cli-ubuntu\": \"echo 'Installing Azure CLI. This should work at least for Ubuntu >= 20.04.' && curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash\",\n\t\t\"all\": \"pnpm run lint && pnpm run build && pnpm run test\",\n\t\t\"pack-zip\": \"rm -rf node_modules/ && pnpm install --prod --frozen-lockfile --node-linker=hoisted && zip -r -9 OURAPP-functionapp.zip dist node_modules package.json host.json\",\n\t\t\"sentry:sourcemaps\": \"SENTRY_RELEASE=$(node -e 'const { getReleaseSemver } = require(\\\"./dist/src/sentry.js\\\"); console.log(getReleaseSemver());' 2>/dev/null) && sentry-cli sourcemaps inject --org OURCORP --project OURAPP-functions ./dist && sentry-cli sourcemaps upload --org OURCORP --project OURAPP-functions --release $SENTRY_RELEASE ./dist\"\n\t},\n\t\"dependencies\": {\n\t\t\"@azure/functions\": \"^4.7.3\",\n\t\t\"@sentry/node\": \"^9.28.1\",\n\t\t\"@sentry/profiling-node\": \"^9.28.1\",\n\t\t\"dotenv\": \"^16.5.0\",\n\t\t\"jsonwebtoken\": \"^9.0.2\",\n\t\t\"jwks-rsa\": \"^3.2.0\",\n\t\t\"openpgp\": \"6.1.1\",\n\t\t\"three\": \"^0.177.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@eslint/eslintrc\": \"^3.3.1\",\n\t\t\"@eslint/js\": \"^9.28.0\",\n\t\t\"@jest/globals\": \"^30.0.0\",\n\t\t\"@openpgp/web-stream-tools\": \"^0.1.3\",\n\t\t\"@sentry/cli\": \"^2.46.0\",\n\t\t\"@types/jsonwebtoken\": \"^9.0.9\",\n\t\t\"@types/node\": \"^24.0.0\",\n\t\t\"@types/three\": \"^0.177.0\",\n\t\t\"@typescript-eslint/eslint-plugin\": \"^8.34.0\",\n\t\t\"@typescript-eslint/parser\": \"^8.34.0\",\n\t\t\"eslint\": \"^9.28.0\",\n\t\t\"globals\": \"^16.2.0\",\n\t\t\"jest\": \"^29.7.0\",\n\t\t\"jest-junit\": \"^16.0.0\",\n\t\t\"nock\": \"^14.0.5\",\n\t\t\"ts-jest\": \"^29.3.4\",\n\t\t\"typescript\": \"^5.8.3\"\n\t},\n\t\"overrides\": {},\n\t\"engines\": {\n\t\t\"node\": \">=20.0.0\"\n\t},\n\t\"packageManager\": \"pnpm@10.12.1\"\n}\n```\n\nazure-pipelines.yml:\n```yaml\n # Azure Functions Deploy v2\n # Update a function app with .NET, Python, JavaScript, PowerShell, Java based web applications.\n - task: AzureFunctionApp@2\n inputs:\n connectedServiceNameARM: '${{ parameters.connectedServiceNameARM }}' # string. Alias: azureSubscription. Required. Azure Resource Manager connection.\n appType: 'functionAppLinux' # 'functionApp' | 'functionAppLinux'. Required. App type.\n appName: '${{ parameters.appName }}' # string. Required. Azure Functions App name.\n package: '$(Pipeline.Workspace)/OURAPP-functionapp.zip' # string. Required. Package or folder. Default: $(System.DefaultWorkingDirectory)/**/*.zip.\n runtimeStack: 'NODE|20' # 'DOTNET|6.0' | 'DOTNET-ISOLATED|6.0' | 'DOTNET-ISOLATED|7.0' | 'DOTNET-ISOLATED|8.0' | 'JAVA|8' | 'JAVA|11' | 'JAVA|17' | 'JAVA|21' | 'NODE|14' | 'NODE|16' | 'NODE|18' | 'NODE|20' | 'PYTHON|3.8' | 'PYTHON|3.9' | 'PYTHON|3.10' | 'PYTHON|3.11'. Optional. Use when appType = functionAppLinux. Runtime stack.\n```\n\n**Expected result** (working fine with Sentry 9.14.0):\nFunction app is deployed and running.\nSince 9.28.1 differs in minor version only, I would not expectthe following breaking change:\n\n**Actual result** (broken with Sentry 9.28.1):\nFunction app is deployed, but returns header-only 404 responses. SSH into the function reveals this error:\n\n```\nroot@HOSTNAME:~/site/wwwroot/dist/src# node functions/health.js\n\nnode:internal/modules/cjs/loader:1651\n return process.dlopen(module, path.toNamespacedPath(filename));\n ^\n\nError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/site/wwwroot/node_modules/@sentry-internal/node-cpu-profiler/lib/sentry_cpu_profiler-linux-x64-glibc-115.node)\n at Module._extensions..node (node:internal/modules/cjs/loader:1651:18)\n at Module.load (node:internal/modules/cjs/loader:1275:32)\n at Module._load (node:internal/modules/cjs/loader:1096:12)\n at Module.require (node:internal/modules/cjs/loader:1298:19)\n at require (node:internal/modules/helpers:182:18)\n at importCppBindingsModule (/home/site/wwwroot/node_modules/@sentry-internal/node-cpu-profiler/lib/index.js:124:28)\n at Object.\u003canonymous> (/home/site/wwwroot/node_modules/@sentry-internal/node-cpu-profiler/lib/index.js:167:38)\n at Module._compile (node:internal/modules/cjs/loader:1529:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)\n at Module.load (node:internal/modules/cjs/loader:1275:32) {\n code: 'ERR_DLOPEN_FAILED'\n}\n\nNode.js v20.19.1\n```\n\n### Expected Result\n\nFunction app is deployed and running with Node v20 Azure Function.\n\n### Actual Result\n\nSee error above - it seems that the pre-built binaries are not compatible with Node v20 Azure Functions.","author":{"url":"https://github.com/heidemn-faro","@type":"Person","name":"heidemn-faro"},"datePublished":"2025-06-12T07:58:33Z","url":"https://github.com/getsentry/sentry-javascript/issues/16561"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b2081d6-a343-ef22-ffb8-8ba558c4d2c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F18:90D70:15EF85F:1CD7338:6B040DC6 |
| html-safe-nonce | 19eb7344716e7b1e59d0b990e81c014be55ad143c6be16d42df688017ae4165e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjE4OjkwRDcwOjE1RUY4NUY6MUNENzMzODo2QjA0MERDNiIsInZpc2l0b3JfaWQiOiI2ODA4OTk1NjEzODg4NDgyNzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e269430322aad3308399b0838bb6335202ac921c0a48e3ab3ce4a9b6dbab005 |
| hovercard-subject-tag | issue:3139258457 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76d5ace067601d7e015f06d0bc6a2d02a4d1b1d67f7829874195e6be608845d6/getsentry/sentry-javascript/issues/16561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76d5ace067601d7e015f06d0bc6a2d02a4d1b1d67f7829874195e6be608845d6/getsentry/sentry-javascript/issues/16561 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | heidemn-faro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width