Common issues and solutions for Kubiya platform
401 Unauthorized
Bearer
# Check API key echo $KUBIYA_API_KEY # Test authentication curl -H "Authorization: Bearer $KUBIYA_API_KEY" \ https://api.kubiya.ai/v1/health
# Test connectivity ping api.kubiya.ai # Check DNS resolution nslookup api.kubiya.ai # Test specific port telnet api.kubiya.ai 443
# Check tool status kubiya tools list # Test tool execution kubiya tools test tool_name # View tool logs kubiya logs --tool tool_name
# Docker Compose resource limits services: kubiya-agent: deploy: resources: limits: memory: 4G cpus: '2'
KUBIYA_LOG_LEVEL=DEBUG KUBIYA_DEBUG=true
# Docker logs docker logs kubiya-agent -f # Kubernetes logs kubectl logs -f deployment/kubiya-agent -n kubiya # Local logs tail -f /var/log/kubiya/agent.log
# Check server health curl http://localhost:8000/health # Check tool discovery curl http://localhost:8000/discovery # Test tool execution curl -X POST http://localhost:8000/execute \ -H "Content-Type: application/json" \ -d '{"tool": "test_tool", "parameters": {}}'
# Check SSL certificate openssl s_client -connect api.kubiya.ai:443 # Verify certificate chain curl -v https://api.kubiya.ai/v1/health
# HTTP proxy HTTP_PROXY=http://proxy.company.com:8080 HTTPS_PROXY=http://proxy.company.com:8080 # No proxy for local services NO_PROXY=localhost,127.0.0.1,*.local
import json try: result = json.loads(tool_output) except json.JSONDecodeError as e: print(f"JSON parsing error: {e}") # Handle non-JSON output
# Install dependencies pip install -r requirements.txt # Check installed packages pip list # Update packages pip install --upgrade package_name
# Check all Kubiya environment variables env | grep KUBIYA # Verify configuration kubiya config show # Test configuration kubiya config test
# Fix file permissions chmod 755 /path/to/kubiya/files chown kubiya:kubiya /path/to/kubiya/files # Check permissions ls -la /path/to/kubiya/files
# Collect system logs kubiya logs --collect # Generate debug report kubiya debug --report # Export configuration kubiya config export > config.json
Was this page helpful?