Troubleshooting Guide
This guide is intended to help you diagnose and resolve common issues you may encounter when using AgentKit. If you cannot find a solution here, feel free to contact us via GitHub Issues.
Installation Issues
1. agentkit command not found
- Symptom: When running the
agentkitcommand in the terminal, the system reportscommand not found. - Cause: This is usually because the executable path installed by
piphas not been added to the systemPATHenvironment variable. - Solution:
- Confirm install location: Run
pip show agentkit-sdk-pythonoruv pip show agentkit-sdk-pythonand find the install path indicated by theLocationfield. - Locate the executable: Under the install path’s
bindirectory (for example.../site-packages/bin), you should be able to find theagentkitexecutable. - Add to PATH: Add the absolute path of this
bindirectory to your~/.bashrc,~/.zshrc, or other shell configuration files.bashexport PATH="/path/to/your/python/bin:$PATH" - Reload configuration: Run
source ~/.bashrcor restart the terminal to apply the changes.
- Confirm install location: Run
2. Dependency conflicts
- Symptom: When installing
agentkit-sdk-python,pipreports dependency version conflicts. - Cause: Your Python environment may already contain library versions that are incompatible with AgentKit.
- Solution:
- Use a virtual environment (recommended): We strongly recommend using
uvorvenvto create a clean virtual environment in your project to avoid conflicts with system-level Python packages.bashuv venv source .venv/bin/activate uv pip install agentkit-sdk-python - Clean and reinstall: If you must use the existing environment, uninstall and reinstall:bash
pip uninstall agentkit-sdk-python pip install agentkit-sdk-python
- Use a virtual environment (recommended): We strongly recommend using
Configuration Issues
1. Environment variables not taking effect
- Symptom: Prompts indicate it cannot connect to AgentKit Platform or authentication fails.
- Cause: Required environment variables may not have been passed in, or incorrect environment variable names were used.
- Solution:
- Confirm required environment variables are set
bashecho $VOLCENGINE_ACCESS_KEY echo $VOLCENGINE_SECRET_KEY- Ensure there are no extra spaces or quotes
- Re-export the environment variables in the current shell session
2. Configuration file format error
- Symptom: When running
agentkit launch, it reports configuration file parsing failure. - Cause: File format issues
- Solution:
- Check whether
agentkit.yamlis formatted correctly (pay attention to indentation) - Re-run
agentkit configto generate configuration
- Check whether
Deployment Issues
1. CR creation failed
- Symptom:
CreateRegistry: QuotaExceeded.Registry The quota of Registry is exceeded.- Cause: Insufficient account quota
- Solution:
- Number of CR instances exceeds the quota limit
- In
agentkit config, configure it to use an existing CR instance name - Or contact the administrator to increase quota
2. Image build failed
- Symptom: Pipeline build fails and reports dependency installation errors.
- Cause: Dependency installation failure
- Solution:
- Check whether dependencies in
requirements.txtare correct - Confirm dependency versions are compatible with Python 3.12
- Check Pipeline logs for detailed error information (logs will be automatically downloaded to your local root directory; pay attention to prompts in the interactive UI and find a file named like pipeline_failed_****ff20ce223.log in the root directory)
- Check whether dependencies in
3. Runtime deployment timeout
- Symptom: Runtime stays in
Releasingstate for a long time. - Cause: The first deployment takes longer, or there may be insufficient resources.
- Solution:
- The first deployment usually takes 2–3 minutes; please be patient
- Use
agentkit statusto check status - If it is still not ready after 5 minutes, resources may be insufficient; try
agentkit destroyand then redeploy
4. Runtime status abnormal
- Symptom: Runtime status is
FailedorError. - Cause: Internal Runtime exception
- Solution:
- Check whether environment variable configuration is correct (especially the model API Key)
- Check logs in the AgentKit Platform console
- Confirm the application code has no startup errors
- Try cleaning up with
agentkit destroyand redeploying
Invocation Issues
1. invoke failed
- Symptom: When running
agentkit invoke, it reports connection failure or timeout. - Cause: Network issues or incorrect Endpoint configuration
- Solution:
- Use
agentkit statusto confirm Runtime status isReady - Check network connectivity
- Confirm the Endpoint address is correct
- Check firewall or proxy settings
- Use
2. Model invocation failed
- Symptom: The Agent returns an error indicating model access failure.
- Cause: Incorrect model API Key configuration or exhausted model quota
- Solution:
- Confirm the Ark model API Key configuration is correct
- Check whether the endpoint ID is valid
- Confirm whether model quota has been exhausted
- Log in to the Ark platform to check API Key permissions
Permission Issues
1. AK/SK authentication failed
- Symptom: Reports
InvalidAccessKeyIdorSignatureDoesNotMatch. - Cause: Incorrect AK/SK configuration or insufficient permissions
- Solution:
- Confirm AK/SK is correct and valid
- Check whether you have access permissions for the AgentKit service
- Confirm AK/SK has not been disabled or expired
- Contact the administrator to assign the required permissions
2. Resource access denied
- Symptom: Reports
AccessDeniedor insufficient permissions. - Cause: The account does not have enough permissions to perform the operation
- Solution:
- Confirm the account has the required permissions for the relevant resources
- Check IAM role configuration
- Contact the administrator to grant necessary permissions
Getting Help
If the above solutions cannot resolve your issue, please:
Check logs:
- Local logs: Check command line output
- Platform logs: Visit the AgentKit console to view detailed logs
Contact support:
- Provide detailed error information and logs
- Describe reproduction steps
- Attach relevant configuration files (be sure to redact sensitive data)
- Contact Volcengine technical support
Read the docs:
