sentry-python: AWS Layer version 37 doesn't work on arm64 lambda
How do you use Sentry?
Sentry Saas (sentry.io)
Version
arn:aws:lambda:ap-southeast-2:943013980633:layer:SentryPythonServerlessSDK:37
Steps to Reproduce
AWS Lambda layer = arn:aws:lambda:ap-southeast-2:943013980633:layer:SentryPythonServerlessSDK:37
I have tried from version 22, the last version that still works is 24, the first version has this problem is 25.
Also confirm version 37 works on x86 architecture. My guess is something new introduced since layver version 25 only works for x86, most likely the /opt/relay/relay.
Expected Result
Lambda function should work. eg
Response
{
... whatever application returned ...
}
Function Logs
START RequestId: f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Version: $LATEST
[INFO] 2022-09-12T04:22:46.550Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Found credentials in environment variables.
[INFO] 2022-09-12T04:22:47.490Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 successfully patched module requests
[INFO] 2022-09-12T04:22:47.550Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 successfully patched module botocore
[INFO] 2022-09-12T04:22:47.649Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 successfully patched module sqlite3
[INFO] 2022-09-12T04:22:47.907Z f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Found credentials in environment variables.
... application log ignored...
END RequestId: f415d848-dfb6-4361-b01d-b1a3b11cd2e2
REPORT RequestId: f415d848-dfb6-4361-b01d-b1a3b11cd2e2 Duration: 12914.55 ms Billed Duration: 12915 ms Memory Size: 128 MB Max Memory Used: 93 MB Init Duration: 423.18 ms
XRAY TraceId: 1-631eb40c-550e81323a18faa810a21797 SegmentId: 6cc523cc159fcfb8 Sampled: true
Actual Result
Response
{
"errorMessage": "RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Error: exit status 1",
"errorType": "Extension.Crash"
}
Function Logs
START RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Version: $LATEST
+ exec /opt/relay/relay run --mode=proxy --shutdown-timeout=2 --aws-runtime-api=127.0.0.1:9001
/opt/extensions/sentry-lambda-extension: line 3: /opt/relay/relay: cannot execute binary file
/opt/extensions/sentry-lambda-extension: line 3: /opt/relay/relay: Success
EXTENSION Name: sentry-lambda-extension State: Started Events: []
END RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa
REPORT RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Duration: 98.92 ms Billed Duration: 99 ms Memory Size: 128 MB Max Memory Used: 3 MB
XRAY TraceId: 1-631eb380-49977a6b4c3ad20a2c539e0a SegmentId: 11d7af5965f61201 Sampled: true
RequestId: 16beabbe-5555-4162-8aba-efba85e5e2fa Error: exit status 1
Extension.Crash
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (4 by maintainers)
Hoping this will be supported soon!
any update on this ?
@zhaowb yes, sorry we released a new AWS extension based layer and ARM is currently not supported. I would recommend staying on an older version till we also support ARM architectures.
This staying open for half a year is concerning. Would it perhaps be possible to give it a higher priority?
I have same issue with node.js arm64 lambda. Can anyone at least give an estimate?
We’re hitting this as well. We don’t even launch new functions in x86 anymore.