Common Issues and Solutions¶
Work in Progress
This page is currently under development.
Overview¶
This guide addresses common issues you might encounter when using AgentCore CLI and provides solutions to help you resolve them quickly.
AWS Credentials¶
Issue: Invalid AWS Credentials¶
Symptoms: - Error message: "❌ AWS credentials not found or invalid" - Commands fail with authentication errors
Solutions:
-
Verify your credentials are set up:
Bash -
Configure AWS CLI:
Bash -
Set environment variables:
Issue: Insufficient Permissions¶
Symptoms: - Error message: "AccessDenied" or "User is not authorized" - Operations fail despite valid credentials
Solutions:
- Review the required AWS permissions
- Ensure your IAM user or role has the necessary permissions
- Use the
--verbose
flag to see detailed error messages
Docker Issues¶
Issue: Docker Not Running¶
Symptoms: - Error message: "Cannot connect to the Docker daemon" - Container operations fail
Solutions:
-
Start Docker service:
-
Verify Docker is running:
Bash
Issue: Docker Build Errors¶
Symptoms: - Error during container build process - Build fails with specific error messages
Solutions:
- Check your Dockerfile syntax
- Ensure all referenced files exist
- Try building manually to see detailed errors:
Bash
Configuration Issues¶
Issue: Configuration File Not Found¶
Symptoms: - Error message: "Configuration file not found" - Commands fail with configuration-related errors
Solutions:
-
Run initialization:
Bash -
Specify custom config path:
Bash
Issue: Configuration Drift¶
Symptoms: - Error message: "Configuration drift detected" - Local and cloud configurations are out of sync
Solutions:
-
Check sync status:
Bash -
Push local changes to cloud:
Bash -
Pull cloud changes to local:
Bash
Deployment Issues¶
Issue: Agent Deployment Fails¶
Symptoms: - Error during agent creation or update - Agent status shows error state
Solutions:
- Check AWS service quotas
- Verify IAM permissions
- Check CloudFormation stack events:
Bash
Issue: Agent Invocation Fails¶
Symptoms: - Error when invoking an agent - Timeouts or connection errors
Solutions:
-
Check agent status:
Bash -
Verify agent is deployed correctly
- Check agent logs in CloudWatch
General Troubleshooting¶
Using Verbose Mode¶
For detailed error information, use the verbose flag:
Bash | |
---|---|
Checking Logs¶
View logs in CloudWatch for runtime issues:
Bash | |
---|---|
Getting Help¶
If you continue to encounter issues:
- Check the GitHub repository for known issues
- Submit a detailed bug report including:
- Command being run
- Error message
- Environment information
- Steps to reproduce