-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Runtime failed to start: fork/exec /var/task/bootstrap: exec format error <nil> #5340
Comments
+1 |
@kdnakt, Does it work if you use Java 8 instead of Java 11? |
@jaikiran I have the same problem with Java 8: |
Having looked around a bit, it looks like in this case, either or both of you are building this native image on MacOS and then running it on Linux VM perhaps? Can one you try using this command to build the native image locally:
This should generate the native image within a container and you can then use the More details on generating a native-build through a container can be found here https://quarkus.io/guides/maven-tooling#build-a-container-friendly-executable |
thanks @jaikiran - it works now! |
@goranopacic Thank you for confirming. I'll close this now. |
@jaikiran Thanks for your advice, I just confirmed it worked with Java11 following your advice! Also, thank you for @goranopacic trying with Java8. |
Describe the bug
I created a maven project according to this guide:
https://github.com/quarkusio/quarkus/blob/master/docs/src/main/asciidoc/amazon-lambda.adoc
And got an error when I tried
bash ./invoke-native.sh
Expected behavior
out
file is like following when I created the function withinvoke.sh
.Actual behavior
out
file is:To Reproduce
Steps to reproduce the behavior:
mvn archetype:generate -DarchetypeGroupId=io.quarkus -DarchetypeArtifactId=quarkus-amazon-lambda-archetype -DarchetypeVersion=1.0.0.CR1
and editcreate-native.sh
's IAM Role ARN.mvn clean install -Dnative
andbash ./create-native.sh
bash ./invoke-native.sh
shows errorConfiguration
quarkus.lambda.handler=test
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
: Darwin kdnakt.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64java -version
: openjdk version "11.0.2" 2019-01-15OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Additional context
(Add any other context about the problem here.)
The project is here: https://github.com/kdnakt/quarkus-lambda-sample
(Though lambda role arn is not modified)
The text was updated successfully, but these errors were encountered: