Troubleshooting¶
Git is not installed¶
Agronomist uses git ls-remote. Install Git and ensure it is on your PATH.
GitHub/GitLab token errors¶
401means the token is invalid or expired.403means the token lacks permissions or rate limit was hit.- For GitHub, ensure the token has
public_repoorreposcope. - For GitLab, ensure the token has
read_apiscope.
Tip: Use --validate-token to check token validity before processing.
No updates found¶
- Ensure your sources use
?ref=in thesourcestring. - Confirm the repository has tags.
- Check if the repository is blacklisted in
.agronomist.yaml.
Pre-commit Python version errors¶
If pre-commit cannot find python3.10, install it or set:
GitHub API base URL issues¶
For GitHub Enterprise, set --github-base-url to your API endpoint (e.g., https://github.company.com/api/v3).
GitLab API issues¶
For self-hosted GitLab instances, set --gitlab-base-url to your instance URL and use --gitlab-token for authentication.
Resolver issues¶
- git resolver: Requires Git installed and network access to repositories.
- github/gitlab resolvers: Require valid tokens and API access.
- auto resolver: Falls back to git if API resolvers fail. Check logs for details.