Hey - we are trying to migrate to github storage. ...
# prefect-community
Hey - we are trying to migrate to github storage. I have set up the storage for a private repo and all looks good, but when the flow starts to run and the
is triggered I get the following error in 🧵
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 294, in retrieve_flow_then_begin_flow_run
    flow = await load_flow_from_flow_run(flow_run, client=client)
  File "/usr/local/lib/python3.10/site-packages/prefect/client/utilities.py", line 40, in with_injected_client
    return await fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/prefect/deployments.py", line 197, in load_flow_from_flow_run
    await storage_block.get_directory(from_path=deployment.path, local_path=".")
  File "/usr/local/lib/python3.10/site-packages/prefect/filesystems.py", line 966, in get_directory
    raise OSError(f"Failed to pull from remote:\n {err_stream.read()}")
OSError: Failed to pull from remote:
 Cloning into '/tmp/tmpqnzraw28prefect'...
warning: templates not found in /usr/share/git-core/templates
git: 'remote-https' is not a git command. See 'git --help'.
This is used in conjunction with an ECSTask. I have git installed in the image.
RUN apt-get update && apt-get install -y curl ssh git gcc
Any help would be appreciated!
I am also using a PAT which i feed into the storage at build time
What image are you using / deployment are you using? Docker / K8s, etc? Any references I can find seem to suggest this is a git compilation issue