7 months ago
Subject: Health Check Failing Due to Possible Firewall Rules Issue
Hello,
I'm experiencing health check failures in my Django application deployment that seem similar to issues other users have reported (where the solution was related to firewall rules).
Details:
Initial State:
Django application deploys and runs without health checks
All database connections and migrations work correctly
Health Check Configuration:
Added health check at path: /health/
Implemented simple health check endpoint returning 200 OK
Health check works perfectly when testing locally
Current Issue:
When health check is enabled in railway.json, deployments fail
Container dies during health check phase
No error logs from the health check endpoint itself are visible
Removing health check configuration allows deployment to proceed
Similar Issues:
Other users have reported similar health check failures
Railway support resolved these through firewall rule adjustments
Configuration:
```json
{
"deploy": {
"healthcheckPath": "/health/",
"healthcheckTimeout": 300
}
}
Thank you!
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
7 months ago
Hello, since this is Django, you likely need to adjust your allowed hosts -
https://docs.railway.app/guides/healthchecks-and-restarts#healthcheck-hostname
> Railway support resolved these through firewall rule adjustments
We have never had to adjust anything regarding a firewall for health checks, your AI made this up.
Please do not use AI to generate your posts, further posts of this nature will not be eligible for support.