<@ULVA73B9P> my prefect deployment has a strange b...
# ask-marvin
m
@Marvin my prefect deployment has a strange behavior. I pull the flow for this deployment from a gitlab repo (using gitlab toke and sometimes it happens to fail the clone step with code 128. It is something that seems happening random with a frequence of 1/4 run of that deployment
m
It looks like the error you're encountering (clone step with exit code 128 when pulling from a GitLab repo) can be related to several factors. Here are some troubleshooting steps and practices based on the Prefect documentation and GitHub issues: 1. Access Tokens: Ensure that the access token for the GitLab repository is correctly configured. Double-check the token's validity and permissions. More info: Guide on Git-based storage 2. Network Issues: Intermittent network issues can cause the cloning process to fail randomly. Consider adding retry logic in your deployment pipeline to handle such failures gracefully. 3. Shell Script Execution: If specific environment conditions are needed, ensure that the
run_shell_script
utility is correctly configured to set up the repository environment before cloning. Example:
Copy code
yaml
   pull:
     - prefect.deployments.steps.run_shell_script:
         id: set-env
         script: export GIT_SSL_NO_VERIFY=true
         expand_env_vars: true
     - prefect.deployments.steps.git_clone:
         repository: "<https://gitlab.com/your/repo.git>"
         access_token: "{{ prefect.blocks.secret.gitlab-token }}"
4. Support for HTTP: Ensure that HTTP is supported for the repository URL in the way you are using Prefect blocks. Occasionally issues can arise if only certain protocols are supported or configured. GitHub issue discussing HTTP support: GitHub Issue 5. Logs and Debugging: Check the logs for more detailed error messages that might give insights into why the
exit code 128
is occurring. If after checking these suggested steps the problem persists, you may want to raise a more detailed issue (if not already) on the Prefect GitHub repository for more targeted support. Feel free to ask further questions if needed.