Skip to content
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

AWS Lambda runtime error: version "GLIBC_2.28" not found #62

Open
arkmoon opened this issue Sep 22, 2021 · 1 comment
Open

AWS Lambda runtime error: version "GLIBC_2.28" not found #62

arkmoon opened this issue Sep 22, 2021 · 1 comment

Comments

@arkmoon
Copy link

arkmoon commented Sep 22, 2021

Hoping someone can help me with this issue. I'm uploading a Serverless project to a Lambda on AWS that has a dependency on bcrypto. When it's run, it cannot find libc.so.6 with the correct version of GLIBC_2.28.

I've attempted to build my project on an EC2 instance AWS provides of Linux 2 just to make sure it wasn't my build environment that was causing the issue, and I tried it on my own Ubuntu instance with a different, newer version also, both have the same error when run in the cloud.

Are there any settings or build parameters I can pass to include whatever libraries are necessary so the binary doesn't have to look for this file? I've never had this issue till now. I was told there was a "browser" feature for this that would allow this to be run independently but I'm having trouble finding the documentation.

More specifics:
Node 14.17.3
NPM: 7.24.0

The AWS EC2 machine I'm building from is currently running: 2.26, which is even stranger.

Any help would be greatly appreciated. Thanks.

@arkmoon
Copy link
Author

arkmoon commented Sep 23, 2021

For anyone who happens to run into this in a google search. Finally got it working only after running the npm install in Ubuntu 18 LTS.

I'm not seeing this error anymore because it's running GLIBC 2.27 which I guess works. WOW. This was a huge headache, because even the official AWS Linux 2 image, which is supposed to be running 2.26, didn't work for some reason.

I pray this helps someone in the future, because it nearly ended me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant