I’m running a local prefect server with Kubernetes agent. I’m using a customised image. When running the flow, I’m getting this error: Pod prefect-job-35418434-nr4n5 failed. Container ‘flow’ state: terminated Exit Code:: 2 Reason: Error. What does this error mean? Is there anyway I could look into what’s happening inside the pod to check for this error?
Scarlett King
10/12/2021, 11:13 AM
I managed to open the pod, it’s showing the error as /usr/local/bin/prefect: line 4: import: command not found. It looks like it found the right image but somehow was not able to execute the flow. Any idea?
a
Anna Geller
10/12/2021, 12:07 PM
what base image do you use in your custom image? Is it an official prefect image or a Python image?
s
Scarlett King
10/12/2021, 1:58 PM
I used prefect image latest-python3.8 as base. I think I figured out the issue, it’s the entrypoint as change it for flow registration. I copied the entrypoint file in the base image and run with it, it seems to be executing the flow
Bring 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.