Hey all, is there an actual guide for using the `G...
# ask-community
n
Hey all, is there an actual guide for using the
GitHub
storage block anywhere? I have a deployment that uses a GitHub storage block I configured, and I think at runtime it downloads the source code correctly from the GitHub repo, but then just gives an error:
Copy code
Flow could not be retrieved from deployment.
Traceback (most recent call last):
  File "<frozen importlib._bootstrap_external>", line 846, in exec_module
  File "<frozen importlib._bootstrap_external>", line 982, in get_code
  File "<frozen importlib._bootstrap_external>", line 1039, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'path/to/flow/file.py'
This works perfectly fine when using an S3 storage block, so what's the best way to go about debugging this?
b
Hi Nick, just to confirm, are you deploying from the root of the directory where your flow is stored?
Sometimes the path can get misconfigured if the deployment is created outside of the root
n
I am indeed deploying from the root of the directory. does the GitHub storage block maybe end up cloning the repo to some other directory? I was trying to figure out a way to get the container the flow was running in to persist for long enough to let me exec in and manually poke around to see how the files end up being laid out in there, but I couldn't seem to do so without changing the Prefect source code itself