Skip to main content

Setup Issues

Setup Wizard Fails to Start

Problem: python setup.py crashes or shows dependency errors. Solution:
1

Check Python Version

If version is too old, install Python 3.11 or newer.
2

Install Dependencies

Or use the setup script’s auto-install feature.
3

Try Alternative Command

Docker Not Running

Problem: Setup wizard reports “Docker is not running.” Solution:

Invalid Supabase Credentials

Problem: Setup completes but authentication fails with “alg value is not allowed.” Solution: The JWT secret doesn’t match exactly.
1

Get Correct JWT Secret

  1. Go to Supabase Dashboard → Project Settings → API
  2. Scroll to “JWT Settings”
  3. Copy the JWT Secret exactly (including any special characters)
2

Update Configuration

3

Restart Services

Database Connection Fails

Problem: Backend logs show “could not connect to database.” Solution:
Common issues:
  • Wrong password in connection string
  • Using Session pooler instead of Transaction pooler (should use port 6543)
  • IP restrictions in Supabase (check Project Settings → Database → Network Restrictions)

Service Startup Issues

Services Don’t Start

Problem: python start.py shows services as stopped. Solution:

Port Already in Use

Problem: “Address already in use” error for ports 3000 or 8000. Solution:

Redis Connection Failed

Problem: Backend can’t connect to Redis. Solution:

Runtime Issues

Frontend Shows 502 Bad Gateway

Problem: Frontend loads but shows “502 Bad Gateway” errors. Solution: Backend is not running or not reachable.
1

Check Backend Status

2

Check Backend Logs

3

Verify Configuration

Check apps/frontend/.env.local:

Agent Execution Fails

Problem: Agents fail to execute with “Daytona connection error.” Solution:
1

Verify Daytona API Key

2

Test Daytona Connection

3

Check Daytona Quota

Visit app.daytona.io and check your usage limits.

LLM API Errors

Problem: Agents return “LLM API error” or rate limit errors. Solution:
You’ve hit API rate limits.
  • Check your LLM provider dashboard for limits
  • Upgrade to higher tier plan
  • Add additional LLM providers as fallbacks

Memory Issues

Problem: Backend crashes with “killed” or out-of-memory errors. Solution:
Increase Docker memory limits:Edit docker-compose.yaml:
Restart:

Deployment Issues

ECS Task Fails to Start

Problem: ECS tasks fail health checks and restart continuously. Solution:
1

Check Task Logs

AWS Console → ECS → Cluster → Service → LogsOr via CLI:
2

Verify Secrets

Ensure AWS Secrets Manager has all required environment variables:
3

Check Task Definition

Verify CPU/memory limits are sufficient:
  • Minimum: 2048 CPU (2 vCPU), 4096 MB
  • Recommended: 4096 CPU (4 vCPU), 8192 MB

EKS Pod CrashLoopBackOff

Problem: Kubernetes pods keep restarting. Solution:
Common causes:
  • Missing environment variables (sync secrets)
  • Insufficient memory (OOMKilled)
  • Database connection issues
  • Bad container image (rollback)
Fix:

Load Balancer Health Check Fails

Problem: ALB shows unhealthy targets. Solution:
1

Test Health Endpoint

2

Check Health Check Config

ALB Target Group settings:
  • Path: /v1/health-docker
  • Port: 8000
  • Interval: 30 seconds
  • Timeout: 5 seconds
  • Healthy threshold: 2
  • Unhealthy threshold: 3
3

Verify Security Groups

Ensure ALB can reach backend on port 8000:
  • Backend security group allows inbound on 8000 from ALB
  • ALB security group allows outbound to backend

Performance Issues

Slow Response Times

Problem: Agents take a long time to respond. Causes & Solutions:
First request after deployment is slower.Solution: Increase minimum replicas or keep services warm with health checks.
Some LLM providers are slower than others.Solution:
  • Use faster models (e.g., Claude Haiku, GPT-4o-mini)
  • Switch to providers with better latency in your region
  • Enable streaming for real-time responses
Slow Supabase queries.Solution:
  • Check Supabase performance metrics
  • Add database indexes
  • Upgrade Supabase plan for more resources
Backend running out of CPU/memory.Solution:

High Memory Usage

Problem: Backend memory usage grows over time. Solution:
1

Monitor Memory

2

Enable Auto-Scaling

For Kubernetes:
For Docker Compose:
3

Increase Memory Limits

Temporarily increase limits while investigating:Docker Compose:
Kubernetes:

Data Issues

Lost Conversations

Problem: Chat history disappears. Solution: Check Supabase connection and data:
Common causes:
  • Supabase project paused (free tier inactivity)
  • Database connection issues
  • User authentication issues

File Upload Failures

Problem: Can’t upload files to agents. Solution:
1

Check Supabase Storage

Supabase Dashboard → Storage → PoliciesEnsure storage policies allow authenticated uploads.
2

Check File Size Limits

Default limits:
  • Supabase: 50MB per file
  • Backend: Configurable in environment
3

Verify CORS Settings

Supabase Dashboard → Storage → SettingsAdd your frontend URL to allowed origins.

Debugging Tools

Logs

Health Checks

Database Inspection

Getting Help

If you’re still stuck:

Discord Community

Get real-time help from the community

GitHub Issues

Report bugs and request features

Documentation

Review setup and configuration guides

GitHub Discussions

Ask questions and share solutions

Common Error Messages

For detailed troubleshooting of specific deployment types, see the EKS Operations Guide.