2

I have simple kotlin, quarkus project which is build to native with command: ./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true When my friend who is using macbook m1 uploades function.zip generated by quarkus like that:AWS function.zip upload UI it works fine, but when i do the same from my PC which is ubuntu 22.04 i get: invalid Entrypoint Error: fork/exec /var/task/bootstrap: exec format error Runtime.InvalidEntrypoint. Please help :( As said before i did ./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true and then uploaded from .zip with function.zip but when i invoke lambda it sais invalid Entrypoint Error: fork/exec /var/task/bootstrap: exec format error Runtime.InvalidEntrypoint

  • in [here](https://aws.amazon.com/blogs/architecture/deploy-quarkus-based-applications-using-aws-lambda-with-aws-sam/) says use ```sam init -a x86_64 -r java11 -p Zip -d maven -n java11-mvn-default``` for creating the function. error you are getting sounds like you are trying to run arm64 on x86 or vice versa. – ozkanpakdil Dec 23 '22 at 23:00
  • Indeed. You were right – Damian Kapłon Feb 02 '23 at 10:47

1 Answers1

2

in here says use sam init -a x86_64 -r java11 -p Zip -d maven -n java11-mvn-default for creating the function. The error you are getting sounds like you are trying to run arm64 on x86 or vice versa.

ozkanpakdil
  • 3,199
  • 31
  • 48