I also can't get <shared storage> working with Loc...
# prefect-getting-started
d
I also can't get shared storage working with LocalFileSystem. For some reason including a
--path
(or appending to
-sb
) seems to make loading the deployed flow look in tmp instead of the basepath:
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "<proj_dir>/.venv/lib/python3.9/site-packages/prefect/engine.py", line 331, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "<proj_dir>/.venv/lib/python3.9/site-packages/prefect/client/utilities.py", line 40, in with_injected_client
    return await fn(*args, **kwargs)
  File "<proj_dir>/.venv/lib/python3.9/site-packages/prefect/deployments.py", line 198, in load_flow_from_flow_run
    await storage_block.get_directory(from_path=deployment.path, local_path=".")
  File "<proj_dir>/.venv/lib/python3.9/site-packages/prefect/filesystems.py", line 156, in get_directory
    copytree(from_path, local_path, dirs_exist_ok=True, ignore=ignore_func)
  File "<python_lib>/shutil.py", line 566, in copytree
    with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmptnvtgfo6prefect/logsimple'