Arnaud Stephan
08/19/2024, 4:01 PMpull:
- prefect.deployments.steps.git_clone:
repository: <https://gitlab.tools.tenacy.io/data/tenacy-prefect.git>
credentials: '{{prefect.blocks.secret.gitlab-personal-token}}'
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: Younium
version:
tags: []
description:
entrypoint: flows/flows.py:younium_flow
parameters: {}
work_pool:
name: tenacy-work-pool
work_queue_name:
job_variables: {}
schedules: []
But I keep getting this error : Flow could not be retrieved from deployment.
Marvin
08/19/2024, 4:02 PMs3fs
library needs to be installed.
### Specific Cases from GitHub Issues:
1. GitLab Repository Issues:
- From GitHub issue #8310, ensure your credentials are correctly set up and your repository and branch are correctly specified.
2. Local or Cloud Storage Issues:
- From issue #9001, the error can occur if the path specified in your storage block doesn't match where the agent or worker expects to find the code. Make sure the path
matches precisely what's uploaded.
### Troubleshooting Steps:
1. Verify Your Paths:
Double-check your paths in both your deployment and your storage blocks. If necessary, try converting relative paths to absolute paths.
2. Update and Validate Credentials:
Ensure that the credentials configured in your Prefect secret blocks are valid and have the necessary permissions.
3. Test Storage Access:
Manually test if you can access your repository or storage location using the credentials outside of Prefect.
4. Check Logs:
Prefect logs will provide detailed error messages that can help pinpoint the problem (e.g., lack of permissions, incorrect paths).
### Next Steps:
1. Validate your path and credentials configuration.
2. Review and apply the specific guidance from the relevant GitHub issues mentioned above.
For more detailed steps and examples, you can refer to the Prefect documentation.
If the problem persists, please share specific log entries, and we can dig deeper into them.Arnaud Stephan
08/19/2024, 4:05 PMFile "/usr/local/lib/python3.10/site-packages/prefect/runner/storage.py", line 167, in _repository_url_with_credentials
for k, v in credentials.items():
AttributeError: 'str' object has no attribute 'items'