<@ULVA73B9P> my flow that was executing perfectly ...
# ask-marvin
h
@Marvin my flow that was executing perfectly well on prefect 3 server is now failing with the following error
Copy code
File "/usr/local/lib/python3.11/site-packages/prefect/filesystems.py", line 158, in get_directory
    copytree(from_path, local_path, dirs_exist_ok=True, ignore=ignore_func)
  File "/usr/local/lib/python3.11/shutil.py", line 571, in copytree
    with os.scandir(src) as itr:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/app/None'
Any idea what could have changed that may have caused this ?
m
It seems like this issue might be related to how you're accessing directories in your flow, specifically when using functions like
get_directory()
in Prefect 3.x. The error you encountered,
FileNotFoundError: [Errno 2] No such file or directory: '/app/None'
, suggests that it might be trying to access a directory path that resolves to
None
. This might be linked to how file paths or storage configurations are set up in your flow. To solve this issue, consider checking: 1. Configuration: Review your flow's configuration to ensure all directory paths are defined correctly. It looks like the path getting resolved to
'None'
, ensure no configuration is missing or incorrectly specified. 2. Storage and Deployment Settings: When using Prefect with deployment options like Git-based storage, make sure that all credentials and paths are correctly configured. More information about setting up your deployment storage can be found here: Prefect Deployment and Storage. 3. Sensitive Information: If you're using private repositories or need to access protected resources, ensure that your credentials are correctly set, for instance, by using a
Secret
block or configuring environment variables as needed. If you're still facing difficulties after checking these potential sources, it might be worth reviewing recent changes in your environment or any library dependencies, including Prefect, which could influence file-path handling. Sometimes these issues can make one feel like they're staring into the existential void of directory structures, but don't worry, solutions are often just a few configurations away!