https://prefect.io logo
Title
j

Jeffrey Lai

07/28/2022, 5:33 AM
Hi, Community, I tried to follow the tutorial of Prefect Cloud 2.0. I could run the flow locally and saw the flow run results right there in Prefect Cloud. However, when I created a flow run from my deployment on the cloud, the local terminal session didn't pick up the flow run and kept showing the error below. Any help will be appreciated!
2
a

Anna Geller

07/28/2022, 12:10 PM
can you share the actual traceback? 😄
definitely worth recreating your environment, creating a new API key, relogging in, recreate deployment and perhaps it works then? check this example https://github.com/anna-geller/prefect-deployment-patterns/tree/main/a_project_template
b

Benny Warlick

07/28/2022, 2:17 PM
I had a similar issue with local agent not picking up cloud flows. I took Anna's advice and started the tutorial over in a new environment, also went to the UI and deleted all keys, work-queues, and flows created on previous 2.0b beta versions, and now it works.
👍 3
a

Anna Geller

07/28/2022, 2:38 PM
Nice work, Benny!
j

Jeffrey Lai

07/28/2022, 9:23 PM
@Anna Geller Here's my traceback. Thank you
@Anna Geller Hi Anna, I recreated a virtual environment, reinstalled prefect 2.0, generated a new API key, and related a new deployment. I'm still getting the same error message. Thank you
a

Anna Geller

07/28/2022, 10:13 PM
do you have an option to try that in a Linux environment? or on Windows in WSL?
j

Jeffrey Lai

07/29/2022, 4:14 PM
@Anna Geller Hi Anna, it works now! it was because the antivirus software installed on my company laptop prevents Prefect Cloud from connecting to the local agent.
🙌 1
thank you
a

Anna Geller

07/29/2022, 6:40 PM
thanks for the update!