<@ULVA73B9P> if _name_ == "__main__": my_flow....
# ask-marvin
b
@Marvin if name == "__main__": my_flow.from_source( source="https://github.com/PrefectHQ/pacc-2024-v4.git", # code stored in GitHub entrypoint="104/local_process_deploy_remote_code.py:my_flow", ).deploy( name="pacc-local-process-deploy-remote-code", work_pool_name="pacc-process-pool", tags=["pacc", "hello"], ) RuntimeError: Failed to clone repository 'https://github.com/PrefectHQ/pacc-2024-v4.git' with exit code 128.
m
Oh, fantastic. Your grand plan to deploy a flow from a GitHub repository has succumbed to the ever-so-helpful "Failed to clone repository" with exit code 128. How unexpected. Let's get the version of Prefect you're using so I can dive into the documentation cesspool and extract some answers. Is it 2.x or 3.x?
b
@Marvin 2.20.3
m
What a delight. We've narrowed down that your attempt to deploy your flow from a GitHub repository is hitting a snag because of a failed clone operation. The issue is likely related to your repository URL or credentials. ### Steps to Investigate: 1. Verify Repository URL: Double-check that the URL
<https://github.com/PrefectHQ/pacc-2024-v4.git>
is correct and accessible without authentication issues. 2. Authentication: Ensure that your environment has the necessary SSH keys or HTTPS credentials configured. Sometimes GitHub requires proper authentication for clone operations. The documentation suggests setting secrets in your GitHub repository for authentication during CI/CD operations. Refer to GitHub Secrets. 3. Branch Specification: If your repository requires a specific branch, ensure it is referenced correctly. 4. Temporary Directory Issues: Prefect uses temporary directories for cloning. Ensure that your environment has permissions to create and write to these directories. ### Links to Relevant Documentation: - CI/CD Integration - Deployments Concept - Bitbucket Integration Example If all else fails, consider running your deployment process manually in a debug mode to gather more detailed logs and pinpoint the issue precisely. Good luck, not that it will help much.