Hello, I get a flow crash error when I run the flo...
# prefect-getting-started
Hello, I get a flow crash error when I run the flow via deployment. However, the same flow run successfully via command line. Would appreciate any help. I am running the deployment on a windows server.
Hi. What does the logs inside the flow run say? It should hopefully give some indication of why/in what way it crashed
The logs are empty.
I was wondering what windows account the agent runs under? May be there is an access issue?
@Anna Geller I saw your response to another post with the same issue: The code runs fine via command line. But when it is run through deployment, 'C;|Program' is not a recognized as an internal or external command'. The flow reports a 'Crashed' status. Here is a similar issue: https://discourse.prefect.io/t/prefect-agent-c-program-is-not-recognized-as-an-internal-or-external-command-on-windows/2127. But I am unable to access the link to the solution.
Thanks @Anna Geller. I concur with the link that I posted that the agent fails when there is a space in the python.exe, which in this case 'C:\Program files (space between Program and files)'. I created a virtual env, where the path does not have a space, and it worked for me.
👍 1
🙌 1
gratitude thank you 1