Title: Lambda layer crashes when LambdaInsights is enabled. · Issue #6293 · getsentry/sentry-javascript · GitHub
Open Graph Title: Lambda layer crashes when LambdaInsights is enabled. · Issue #6293 · getsentry/sentry-javascript
X Title: Lambda layer crashes when LambdaInsights is enabled. · Issue #6293 · 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/6293
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Lambda layer crashes when LambdaInsights is enabled.","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 package are you using?\n\n@sentry/serverless\n\n### SDK Version\n\narn:aws:lambda:ap-southeast-1:943013980633:layer:SentryNodeServerlessSDK:92\n\n### Framework Version\n\nnode 14.x\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\nSince https://github.com/getsentry/sentry-javascript/pull/6093 was merged 22 days ago there has been new releases, but the issue seem to persists.\r\n\r\nGiven:\r\n\r\n```\r\nLayers: \r\n - arn:aws:lambda:ap-southeast-1:943013980633:layer:SentryNodeServerlessSDK:92\r\n - arn:aws:lambda:ap-southeast-1:580247275435:layer:LambdaInsightsExtension:21\r\n```\r\n\r\nThe lambda crashes with:\r\n\r\n```\r\n+ exec /opt/relay/relay run --mode=proxy --shutdown-timeout=2 --aws-runtime-api=127.0.0.1:9001\r\nLOGS\tName: cloudwatch_lambda_agent\tState: Subscribed\tTypes: [platform]\r\n2022-11-24T15:42:47Z [relay::setup] INFO: launching relay without config folder\r\n2022-11-24T15:42:47Z [relay::setup] INFO: relay mode: proxy\r\n2022-11-24T15:42:47Z [relay::setup] INFO: relay id: -\r\n2022-11-24T15:42:47Z [relay::setup] INFO: public key: -\r\n2022-11-24T15:42:47Z [relay::setup] INFO: log level: INFO\r\n2022-11-24T15:42:47Z [relay_server::actors::outcome] INFO: Configured to emit outcomes as client reports\r\n2022-11-24T15:42:47Z [relay_server::actors::upstream] INFO: upstream relay started\r\n2022-11-24T15:42:47Z [relay_server::actors::outcome] INFO: OutcomeProducer started.\r\n2022-11-24T15:42:47Z [relay_server::actors::processor] INFO: starting 5 envelope processing workers\r\n2022-11-24T15:42:47Z [relay_server::actors::envelopes] INFO: envelope manager started\r\n2022-11-24T15:42:47Z [relay_server::actors::project_cache] INFO: project cache started\r\n2022-11-24T15:42:47Z [relay_server::actors::relays] INFO: key cache started\r\n2022-11-24T15:42:47Z [relay_aws_extension::aws_extension] INFO: AWS extension started\r\n2022-11-24T15:42:47Z [relay_aws_extension::aws_extension] INFO: Registering AWS extension on http://127.0.0.1:9001/2020-01-01/extension\r\n2022-11-24T15:42:47Z [relay_log::utils] ERROR: bind to interface failed\r\ncaused by: Address already in use (os error 98)\r\nEXTENSION\tName: cloudwatch_lambda_agent\tState: Ready\tEvents: [INVOKE,SHUTDOWN]\r\nEXTENSION\tName: sentry-lambda-extension\tState: Started\tEvents: []\r\n+ exec /opt/relay/relay run --mode=proxy --shutdown-timeout=2 --aws-runtime-api=127.0.0.1:9001\r\nLOGS\tName: cloudwatch_lambda_agent\tState: Already subscribed\tTypes: [platform]\r\n2022-11-24T15:42:48Z [relay::setup] INFO: launching relay without config folder\r\n2022-11-24T15:42:48Z [relay::setup] INFO: relay mode: proxy\r\n2022-11-24T15:42:48Z [relay::setup] INFO: relay id: -\r\n2022-11-24T15:42:48Z [relay::setup] INFO: public key: -\r\n2022-11-24T15:42:48Z [relay::setup] INFO: log level: INFO\r\n2022-11-24T15:42:48Z [relay_server::actors::outcome] INFO: Configured to emit outcomes as client reports\r\n2022-11-24T15:42:48Z [relay_server::actors::upstream] INFO: upstream relay started\r\n2022-11-24T15:42:48Z [relay_server::actors::processor] INFO: starting 5 envelope processing workers\r\n2022-11-24T15:42:48Z [relay_server::actors::outcome] INFO: OutcomeProducer started.\r\n2022-11-24T15:42:48Z [relay_server::actors::envelopes] INFO: envelope manager started\r\n2022-11-24T15:42:48Z [relay_server::actors::project_cache] INFO: project cache started\r\n2022-11-24T15:42:48Z [relay_server::actors::relays] INFO: key cache started\r\n2022-11-24T15:42:48Z [relay_aws_extension::aws_extension] INFO: AWS extension started\r\n2022-11-24T15:42:48Z [relay_aws_extension::aws_extension] INFO: Registering AWS extension on http://127.0.0.1:9001/2020-01-01/extension\r\n2022-11-24T15:42:48Z [relay_log::utils] ERROR: bind to interface failed\r\ncaused by: Address already in use (os error 98)\r\nEXTENSION\tName: cloudwatch_lambda_agent\tState: Ready\tEvents: [INVOKE,SHUTDOWN]\r\nEXTENSION\tName: sentry-lambda-extension\tState: Started\tEvents: []\r\nSTART RequestId: 9ef8dc2d-cadf-4d9b-ac67-2a4febd4a485 Version: $LATEST\r\nRequestId: 9ef8dc2d-cadf-4d9b-ac67-2a4febd4a485 Error: exit status 1\r\nExtension.Crash\r\nEND RequestId: 9ef8dc2d-cadf-4d9b-ac67-2a4febd4a485\r\nREPORT RequestId: 9ef8dc2d-cadf-4d9b-ac67-2a4febd4a485\tDuration: 747.05 ms\tBilled Duration: 748 ms\tMemory Size: 8192 MB\tMax Memory Used: 46 MB\t\r\nXRAY TraceId: 1-637f90f7-5ca344660b289c57346e416c\tSegmentId: 640f190e2b15ad2f\tSampled: true\t\r\n```\r\n\r\nIf I remove `layer:LambdaInsightsExtension` the lambda now runs. The last known version that works in this configuration is sentry layer 68.\n\n### Expected Result\n\nNot to crash\n\n### Actual Result\n\nboom","author":{"url":"https://github.com/kitsunde","@type":"Person","name":"kitsunde"},"datePublished":"2022-11-24T15:47:10Z","url":"https://github.com/getsentry/sentry-javascript/issues/6293"}
| 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:1aa64728-ca95-30ae-2005-c1ed1d300fe9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4DA:E63B3:426A3E:5A9F04:6B04BE6B |
| html-safe-nonce | 6ba9b97e60042c4e57dfca1ee7638b0e4173c457e6fda5464f35ca03871becc5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNERBOkU2M0IzOjQyNkEzRTo1QTlGMDQ6NkIwNEJFNkIiLCJ2aXNpdG9yX2lkIjoiMTUzNTEwODU0ODQ2NjYyMjA2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 418c381212ff3713b259aa904e8ed7e6ad3e7e4fd3af838138da1f6b985843a9 |
| hovercard-subject-tag | issue:1463532984 |
| 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/6293/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c8fed8dc83e4cedeb7b594eeb5049fbc95f99ed450ab87956cc31e37ff8b75e/getsentry/sentry-javascript/issues/6293 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c8fed8dc83e4cedeb7b594eeb5049fbc95f99ed450ab87956cc31e37ff8b75e/getsentry/sentry-javascript/issues/6293 |
| 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 | kitsunde |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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