https://prefect.io logo
Title
a

Amogh Kulkarni

11/04/2022, 5:19 PM
Hi Team. I frequently see this error in our flows. It occurs randomly across flows. I am not sure where to investigation from. Can you provide any insights into the error?
Crash detected! Request to <http://prefect-url:4200/api/task_runs/e26b6472-281f-4af1-933c-82516953f4a7/set_state> failed.
z

Zanie

11/04/2022, 5:21 PM
Hi! If you turn on DEBUG logs we’ll get a full traceback which is helpful. Are you running your own server?
a

Amogh Kulkarni

11/04/2022, 6:00 PM
Yes, we are running prefect on our own. We have set the below variables to debug and true but still we are not getting much information
PREFECT_DEBUG_MODE: true
PREFECT_LOGGING_LEVEL: DEBUG
PREFECT_LOGGING_SERVER_LEVEL: DEBUG
z

Zanie

11/04/2022, 6:24 PM
You set
PREFECT_DEBUG_MODE
on the job where the flow runs and did not receive a traceback?
a

Amogh Kulkarni

11/04/2022, 7:14 PM
@Zanie No, we have set these environment variables in the config. We do not get this error on one flow. It randomly occurs on any flow. How do we set it on the job where the flow runs?
z

Zanie

11/04/2022, 7:35 PM
You’ll need to set the environment variable on the flow run itself in order to change the log level for that run
a

Amogh Kulkarni

11/05/2022, 11:53 AM
@Zanie Where do we set that?
z

Zanie

11/07/2022, 4:55 PM
On the
env
field of the flow run infrastructure block