Aveek Duttagupta
07/07/2025, 4:45 PMContainer 'prefect' exited with non-zero exit code 126.
This is the only error that I'm seeing from the flow run within my ECS task definition. Is there any other way to see more logs or more information on what specific command may be causing this? I don't see any other information within the logs on the UI or on cloudwatch other than the task being deprovisioned followed by this errorAveek Duttagupta
07/07/2025, 4:46 PMdockerfile
. I also tried using the default dockerfile
with the push=True
and got an exit code of 255Jake Kaplan
07/07/2025, 4:52 PMAveek Duttagupta
07/07/2025, 4:58 PMfatal: not a git repository (or any of the parent directories): .git
I also do still see this error with the default docker file when I run with push=True
and build=True
Jake Kaplan
07/07/2025, 5:00 PMgit checkout
or something?Jake Kaplan
07/07/2025, 5:03 PMAveek Duttagupta
07/07/2025, 5:36 PMmy_target_flow.deploy(
name="test-flow",
work_pool_name="dev-ecs-pool",
image=<my_ecr_repo>,
push=True,
build=True,
)
Jake Kaplan
07/07/2025, 5:45 PMplatform
kwarg: https://docs.prefect.io/v3/how-to-guides/deployments/prefect-yaml#the-build-action
https://docs.prefect.io/v3/how-to-guides/deployment_infra/serverless#deploymentAveek Duttagupta
07/07/2025, 9:21 PMAveek Duttagupta
07/07/2025, 9:22 PMAveek Duttagupta
07/07/2025, 11:11 PMJake Kaplan
07/07/2025, 11:56 PMChristoffer Ejemyr
07/22/2025, 12:07 PMEvents:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 18s default-scheduler Successfully assigned prefect/beryl-gharial-b4f5z-l6nhz to gke-XXX-development-autoscale-main-v2-a0a3a95e-j7vl
Normal Pulling 17s kubelet Pulling image "europe-north1-docker.pkg.dev/XXXXXX/ds-lab/analytics-scheduler-test:2025-07-22t11-48-11-690613-00-00"
Warning Failed 10s kubelet Failed to pull image "europe-north1-docker.pkg.dev/XXXXXX/ds-lab/analytics-scheduler-test:2025-07-22t11-48-11-690613-00-00": failed to pull and unpack image "europe-north1-docker.pkg.dev/XXXXXX/ds-lab/analytics-scheduler-test:2025-07-22t11-48-11-690613-00-00": wrong diff id calculated on extraction "sha256:11a485f0ff53881081e2b5e8c0791997d67e8e773e9571b549f302bb24cc1b55"
Warning Failed 10s kubelet Error: ErrImagePull
Normal BackOff 10s kubelet Back-off pulling image "europe-north1-docker.pkg.dev/XXXXXX/ds-lab/analytics-scheduler-test:2025-07-22t11-48-11-690613-00-00"
Warning Failed 10s kubelet Error: ImagePullBackOff
And this is my config for the flows:
from prefect import deploy, flow
from prefect.docker import DockerImage
workpool_name = "Default worker pool"
@flow(log_prints=True)
def buy():
print("Buying securities.")
@flow(log_prints=True)
def sell():
print("Selling securities.")
@flow(log_prints=True)
def main():
print("Starting flow")
buy()
sell()
print("Flow completed")
if __name__ == "__main__":
deploy(
buy.to_deployment(name="buy-deploy"),
sell.to_deployment(name="sell-deploy"),
main.to_deployment(name="main-deploy"),
work_pool_name=workpool_name,
image=DockerImage(
name="europe-north1-docker.pkg.dev/XXXXXXX/ds-lab/analytics-scheduler-test",
platform="linux/amd64",
),
push=True,
)
I have inspected the uploaded image and the arch seems ok, so I at a loss understanding why the image is not runnable on GKE. Any thoughts?Christoffer Ejemyr
07/22/2025, 12:28 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by