Mike Safruk
04/19/2023, 9:46 PMFlow could not be retrieved from deployment. Traceback (most recent call last): File "<frozen importlib._bootstrap_external>", line 879, in exec_module File "<frozen importlib._bootstrap_external>", line 1016, in get_code File "<frozen importlib._bootstrap_external>", line 1073, in get_data FileNotFoundError: [Errno 2] No such file or directory: '/opt/flow-code.py' The above exception was the direct cause of the following exception: ScriptError: Script at 'flow-code.py' encountered an exception: FileNotFoundError(2, 'No such file or directory')
Has anyone seen this before? Any tips on where to spend time troubleshooting?Abhinav Chordia
04/19/2023, 9:52 PMMike Safruk
04/19/2023, 9:53 PMChris White
04/19/2023, 9:55 PMdocker-s3
recipe (prefect project init --recipe docker-s3
)Mike Safruk
04/19/2023, 9:57 PMAbhinav Chordia
04/19/2023, 9:57 PMChris White
04/19/2023, 9:59 PMMike Safruk
04/19/2023, 9:59 PMJean-Michel Provencher
05/03/2023, 6:57 PMFileNotFoundError: [Errno 2] No such file or directory: 'prefect2/test.py'
file is actually in S3, so it's probably a change in the way you handle paths with the S3 storage right ?Chris White
05/03/2023, 7:12 PMJean-Michel Provencher
05/03/2023, 7:14 PMs3fs==2023.4.0
fsspec==2023.4.0
I have these two fixed versions, but still prefect is no longer able to pull the files from the S3 storageChris White
05/03/2023, 7:29 PMprefect.filesystems.S3
Jean-Michel Provencher
05/03/2023, 7:31 PMpath=deployment_variables.short_commit_hash + "/", # Fix in order for prefect to be able to properly fetch the storage code from S3 <https://github.com/PrefectHQ/prefect/issues/9262>
Chris White
05/04/2023, 4:04 PMJean-Michel Provencher
05/04/2023, 5:11 PM