Database Connection Issues
Error: “Connection refused” or “ECONNREFUSED”
Symptoms:- Server fails to start
- Error message:
Error connecting to PostgreSQL: connect ECONNREFUSED
Check connection string
Verify
POSTGRES_URL in your environment configuration:Docker Compose
Kubernetes
Error: “password authentication failed”
Solution: Password mismatch between server config and database.Error: “database does not exist”
Solution: Database not created or wrong database name.Database migration failures
Error: “Migration failed” or “relation already exists” Solution:Redis Connection Issues
Error: “Redis connection refused”
Solution:Error: “NOAUTH Authentication required”
Solution: Redis password not provided or incorrect.Storage (S3/MinIO) Issues
Error: “Access Denied” or “Invalid credentials”
Solution:Test MinIO access
Access MinIO console:
- Docker Compose: http://localhost:9001
- Kubernetes:
kubectl port-forward svc/my-brainbox-minio 9001:9001
Error: “Bucket does not exist”
Solution: Create the bucket manually:Error: “Connection timeout” to S3 endpoint
Solution: Check endpoint URL format:Port Conflicts
Error: “Port already in use” or “Address already in use”
Solution:Container/Pod Issues
Container keeps restarting
Diagnosis:- Environment variable errors: Check logs for configuration errors
- Dependency not ready: Database or Redis not available
- Out of memory: Check resource limits
- Failed health checks: Server not responding on expected port
Out of memory errors
Solution:WebSocket Connection Issues
Error: “WebSocket connection failed”
Symptoms:- Real-time updates not working
- “Connection lost” messages in UI
- Browser console shows WebSocket errors
Performance Issues
Slow queries or timeouts
Solution:High memory usage
Solution:-
Monitor container memory:
- Reduce concurrent connections: Configure PostgreSQL connection pool limits
-
Enable Redis eviction:
Update/Upgrade Issues
Migration errors after update
Solution:“Image pull” errors
Error: Failed to pull image from registry Solution:Getting Help
If you’re still experiencing issues:Collect diagnostic information
Report the issue
- Check existing issues: GitHub Issues
- Create new issue with:
- Deployment method (Docker/Kubernetes)
- Brainbox version
- Error messages and logs
- Steps to reproduce
- Environment details (OS, Docker version, etc.)
Community support
- GitHub Discussions
- Documentation updates and examples
Preventive Maintenance
Regular backups
backup.sh
Monitoring
Set up basic monitoring:healthcheck.sh
Next Steps
Configuration Reference
Review all configuration options
Docker Setup
Docker Compose deployment guide
Kubernetes Setup
Kubernetes deployment guide