Gateway Timeout (504) Errors
Gateway timeout errors occur when the Coolify proxy cannot get a response from your application within the configured timeout period. This is different from Bad Gateway (502) errors, which indicate the proxy cannot connect to your application at all.
Common Causes
There are two primary scenarios that cause 504 Gateway Timeout errors in Coolify:
- Custom Docker Network Isolation - The proxy cannot reach applications using custom networks
- Large Upload/Download Timeouts - Default timeout settings are too short for large file transfers
Quick Diagnosis Checklist
Run through these steps to identify your specific issue:
-
Check the error code:
- 504 = Gateway Timeout (this guide)
- 502 = Bad Gateway (see Bad Gateway troubleshooting)
-
Check timing:
- Immediate = likely network/configuration issue
- After ~60 seconds = likely timeout issue
- Random after hours/days = likely network isolation issue
-
Check network configuration:
# List all Docker networks docker network ls # Check which networks your containers are using docker ps --format "table {{.Names}}\t{{.Networks}}"
Prevention Tips
- Avoid custom Docker networks unless absolutely necessary
- Set appropriate timeouts for your application's needs during initial setup
- Implement health checks to maintain connectivity
- Monitor proxy logs regularly for timeout patterns
- Use progress indicators for long-running operations to prevent client-side timeouts
Support
If these solutions don't resolve your gateway timeout issues:
-
Collect diagnostic information:
# Save this output docker ps --format "table {{.Names}}\t{{.Networks}}\t{{.Status}}" docker logs coolify-proxy --tail 200 > proxy-logs.txt docker logs <your-container-name> --tail 200 > app-logs.txt -
Join our Discord Community
-
Share your configuration, logs, and the specific steps you've tried
No Available Server Error
Fix No Available Server (503) errors in Coolify by diagnosing health checks, domain configuration, port mismatches, and Traefik proxy issues.
Failed To Get Access Token During Deployment
Fix GitHub access token errors in Coolify deployments caused by NTP time synchronization issues affecting JWT 'iat' claim validation during authentication.
