-
Notifications
You must be signed in to change notification settings - Fork 50
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
"Error loading shared library ld-linux-x86-64.so.2" on Alpine #483
Comments
Hi @mflis , thanks for providing the issue and easy repro steps. At this time an internal dependency of the AWS SDK for Kotlin (CRT) does not support Alpine Linux. Unlike the Java v2 SDK, at this time it is not possible to use the Kotlin SDK without CRT, so this is blocking the usage of applications using the Kotlin SDK on Alpine and other musl-based distributions. |
This should be fixed in 0.16.1-beta since the SDK no longer uses the CRT by default. NOTE: Multi Region Access Points (which the SDK does not yet support, see #625) still may require explicitly configuring a CRT based signer, we are still investigating paths forward. |
|
Hi, any updates on this? I am trying out awssdk 2.20.102 and awssdk.crt 0.22.5 and it still fails. |
Hi @carmithersh, 2.20.102 is the latest version of the AWS SDK for Java whereas this issue was for the AWS SDK for Kotlin. You can follow the issue for supporting CRT on Alpine Linux for AWS SDK for Java at aws-sdk-java-v2#2868. |
Describe the bug
Running aws-sdk-kotlin on Alpine linux results in following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/AWSCRT_164078280020313186175181261409494libaws-crt-jni.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/AWSCRT_164078280020313186175181261409494libaws-crt-jni.so)
Java AWS SDK (""software.amazon.awssdk:aws-sdk-java") works fine on Alpine Linux.
As a workaround I changed my base docker image from Alpine to CentOS
Expected behavior
aws-sdk-kotlin works fine on Alpine Linux
Current behavior
Trying to create S3Client results in following stacktrace:
Steps to Reproduce
Possible Solution
No response
Context
We use alpine linux as a standard base container in our company to achieve small docker images.
AWS Kotlin SDK version used
aws.sdk.kotlin:s3:0.9.5-beta
Platform (JVM/JS/Native)
JVM
Operating System and version
Alpine Linux v3.14
The text was updated successfully, but these errors were encountered: