Harry Baker

    Harry Baker

    1 year ago
    ok not sure what i did (probably caused my editing directory structure) but for whatever reason the cloud dashboard no longer is able to execute my flows. I keep getting this error:
    Traceback (most recent call last):
     
    File "/home/ubuntu/anaconda3/envs/ca_covid_main/lib/python3.8/site-packages/prefect/agent/agent.py", line 384, in _deploy_flow_run
       
    deployment_info = self.deploy_flow(flow_run)
     
    File "/home/ubuntu/anaconda3/envs/ca_covid_main/lib/python3.8/site-packages/prefect/agent/local/agent.py", line 142, in deploy_flow
       
    env = self.populate_env_vars(flow_run, run_config=run_config)
     
    File "/home/ubuntu/anaconda3/envs/ca_covid_main/lib/python3.8/site-packages/prefect/agent/local/agent.py", line 199, in populate_env_vars
       
    else os.getcwd()
    FileNotFoundError: [Errno 2] No such file or directory
    i tried making a new project and reregistering but its still causing issues
    pretty sure this is because i did a rm of a directory that i re-synced over, but not sure how to go about fixing it
    hmm seems to have resolved itself after i went back again and closed all my terminals and redid everything
    Kevin Kho

    Kevin Kho

    1 year ago
    This normally happens when you register a Flow locally, and then it’s saved in the
    .prefect
    folder, and then yu try run it on a different machine that doesn’t have it in the
    .prefect
    folder. This leads to the serialized flow not being found. So from what you described, I guess it’s related to the
    rm
    of the directory yep. Gald you figured it out though.