Deployment Troubleshooting
This guide helps resolve common issues when deploying or running TurboPanel in production. For security-related issues, see Security. For setup verification, see Control Plane and Agent Setup.
Introduction
Production deployment issues typically fall into port conflicts, frontend loading problems, API connectivity, Docker socket permissions, or container startup failures. This guide provides targeted solutions with verification commands for each scenario.
Port Conflicts
Problem: Port 18282 is already in use when starting the control plane.
Solutions:
- Change
PORTenvironment variable to a different port - Update port mapping:
-p 18283:18282(host 18283 → container 18282) - Check for existing containers:
docker ps | grep turbopanel - Verify no other services use the port:
netstat -tuln | grep 18282 - Stop conflicting service or change its port
# Check what's using the port
docker ps | grep turbopanel
netstat -tuln | grep 18282Frontend Not Loading
Problem: Frontend UI doesn't load or shows errors.
Solutions:
- Verify frontend build completed: check
apps/app/distexists in image - Check container logs:
docker logs turbopanel - Ensure
FRONTEND_DIST_PATHpoints to correct directory
API Connection Issues
Problem: API requests fail or return errors.
Solutions:
- Verify backend is running:
docker ps - Test health endpoint:
curl http://localhost:18282/api/v1/health - Check logs:
docker logs turbopanel - Verify port mapping and firewall allow connections to 18282
- Ensure backend source files are present in container
# Health check
curl http://localhost:18282/api/v1/healthDocker Socket Permission Errors
Problem: Permission denied when accessing Docker socket.
Solutions:
- Verify socket is mounted:
ls -la /var/run/docker.sockin container - Container runs as
turbopanel:turbopanel(UID 9999); ensure socket is accessible to this user docker psshould work when exec'd into container- Check host socket permissions:
ls -la /var/run/docker.sock - Verify mount:
docker inspect turbopanel | grep -A 5 Mounts
# Verify socket in container
docker exec turbopanel ls -la /var/run/docker.sock
docker exec turbopanel docker psContainer Startup Failures
Problem: Container fails to start or exits immediately.
Solutions:
- Check logs:
docker logs turbopanel - Verify required files (frontend dist, backend source) are present
- Ensure dependencies are installed correctly in image
- Check environment variables are valid
- Test Node:
docker exec turbopanel node --version - Test entry point:
docker exec turbopanel pnpm --filter @turbopanel/api exec tsx src/self-hosted.ts
# Debug startup
docker logs -f turbopanel
docker exec turbopanel node --version
docker exec turbopanel ls -la apps/app/distGeneral Debugging
| Task | Command |
|---|---|
| Enable debug logging | docker run -e LOG_LEVEL=debug ... |
| View logs | docker logs -f turbopanel |
| Test API | curl http://localhost:18282/api/v1/health |
| Inspect container | docker exec -it turbopanel sh |
| Check frontend files | docker exec turbopanel ls -la apps/app/dist |
# Enable debug logging
docker run -e LOG_LEVEL=debug ...
# View logs
docker logs -f turbopanel
# Test API
curl http://localhost:18282/api/v1/health
# Inspect container
docker exec -it turbopanel sh
# Check frontend files
docker exec turbopanel ls -la apps/app/distRelated Documentation
- Security — Security-related configuration issues
- Control Plane — Setup verification and configuration reference
- Agent Setup — Agent troubleshooting and common issues
Last updated on