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

libssl.so.1.1 not found in al2.v20 #683

Closed
evbo opened this issue Aug 8, 2023 · 3 comments
Closed

libssl.so.1.1 not found in al2.v20 #683

evbo opened this issue Aug 8, 2023 · 3 comments

Comments

@evbo
Copy link

evbo commented Aug 8, 2023

I'm using AppConfig lambda layer provided by AWS, as demonstrated here:
https://github.com/ymwjbxxq/rust_aws_app_config

INIT_START Runtime Version: provided:al2.v20 Runtime Version ARN: arn:aws:lambda:us-west-2::runtime:xyz
--
[appconfig agent] 2023/08/07 23:49:03 INFO AppConfig Lambda Extension 2.0.165
[appconfig agent] 2023/08/07 23:49:03 INFO serving on localhost:2772
/var/task/bootstrap: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
EXTENSION Name: AppConfigAgent State: Ready Events: [INVOKE, SHUTDOWN]
[appconfig agent] 2023/08/07 23:49:04 INFO AppConfig Lambda Extension 2.0.165
[appconfig agent] 2023/08/07 23:49:05 INFO serving on localhost:2772
/var/task/bootstrap: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Everything's been working great, then I randomly get this error message after many successful executions. Any suggestions how to debug this further? How did it ever work to begin with? That version of amazon linux hasn't had a patch since July 25th, so that hasn't changed.

I am using the following layer:
arn:aws:lambda:us-west-2:359756378197:layer:AWS-AppConfig-Extension-Arm64:45

@calavera
Copy link
Contributor

calavera commented Aug 8, 2023

Your code depends on OpenSSL. The AWS Lambda sandbox doesn't have that library installed, and your code won't run. I know nothing about the project that you're pointing to, but I'd recommend you to build it with Rustls, removing any dependency it has with OpenSSL.

@calavera calavera closed this as completed Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for the maintainers of this repository to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@evbo
Copy link
Author

evbo commented Aug 19, 2023

@calavera I figured it out: It is actually true that AWS Lamba did have OpenSSL installed, which is why I never had this error until recently when they deprecated TLS version 1.1:
https://aws.amazon.com/blogs/security/tls-1-2-required-for-aws-endpoints/

So the solution is to either update to depending on OpenSSL for versions >=TLS 1.2 or migrate to using rustls-tls, which I agree is my favorite approach too

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

2 participants