Server Issues
Server fails to start
Server fails to start
Symptoms:2. Port already in use3. Invalid configuration syntax4. Docker daemon not accessible
- Server exits immediately after starting
- Error messages about configuration
- Port binding failures
API authentication failures
API authentication failures
Symptoms:2. Missing header in requests3. Disable auth for development
- 401 Unauthorized responses
- “Invalid API key” errors
Health check endpoint returns errors
Health check endpoint returns errors
Diagnosis:Solutions:
- Verify server is fully started (check logs for “Application startup complete”)
- Check for runtime initialization errors
- Ensure Docker/Kubernetes runtime is accessible
- Review log_level in configuration for more details
Sandbox Creation Issues
Sandbox stuck in Pending state
Sandbox stuck in Pending state
Symptoms:Look for status.reason and status.message fields.2. Common causes:Image pull failures:Solutions:3. Enable debug loggingRestart server and review detailed logs.
- Sandbox never transitions to Running
- Status remains Pending for extended period
- Verify image exists:
docker pull python:3.11-slim - Check image registry credentials
- Use full image URI including registry
- Insufficient CPU/memory on host
- Resource limits too high
- Pool capacity exceeded
Entrypoint validation errors
Entrypoint validation errors
Error:Solutions:1. Empty entrypoint array2. Missing entrypoint entirely
Network policy errors
Network policy errors
Error:Solution:1. Configure egress sidecar2. Pull egress image3. Verify bridge mode
- Network policies NOT supported in host mode
- Must use
network_mode = "bridge"
Resource limit parsing errors
Resource limit parsing errors
Common Errors:Invalid CPU format:Invalid memory format:Valid formats:
- CPU:
"100m","0.5","1" - Memory:
"128Mi","1Gi","512Mi"
Runtime Issues
Docker runtime connection failures
Docker runtime connection failures
Symptoms:2. Check Docker socket permissions3. Configure Docker API timeout4. Remote Docker host
- Cannot create sandboxes
- “Docker daemon not responding” errors
Kubernetes runtime issues
Kubernetes runtime issues
Symptoms:2. Check namespace exists3. Verify RBAC permissions4. Check controller logs
- Pods not created
- Timeout waiting for sandbox
Execd daemon not responding
Execd daemon not responding
Symptoms:Solutions:1. Verify execd image version2. Check container logs3. Verify network connectivity
- Cannot execute code or commands
- Ping endpoint timeout
- Host mode: Port 44772 directly accessible
- Bridge mode: Check port mappings and routing
Networking Issues
Cannot access sandbox endpoints
Cannot access sandbox endpoints
Host Mode Issues:1. Port already in use2. Firewall blocking accessBridge Mode Issues:1. Routing not configured2. Get endpoint URLUse returned endpoint URL instead of direct IP access.
Egress sidecar failures
Egress sidecar failures
Symptoms:Solutions:1. Missing egress image2. Capability conflicts
- Network policy not enforced
- Sidecar container errors
- Main container drops NET_ADMIN (required)
- Sidecar needs NET_ADMIN (automatically granted)
- Don’t manually override these settings
- Normal behavior when egress sidecar is active
- IPv6 automatically disabled for policy enforcement
Ingress gateway configuration
Ingress gateway configuration
Direct Mode (Default):Gateway Mode (Kubernetes):Route Modes:Wildcard:URI:Header:
Kubernetes-Specific Issues
BatchSandbox stuck in Pending
BatchSandbox stuck in Pending
Check status:Common causes:1. Pool capacity exceeded2. Resource quota exceeded3. Image pull failures
Pool not maintaining buffer
Pool not maintaining buffer
Diagnosis:Solutions:1. Controller not running2. Node resource constraints3. Adjust pool settings
Task execution failures
Task execution failures
Symptoms:Solutions:1. Missing task-executor sidecar2. Process namespace not shared3. Task command errors
- Tasks stuck in running state
- Tasks fail immediately
- Verify command exists in container
- Check command syntax
- Review task executor logs for errors
Log file not created
Log file not created
Solutions:1. Check directory permissions2. Verify file logging enabled3. Create log directory4. In Kubernetes
Debugging Techniques
Enable Debug Logging
Server:Docker Debugging
Interactive Debugging
VS Code/Cursor:Collect Diagnostic Information
Common Error Codes
| Error Code | Description | Solution |
|---|---|---|
IMAGE_PULL_ERROR | Failed to pull container image | Verify image exists and credentials |
CONTAINER_STARTING | Container is starting | Wait for transition to Running |
RESOURCE_LIMIT_EXCEEDED | Insufficient resources | Reduce limits or increase host capacity |
NETWORK_ERROR | Network configuration failed | Check network mode and routing |
EXPIRED | Sandbox TTL exceeded | Normal - automatic cleanup |
INVALID_REQUEST_BODY | Malformed API request | Check JSON syntax and required fields |
FILE_NOT_FOUND | File operation failed | Verify file path exists |
Getting Help
Report Issues
Submit bug reports and feature requests on GitHub
Before Reporting Issues
- Check existing issues - Search for similar problems
- Collect diagnostics - Use the diagnostic script above
- Minimal reproduction - Provide steps to reproduce
- Version information - Include server and runtime versions
- Configuration - Share relevant config (redact secrets)
- Logs - Include relevant log excerpts