Skip to content
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 #25

Closed
torntrousers opened this issue Dec 3, 2018 · 5 comments

Comments

@torntrousers
Copy link

Hello. I'm trying this, following whats in the README and getting to the stepaws lambda invoke for the basic example and it fails with:

RequestId: 22649496-f719-11e8-b4b6-c796ae152b7e Error: Runtime failed to start: fork/exec /var/task/bootstrap: exec format error
Runtime.ExitError

Any ideas?

@sapessi
Copy link
Contributor

sapessi commented Dec 3, 2018

Hey @torntrousers, I suspect because the target platform. If you are using a Mac, you can follow the tutorial here. Otherwise, use an Amazon Linux Docker container - I posted a Dockerfile definition here

@torntrousers
Copy link
Author

Thanks, I am using a Mac and I followed that tutorial and was able to get the basic example working. Yay! It wasn't totally straight forward though and needed a few attempts to fix it. I'll see if can write up the minimal steps. Might be good to mention the building on a Mac complications in the README here.

@sriram-mv
Copy link

Ran into this transiently on windows too, with another custom runtime.

@softprops
Copy link
Contributor

If you are a serverless framework user you may want to check out the rust plugin It provides a more seemless build experience as it uses the lambdaci project's "provided" build env ( a faithful replication of the same env you will be deploying into )

@AnjaneyuluBatta505
Copy link

AnjaneyuluBatta505 commented May 26, 2022

for me, it's the problem with the platform. I was on mac with an m1 chip. After setting the architecture to x86_64 worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants