Common Issues
This guide covers common problems you might encounter when using Dokploy and their solutions.Installation Issues
Installation Script Fails
Docker not installed
Docker not installed
Problem: Installation fails because Docker is not installed.Solution:
Port already in use
Port already in use
Problem: Port 3000 or 80/443 is already in use.Solution:
Insufficient permissions
Insufficient permissions
Problem: Permission denied errors during installation.Solution:
Deployment Issues
Build Failures
Build timeout
Build timeout
Problem: Build process times out.Solution:
- Increase build timeout in application settings
- Optimize your build process (remove unnecessary dependencies)
- Check server resources (CPU, memory)
- Use Docker layer caching
Out of memory during build
Out of memory during build
Problem: Build fails with out of memory error.Solution:Or upgrade your server to have more RAM.
Nixpacks build fails
Nixpacks build fails
Problem: Nixpacks cannot detect or build your application.Solution:
- Ensure your project has the correct files (package.json, requirements.txt, etc.)
- Try using a different build provider (Buildpacks or Dockerfile)
- Check Nixpacks logs for specific errors
- Add a
nixpacks.tomlconfiguration file
Git clone fails
Git clone fails
Problem: Cannot clone repository.Solution:
- Verify repository URL is correct
- Check SSH key configuration for private repos
- Ensure branch name is correct
- Verify network connectivity
- Check Git provider authentication
Runtime Issues
Application won't start
Application won't start
Problem: Container starts but application doesn’t run.Solution:
- Check application logs in Dokploy dashboard
- Verify environment variables are set correctly
- Ensure the start command is correct
- Check if required ports are exposed
- Verify database connections
Application crashes immediately
Application crashes immediately
Problem: Container starts then immediately exits.Solution:
502 Bad Gateway
502 Bad Gateway
Problem: Getting 502 errors when accessing application.Solution:
- Verify application is listening on the correct port
- Check if application is running:
docker ps - Ensure port is correctly configured in Dokploy
- Check Traefik logs for routing issues
- Verify health check endpoint exists
Database Issues
Cannot connect to database
Cannot connect to database
Problem: Application cannot connect to database.Solution:
- Verify database is running: Check in Dokploy dashboard
- Ensure connection string is correct
- Check database credentials in environment variables
- Verify network connectivity between containers
- Use internal Docker network hostnames
Database backup fails
Database backup fails
Problem: Automated backups are failing.Solution:
- Check storage destination is configured correctly
- Verify S3/storage credentials
- Ensure sufficient disk space
- Check backup logs for specific errors
- Test manual backup first
Database migration fails
Database migration fails
Problem: Database migrations don’t run or fail.Solution:
- Run migrations manually first
- Check migration scripts for errors
- Verify database user has sufficient privileges
- Ensure migration command is correct in deployment settings
- Check application logs for migration errors
Docker Issues
Docker daemon not running
Docker daemon not running
Problem: Cannot connect to Docker daemon.Solution:
Permission denied on Docker socket
Permission denied on Docker socket
Problem: Cannot access Docker socket.Solution:
Disk space issues
Disk space issues
Problem: Running out of disk space.Solution:
Network & SSL Issues
SSL certificate not issued
SSL certificate not issued
Problem: Let’s Encrypt certificate fails to generate.Solution:
- Verify domain DNS points to your server IP
- Wait for DNS propagation (can take up to 48 hours)
- Ensure ports 80 and 443 are open
- Check for rate limiting from Let’s Encrypt
- Verify email is configured correctly
Domain not accessible
Domain not accessible
Problem: Cannot access application via domain.Solution:
- Verify DNS A record points to server IP
- Check domain configuration in Dokploy
- Ensure Traefik is running properly
- Check firewall rules allow ports 80/443
- Verify application is running
Traefik routing issues
Traefik routing issues
Problem: Traefik not routing requests correctly.Solution:
Performance Issues
High CPU usage
High CPU usage
Problem: Server experiencing high CPU usage.Solution:
- Check which containers are using CPU:
docker stats - Scale horizontally with multi-node setup
- Optimize application code
- Add CPU limits to containers
- Upgrade server resources
High memory usage
High memory usage
Problem: Running out of memory.Solution:Consider upgrading server RAM or optimizing applications.
Slow deployments
Slow deployments
Problem: Deployments take too long.Solution:
- Use Docker layer caching
- Optimize Dockerfile (multi-stage builds)
- Reduce image size
- Use faster storage (SSD)
- Upgrade network speed
- Pre-pull base images
API & Automation Issues
API authentication fails
API authentication fails
Problem: API requests return 401 Unauthorized.Solution:
- Verify API token is correct
- Check token hasn’t expired
- Ensure Authorization header is properly formatted:
- Generate a new API token if needed
Webhook not triggering
Webhook not triggering
Problem: Webhooks not triggering deployments.Solution:
- Verify webhook URL is correct
- Check webhook logs in Git provider
- Ensure webhook secret matches (if configured)
- Test webhook manually with curl
- Check firewall allows incoming webhook requests
Multi-Node Issues
Node connection fails
Node connection fails
Problem: Cannot connect to remote node.Solution:
- Verify SSH access to remote server
- Check firewall rules on remote server
- Ensure Docker is installed on remote server
- Verify Docker Swarm is initialized
- Check network connectivity between nodes
Swarm mode issues
Swarm mode issues
Problem: Docker Swarm not working properly.Solution:
Logging & Debugging
View Logs
Debug Mode
Enable verbose logging for troubleshooting:Getting Help
If you’re still experiencing issues:Discord Community
Get real-time help from the community
GitHub Issues
Report bugs or request features
FAQ
Check frequently asked questions
Documentation
Browse the complete documentation
Reporting Issues
When reporting an issue, include:- Dokploy version: Check in dashboard settings
- Server details: OS, RAM, CPU
- Error messages: Complete error logs
- Steps to reproduce: What you did before the error
- Expected vs actual behavior: What should happen vs what happens
- Screenshots: If applicable