aws-samples / amazon-bedrock-serverless-prompt-chaining

Build complex, serverless, and highly scalable generative AI applications with prompt chaining.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting "exec /usr/local/bin/streamlit: exec format error" when the tasks launch followed by an exit 1

alanwill opened this issue · comments

I haven't been able to get the initial deploy to fully complete yet as the ECS tasks are constantly failing with exec /usr/local/bin/streamlit: exec format error and hence failing the healthcheck so the deployment gets stuck in a loop.

Any idea what could be causing this?

Are you maybe building the Docker image (via cdk deploy) from an ARM laptop, like with an Apple M2 chip? I'm guessing the Docker image is ARM, but it's trying to run in a Fargate x86 container.

Are you maybe building the Docker image (via cdk deploy) from an ARM laptop, like with an Apple M2 chip? I'm guessing the Docker image is ARM, but it's trying to run in a Fargate x86 container.

Wow that was spookily specific and also spot on! Yep that's exactly it. thanks for that major pointer, I'll build it on an EC2 instance instead. Thanks @clareliguori !

This change e694ac9 should fix it, to force CDK to build the Docker image for the right platform on your Mac.