-
Notifications
You must be signed in to change notification settings - Fork 853
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
SIGSEGV when using S3Client in Docker based on adoptopenjdk/openjdk8:jdk8u212-b03-alpine-slim #3189
Comments
Hi @rzhang90, thanks for reaching out. S3 Transfer Manager depends on the AWS Common Runtime (CRT) libraries, and Alpine Linux is not supported yet in CRT, see similar issue: #2868. But looks like the error message is a bit different this time, can you enable CRT logs and share the stacktrace? Please make sure to redact any sensitive information. You can enable logs by adding the following statement before you create the transfer manager
|
@zoewangg Hi Zoe, Thank you so much for your quick response. Here is the stracktrace:
|
Hi @zoewangg , could you please give me some possible alternatives or a white list of supported linux versions? Thank you. |
Apologies for the delayed response. Below are the relevant error logs. I will reach out to CRT team to investigate further.
Non alpine Linux should be supported. You can also try with building CRT yourself on that platform. Can you also try with the latest version? (2.17.192 as of today) |
@zoewangg Thank you. I changed my base image from alpine to debian and it works. |
Good to hear! We will close this issue and track alpine support in #2868 |
|
…fc37bd9d9 Pull request: release <- staging/572d51bc-2184-4b09-b010-1cffc37bd9d9
Describe the bug
When the following code is running
The following exception occurs:
software.amazon.awssdk.crt.CrtRuntimeException: S3Client.aws_s3_client_new: creating aws_s3_client failed (aws_last_error: AWS_IO_TLS_CTX_ERROR(1033), Failed to create tls context) UNKNOWN(-1)
Expected Behavior
The initialization of S3Client should work.
Current Behavior
The initialization of S3Client works well locally on my MacOS 12.3.1, but when I build a docker image based on adoptopenjdk/openjdk8:jdk8u212-b03-alpine-slim and run the container, it fails.
The whole error is:
Reproduction Steps
The Dockerfile is like:
The s3 sdk is:
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.17.16
JDK version used
8
Operating System and version
MacOS 12.3.1
The text was updated successfully, but these errors were encountered: