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?
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?
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?
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