Hi, I'm trying to make the upgrade to Prefect 3, a...
# ask-community
m
Hi, I'm trying to make the upgrade to Prefect 3, and when testing my flows I'm running into this error:
Process for flow run 'orchestrator_user-staging' exited with status code: 1
. The logs are not more descriptive than this, any suggestions on how to debug this?
b
Hi Moxit! Are you hosting your own server or using Prefect Cloud? Are you using a process work pool to run your flows, or are you using
.serve
?
m
I am using Prefect Cloud, and using a work pool that pulls the image from ECR
b
Gotcha. Have you enabled debug level logs yet by setting:
PREFECT_LOGGING_LEVEL=DEBUG
?
m
It's a docker worker, and no I have not set the logging level to DEBUG, let me try that, thanks!
@Bianca Hoch that didn't work, I only see a little more information about it changing the working directory and fails with the same message
α
The logs are definitely not verbose enough. We've been struggling with this for a while.
b
Hmm..so it's able to pull the image successfully, set the working directory, and then crashes. It never makes it to
"Importing flow code from 'flows/xyz.py:my_flow'
? Mind dropping the logs here when you have a moment?
m
I was able to go into the worker logs and find more insight, there are a lot of validation errors for the Pydantic models we use as inputs, since we are also trying to upgrade to Pydantic 2 at the same time.
👀 1
b
oh! good find
yeah 3.0 is built with pydantic 2.0
In the upgrade notes, there's a link to the pydantic migration guide
hopefully that proves to be of some help 🙇
m
Thank you! I appreciate the help
🍀 1