Robert Banick
05/01/2024, 3:51 PMFlow run infrastructure exited with non-zero status code:
Exited with non 0 code. (Error Code: 1)
This may be caused by attempting to run an image with a misspecified platform or architecture.
Oddly, If I manually trigger the same flow runs they work without issue.
Because push work pools don't provide logs and logs only go to Cloudwatch after infrastructure is provisioned it's proving hard to troubleshoot this issue. I remember @Will Raphaelson mentioning that the exited with non 0 code
error was a particular bugbear and you all at @Prefect have experience troubleshooting it. Any ideas what could be causing my issues?
I'm using Prefect 2.18.0 over AWS ECS (Fargate) infrastructure.Kevin Grismore
05/01/2024, 4:00 PMprefect deploy
in the cli with a prefect.yaml
file or flow.deploy()
in python? and in either case, are you using those strategies to build docker images?Kevin Grismore
05/01/2024, 4:10 PMplatform=linux/amd64
. I can show you where to add that depending on how you're deploying/building imagesRobert Banick
05/01/2024, 4:40 PMflow.deploy()
in python. We pull existing AWS Task Definitions which reference docker images we've already prepared and populated to AWS ECR. We are building over Linux boxes as part of a Github CI/CD chain -- not an M1-M3 Mac.Kevin Grismore
05/01/2024, 4:52 PMRobert Banick
05/01/2024, 5:31 PMKevin Grismore
05/01/2024, 5:33 PMKevin Grismore
05/01/2024, 5:34 PMdefault
? And does your ECS push work pool also have a work queue named default
?Robert Banick
05/01/2024, 5:50 PMRobert Banick
05/01/2024, 5:51 PMRobert Banick
05/01/2024, 5:51 PMRobert Banick
05/01/2024, 5:52 PMdefault
work queues. Actually they both have default
work queues and work queues named for the flow in question -- e.g. my-work-pool
Robert Banick
05/01/2024, 5:53 PMdefault
Kevin Grismore
05/01/2024, 5:53 PMKevin Grismore
05/01/2024, 5:54 PMRobert Banick
05/01/2024, 5:54 PMRobert Banick
05/01/2024, 7:13 PMRobert Banick
05/02/2024, 4:22 PMRobert Banick
05/02/2024, 4:22 PMKevin Grismore
05/02/2024, 4:22 PMRobert Banick
05/02/2024, 4:22 PMWill L
05/30/2024, 9:08 PM--container-architecture linux/amd64
and have ENV DOCKER_DEFAULT_PLATFORM=linux/amd64
in my dockerfileWill L
05/31/2024, 11:58 AMbuild
in prefect.yaml
rectified my issue
- prefect_docker.deployments.steps.build_docker_image:
platform: linux/amd64