Common Issues
Container Won’t Start
Symptom: Container exits immediately or fails health checks Diagnosis:- Missing Environment Variables
- Invalid Config File
- Database Migration Failed
- Port Already in Use
Database Connection Issues
Symptom: Cannot connect to PostgreSQL Diagnosis:API Request Failures
Symptom: 401, 403, 500 errors from LiteLLM Common errors:- 403 Forbidden
- 500 Internal Error
- Provider API Errors
Performance Issues
Symptom: Slow response times, high latency Diagnosis:Memory Issues
Symptom: OOM kills, container restartsHealth Check Failures
Symptom: Health checks timing out or failing Diagnosis:Debugging Tools
Enable Debug Logging
Interactive Shell
Network Debugging
Database Debugging
Error Reference
HTTP Status Codes
| Code | Meaning | Cause | Solution |
|---|---|---|---|
| 400 | Bad Request | Invalid request format | Check request body, headers |
| 401 | Unauthorized | Missing/invalid API key | Verify Authorization header |
| 403 | Forbidden | Permission denied | Check key permissions, budget |
| 404 | Not Found | Invalid endpoint/model | Verify URL and model name |
| 429 | Rate Limited | Too many requests | Wait and retry, increase limits |
| 500 | Internal Error | Server error | Check logs, report bug |
| 502 | Bad Gateway | Upstream error | Check provider API status |
| 503 | Service Unavailable | Overloaded/unhealthy | Scale up, check resources |
| 504 | Gateway Timeout | Request timeout | Increase timeout, check provider |
Common Error Messages
litellm.AuthenticationError: Invalid API key
litellm.AuthenticationError: Invalid API key
Cause: Provider API key is invalid or missingSolution:
litellm.RateLimitError: Rate limit exceeded
litellm.RateLimitError: Rate limit exceeded
Cause: Provider rate limit reachedSolution:
prisma.errors.PrismaClientInitializationError
prisma.errors.PrismaClientInitializationError
Cause: Cannot connect to databaseSolution:
Redis connection failed
Redis connection failed
Cause: Cannot connect to RedisSolution:
Support and Resources
Get Help
Discord Community
Join 5000+ users for real-time help
GitHub Issues
Report bugs and request features
Documentation
Complete guides and API reference
Enterprise Support
Dedicated support for production
Reporting Bugs
When reporting issues, include:Additional Resources
- Status Page: https://status.litellm.ai (check for outages)
- Changelog: https://github.com/BerriAI/litellm/releases
- Examples: https://github.com/BerriAI/litellm/tree/main/cookbook
- Provider Docs: https://docs.litellm.ai/docs/providers
Next Steps
Monitoring
Set up alerts to catch issues early
Performance
Optimize to prevent issues
Security
Secure your deployment
High Availability
Build resilient systems