Troubleshooting Reference¶
This reference provides systematic solutions for common issues encountered when using Xaibo. Each section describes specific problems, their symptoms, and step-by-step resolution procedures.
Installation Issues¶
Missing Dependencies Error¶
Symptoms:
ImportError
when importing xaibo modulesModuleNotFoundError
for optional dependencies- CLI commands fail with import errors
Causes:
- Missing optional dependency groups
- Incomplete installation
- Python version incompatibility
Resolution:
- Verify Python version:
python --version
(requires >=3.10) - Install with required dependency groups:
- For development installations:
Available dependency groups:
webserver
: FastAPI, Strawberry GraphQL, watchfilesopenai
: OpenAI client libraryanthropic
: Anthropic client librarygoogle
: Google GenAI librarybedrock
: AWS Boto3 for Bedrocklocal
: Sentence transformers, tiktoken, transformers
UV Package Manager Issues¶
Symptoms:
xaibo init
command failsFileNotFoundError
for uv command- Project initialization incomplete
Resolution:
- Install UV package manager:
- Verify UV installation:
uv --version
- Ensure UV is in PATH
- Retry project initialization
Web Server Dependencies Missing¶
Symptoms:
ImportError: cannot import name 'XaiboWebServer'
xaibo dev
orxaibo serve
commands fail
Resolution:
- Install webserver dependencies:
- Verify FastAPI installation:
python -c "import fastapi"
Configuration Problems¶
Invalid Agent Configuration¶
Symptoms:
ValueError: Invalid agent config
- YAML parsing errors
- Agent instantiation failures
Common causes and fixes:
Missing required fields:
# Incorrect - missing id
modules:
- module: xaibo.primitives.modules.llm.OpenAILLM
# Correct
id: my-agent
modules:
- module: xaibo.primitives.modules.llm.OpenAILLM
id: llm
Invalid module paths:
# Incorrect - wrong module path
modules:
- module: xaibo.llm.OpenAI
id: llm
# Correct
modules:
- module: xaibo.primitives.modules.llm.OpenAILLM
id: llm
Missing exchange configuration:
# May require explicit exchange config for ambiguous protocols
exchange:
- module: orchestrator
protocol: LLMProtocol
provider: llm
Multiple Provider Conflicts¶
Symptoms:
ValueError: Multiple providers found for protocol
- Agent configuration validation errors
Resolution:
- Identify conflicting providers in error message
- Add explicit exchange configuration:
- Remove unused provider modules if not needed
Environment Variable Issues¶
Symptoms:
- Authentication errors with LLM providers
401 Unauthorized
responses- Missing API key errors
Server Authentication vs LLM Provider Authentication
This section covers authentication with LLM providers (OpenAI, Anthropic, etc.). For securing your Xaibo server with API keys, see the authentication guide.
Resolution:
- Create
.env
file in project root: - Verify environment loading in code:
Runtime Errors¶
Module Import Failures¶
Symptoms:
ImportError
during agent instantiationAttributeError: module has no attribute
- Module class not found errors
Resolution:
- Verify module path in configuration:
- Check for typos in module names
- Ensure all required dependencies are installed
- Verify Python path includes project directory
Protocol Implementation Errors¶
Symptoms:
AttributeError: Entry module does not implement TextMessageHandlerProtocol
- Missing protocol method errors
- Protocol mismatch exceptions
Resolution:
- Verify module implements required protocols:
- Ensure protocol methods are implemented:
- Check exchange configuration maps protocols correctly
Tool Integration Failures¶
Symptoms:
- Tool discovery errors
- Function call execution failures
- MCP server connection issues
Python tool errors:
-
Verify tool package structure:
-
Check tool package configuration:
MCP server errors:
- Verify server process is running
- Check connection configuration:
- Test server connectivity manually
Integration Problems¶
LLM Provider Issues¶
OpenAI Integration:
- Verify API key format:
sk-...
- Check model availability
- Monitor rate limits and quotas
Anthropic Integration:
- Verify API key format:
sk-ant-...
- Check model names
- Handle content filtering responses
Google Integration:
- Verify API key configuration
- Check model availability
- Handle safety filter responses
AWS Bedrock Integration:
- Configure AWS credentials properly
- Verify region availability
- Check model access permissions
MCP Server Integration¶
Connection Issues:
- Verify server executable permissions
- Check server startup logs
- Test server independently
- Validate JSON-RPC communication
Protocol Compatibility:
- Ensure MCP protocol version compatibility
- Verify tool schema definitions
- Check resource URI formats