-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET ARM Lambda function using .NET 7 RC1 fails to start when using a custom runtime #1310
Comments
Also logged with Microsoft here: dotnet/runtime#75622 |
Hi @martincostello were you getting the error for ARM or X64? I have reproduced the problem for ARM but not for X64. I'm not sure what are options are yet because getting |
Sorry for not making that clear, this is with Graviton and arm64. |
Switch from arm64 to x64 to attempt to workaround aws/aws-lambda-dotnet#1310.
I've switched the function to x64 and re-deployed it with .NET 7 and now it's working as expected. For my use case here that's an acceptable workaround until we can come up with a solution for arm64. |
Switch from arm64 to x64 to workaround aws/aws-lambda-dotnet#1310.
Thanks for confirming. I'll see what I can do on my side about it. I suspect we are stuck on the ARM side till we have a managed .NET 8 runtime or Lambda offers an AL2022 provided runtime. |
@norm any next steps here this is really killing us. We have developers on M1 Apple Silicon, that are unable to cross compile (via Docker) to |
@Simonl9l sorry no progress on this issue. We have been in conversation with Microsoft on the issue discussing possible solutions but as they are heads down getting .NET 7 out the door we don't expect much traction on this issue till post .NET 7 release. |
Would really like to second this. Getting AL2022 on lambda ASAP seems like the right way to go but if any workaround is possible I would love to hear it. |
Any update on this post dotnet7 release? |
I'm also wondering - is there any update on this issue? I understand this is a lambda specific forum, but I'm having the same issue deploying dotnet 7 to an Elastic Beanstalk / EC2 instance on ARM64. |
From @normj #1416 (comment) |
Will we need to wait for .Net 7.0.4? |
I've just updated the AWS Lambda function in the original issue description to .NET 7.0.4 (martincostello/alexa-london-travel@fba0da0) and changed it back to arm64 from x64 (martincostello/alexa-london-travel@8f689eb) and it's now working. Thanks to the AWS and Microsoft teams for their efforts on getting things working. 🙇 |
Lots of thanks and appreciation to the .NET team for making the changes needed to run .NET 7 ARM on Amazon Linux 2. |
Cool... we also updated back to arm64... working perfectly... thanksssss |
@martincostello Please confirm if we could close the issue given that .NET 7 ARM on AL2 is working for you. |
|
Describe the bug
With .NET RC1 available today, I attempted to deploy a .NET Lambda function I have to use it via a custom runtime (deployment).
However, once deployed the tests for the Lambda function showed it was failing with an error. Digging into the logs in CloudWatch show that the function is failing to start.
This appears to be due to the AWS Lambda runtime not having the correct version of GLIBC (2.27) for .NET 7 to run, likely due to a change in the native requirements for .NET itself.
I'm not currently aware of a way to get a .NET application to publish a specific version of GLIBC with the compiled application - if there is one, I'm all ears to unblock early adoption.
Expected Behavior
The Lambda function initializes successfully.
Current Behavior
The Lambda function fails to initialise with the following error:
Reproduction Steps
An AWS Lambda function derived from martincostello/alexa-london-travel at commit
bfc8db1850aa3b6463ffd23fc96b76a730222e61
when deployed to AWS Lambda using theprovided.al2
runtime will fail to initialize.Possible Solution
dotnet publish
output from the AWS Lambda global tool.Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Amazon.Lambda.RuntimeSupport 1.8.2
Targeted .NET Platform
.NET 7 Release Candidate 1
Operating System and version
The text was updated successfully, but these errors were encountered: