native-clojure-lambda icon indicating copy to clipboard operation
native-clojure-lambda copied to clipboard

Errors in smoke-test

Open jacksonneal opened this issue 3 years ago • 0 comments

Hello,

After building for jvm and running the smoke-test.sh script, I get the following container logs. The particular error of concern is "Failed to load the native runtime interface client library /aws-lambda-runtime-interface-client.glibc.so. Exception: /tmp/.aws-lambda-runtime-interface-client: /tmp/.aws-lambda-runtime-interface-client: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit plat". I have spent much time going through this and other examples of GraalVM usage with the RIE but cannot seem to address this.

The nature of the error makes it seem like it is an issue with compatibility on my env. I am running on macOS BigSur with an M1.

@luontola do you have recommendations for addressing this?

I would appreciate any guidance. I've been reading many materials on improving clojure lambda speed and this example is by far the most thorough I have found. I would very much like to be able to run it.

Thank you.

Full logs:

`Attaching to native-clojure-lambda_jvm_1

jvm_1 | 02 Jun 2022 19:48:27,014 [INFO] (rapid) exec '/usr/bin/java' (cwd=/, handler=hello-world.jar)

jvm_1 | 02 Jun 2022 19:48:53,715 [INFO] (rapid) extensionsDisabledByLayer(/opt/disable-extensions-jwigqn8j) -> stat /opt/disable-extensions-jwigqn8j: no such file or directory

jvm_1 | 02 Jun 2022 19:48:53,721 [WARNING] (rapid) Cannot list external agents error=open /opt/extensions: no such file or directory

jvm_1 | START RequestId: c9553215-50e8-4b60-9faf-5f03aef2a0bc Version: $LATEST

jvm_1 | -XX:+ExitOnOutOfMemoryError -XX:G1ConcRefinementThreads=4 -XX:GCDrainStackTargetSize=64 -XX:InitialHeapSize=64443264 -XX:MaxHeapSize=3093276672 -XX:MaxRAMPercentage=75.000000 -XX:+PrintCommandLineFlags -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC

jvm_1 | VM settings:

jvm_1 | Max. Heap Size (Estimated): 2.88G

jvm_1 | Using VM: OpenJDK 64-Bit Server VM

jvm_1 |

jvm_1 | Failed to load the native runtime interface client library /aws-lambda-runtime-interface-client.glibc.so. Exception: /tmp/.aws-lambda-runtime-interface-client: /tmp/.aws-lambda-runtime-interface-client: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)

jvm_1 | Failed to load the native runtime interface client library /aws-lambda-runtime-interface-client.musl.so. Exception: /tmp/.aws-lambda-runtime-interface-client: /tmp/.aws-lambda-runtime-interface-client: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)

jvm_1 | 02 Jun 2022 19:48:54,201 [WARNING] (rapid) First fatal error stored in appctx: Runtime.ExitError

jvm_1 | 02 Jun 2022 19:48:54,201 [WARNING] (rapid) Process 16(java) exited: Runtime exited with error: exit status 255

jvm_1 | 02 Jun 2022 19:48:54,202 [ERROR] (rapid) Init failed InvokeID= error=Runtime exited with error: exit status 255

jvm_1 | 02 Jun 2022 19:48:54,208 [WARNING] (rapid) Reset initiated: ReserveFail

jvm_1 | 02 Jun 2022 19:48:54,210 [WARNING] (rapid) Cannot list external agents error=open /opt/extensions: no such file or directory

jvm_1 | -XX:+ExitOnOutOfMemoryError -XX:G1ConcRefinementThreads=4 -XX:GCDrainStackTargetSize=64 -XX:InitialHeapSize=64443264 -XX:MaxHeapSize=3093276672 -XX:MaxRAMPercentage=75.000000 -XX:+PrintCommandLineFlags -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseG1GC

jvm_1 | VM settings:

jvm_1 | Max. Heap Size (Estimated): 2.88G

jvm_1 | Using VM: OpenJDK 64-Bit Server VM

jvm_1 |

jvm_1 | Failed to load the native runtime interface client library /aws-lambda-runtime-interface-client.glibc.so. Exception: /tmp/.aws-lambda-runtime-interface-client: /tmp/.aws-lambda-runtime-interface-client: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)

jvm_1 | Failed to load the native runtime interface client library /aws-lambda-runtime-interface-client.musl.so. Exception: /tmp/.aws-lambda-runtime-interface-client: /tmp/.aws-lambda-runtime-interface-client: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)

jvm_1 | 02 Jun 2022 19:48:54,617 [WARNING] (rapid) First fatal error stored in appctx: Runtime.ExitError

jvm_1 | 02 Jun 2022 19:48:54,617 [WARNING] (rapid) Process 36(java) exited: Runtime exited with error: exit status 255

jvm_1 | END RequestId: 8ba48cef-01ca-4335-855e-ba5fac2decab

jvm_1 | REPORT RequestId: 8ba48cef-01ca-4335-855e-ba5fac2decab Init Duration: 6.35 ms Duration: 897.43 ms Billed Duration: 898 ms Memory Size: 3008 MB Max Memory Used: 3008 MB`

jacksonneal avatar Jun 02 '22 20:06 jacksonneal