Troubleshooting ​
This guide helps resolve common issues with the Agent Starter Pack.
Authentication Issues ​
For detailed information on authentication with Vertex AI, visit the official documentation.
"Could not find credentials" or "Could not find project" Error ​
Problem: Missing credentials error with Vertex AI.
Solution:
- Log in to Google Cloud:
gcloud auth login --update-adc - Set the correct project:bash
gcloud config set project YOUR_PROJECT_ID gcloud auth application-default set-quota-project YOUR_PROJECT_ID
Vertex AI API Not Enabled ​
Problem: Operations fail because the Vertex AI API is not enabled in your project.
Solution:
Enable the Vertex AI API:
bashgcloud services enable aiplatform.googleapis.comVerify the API is enabled:
bashgcloud services list --filter=aiplatform.googleapis.com
Permission Denied Errors ​
Problem: "Permission denied" errors with Google Cloud APIs.
Solution: Ensure your user or service account has the necessary IAM roles. For example, for Vertex AI, you often need roles/aiplatform.user. Grant roles using the gcloud projects add-iam-policy-binding command or the Cloud Console.
Command Not Found: agent-starter-pack ​
Problem: "Command not found" error after installation.
Solution:
- Verify installation:bash
pip list | grep agent-starter-pack - Check PATH:bash
echo $PATH - Reinstall if needed:bash
pip install --user agent-starter-pack - For pipx:bash
pipx ensurepath source ~/.bashrc # or ~/.zshrc
Project Creation Issues ​
Project Creation Fails ​
Problem: agent-starter-pack create fails.
Solution:
- Check Error Messages: Examine output for clues.
- Write Permissions: Ensure write access to the directory.
- Project Name: Use lowercase letters, numbers and hyphens only.
- Debug Mode: Consider using debug mode to get more detailed error information:bash
agent-starter-pack create my-project-name --debug
Issues with Agent Engine ​
Consider leveraging the public product documentation
Getting More Help ​
If issues persist:
Check GitHub Issues: Search for existing Github issues in the
agent-starter-packGithub repository.File a New Issue: Provide:
- Problem description.
- Steps to reproduce.
- Error messages (preferably run with
--debugflag for detailed logs). - Environment: OS, Python version,
agent-starter-packversion, installation method, shell.