Nimesh Kumar

02/07/2023, 11:35 AM
Hi i am running prefect using docker and pushing my flows in S3 storage block, but while flow run, i am not able to download the flows This is the log, after that it get stuck
11:31:19.076 | INFO    | prefect.agent - Submitting flow run 'f8b44688-71ae-464f-ba5a-2220ee44f475'
11:31:19.105 | INFO    | prefect.infrastructure.process - Opening process '<function uuid4 at 0x7fd67974b560>'...
11:31:19.110 | INFO    | prefect.agent - Completed submission of flow run 'f8b44688-71ae-464f-ba5a-2220ee44f475'
<frozen runpy>:128: RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
11:31:20.431 | INFO    | Flow run '<function uuid4 at 0x7fd67974b560>' - Downloading flow code from storage at ''

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/prefect/", line 262, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "/usr/local/lib/python3.11/", line 222, in __aexit__
    await self.gen.athrow(typ, value, traceback)
  File "/usr/local/lib/python3.11/site-packages/prefect/utilities/", line 247, in asyncnullcontext
  File "/usr/local/lib/python3.11/site-packages/prefect/client/", line 47, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/prefect/", line 170, in load_flow_from_flow_run
    await storage_block.get_directory(from_path=deployment.path, local_path=".")
  File "/usr/local/lib/python3.11/site-packages/prefect/", line 468, in get_directory
    return await self.filesystem.get_directory(
  File "/usr/local/lib/python3.11/site-packages/prefect/", line 313, in get_directory
    return self.filesystem.get(from_path, local_path, recursive=True)
error from daemon in stream: Error grabbing logs: unexpected EOF
Can anyone please help

Rob Freedy

02/08/2023, 2:39 PM
Hey @Nimesh Kumar!! Are you able to share how you configured the Docker image that is executing your flow code? At first glance, it seems like a file path issue within the docker container that is executing your flow code

Nimesh Kumar

02/09/2023, 4:49 AM
I Have solved this, i entered the s3 bucket name wrongly while creating a block. Btw i am using the docker compose from here
👍 1