Troubleshooting
This guide covers common issues and their solutions when working with Kubiya.Common Issues
Authentication Errors
Problem:401 Unauthorized errors when making API calls
Solutions:
- Verify API key is correct and not expired
- Check API key format (should include Bearerprefix)
- Ensure proper environment variable configuration
Connection Issues
Problem: Cannot connect to Kubiya services Solutions:- Check network connectivity
- Verify firewall settings
- Ensure correct endpoint URLs
Tool Execution Failures
Problem: Tools failing to execute properly Solutions:- Check tool dependencies are installed
- Verify tool permissions
- Review tool configuration
Memory/Resource Issues
Problem: Out of memory or resource exhaustion Solutions:- Increase container memory limits
- Optimize tool execution
- Implement resource monitoring
Debugging
Enable Debug Logging
View Logs
Health Checks
Performance Issues
Slow Tool Execution
Causes:- Network latency
- Resource constraints
- Inefficient tool implementation
- Optimize tool code
- Implement caching
- Use connection pooling
High Memory Usage
Causes:- Memory leaks
- Large data processing
- Inefficient algorithms
- Profile memory usage
- Implement garbage collection
- Use streaming for large data
Network Issues
SSL/TLS Errors
Proxy Configuration
Data Issues
Tool Output Parsing
Problem: Cannot parse tool output Solutions:- Check output format
- Verify JSON structure
- Handle edge cases
Missing Dependencies
Problem: Required packages not found Solutions:- Install missing dependencies
- Update requirements file
- Use Docker for consistent environment
Configuration Issues
Environment Variables
File Permissions
Getting Help
Log Collection
Support Information
When contacting support, include:- Error messages and logs
- Environment details
- Steps to reproduce
- Configuration files (sanitized)