Back to documentation
Troubleshooting

Fixing Deployment Failures

Diagnose and resolve common deployment errors.

Intermediate6 min readUpdated 2024-02-01

Build failed

Cause: Error during Docker build

Solutions:

  1. Check build logs for error message
  2. Verify Dockerfile syntax
  3. Ensure all dependencies are available
  4. Check network connectivity for package downloads

Container won't start

Cause: Configuration or runtime error

Solutions:

  1. Check container logs for errors
  2. Verify environment variables are set
  3. Ensure ports aren't already in use
  4. Check memory limits aren't too low

Port already in use

Cause: Another service using the port

Solutions:

  1. Find what's using the port: netstat -tlpn | grep :PORT
  2. Stop conflicting service
  3. Or choose a different port for your app

Out of disk space

Cause: Server storage full

Solutions:

  1. Clean up Docker: docker system prune
  2. Remove unused images and containers
  3. Check for large log files
  4. Consider expanding storage

Screenshots

Fixing Deployment Failures - Screenshot 1

Screenshots may vary slightly from the current version

Ready to try Server Compass?

Download the app and deploy your first application in under 5 minutes. No terminal knowledge required.