504 Gateway Timeout + inability to connect to MySQL causing backend failure
miguelgomez-redi
PROOP
18 days ago
Hello Railway Support team,
I’m experiencing a critical issue in my deployment where my application is currently not accessible due to a persistent 504 Gateway Timeout (nginx/1.26.2).
🔴 Current behavior
- The application returns a 504 Gateway Timeout
- Nginx is running, but the upstream service is not responding
- The issue is impacting the entire application availability
🔎 Observations
- The backend (Laravel application) appears to hang during request processing
- Database connectivity issues were previously observed (MySQL connection failures)
- External and internal attempts to access the database have been inconsistent or failing
- As a result, the application seems blocked waiting for database responses
⚙ Environment
- Platform: Railway
- Backend: Laravel (PHP)
- Web server: Nginx 1.26.2
- Database: Railway MySQL service
- Issue type: Gateway timeout + suspected DB connectivity blocking
❓ Expected behavior
- Application should respond normally to requests
- Backend should connect reliably to the MySQL service
- No request should result in a gateway timeout
Actual behavior
- Requests consistently end in 504 Gateway Timeout
- Backend does not respond within the expected time window
- Application becomes unreachable
📌 Request
Could you please help verify:
- Whether the backend service is correctly running and reachable
- If there are any network restrictions between the app and MySQL service
- Whether the MySQL service is accessible from the runtime environment
- Any known issues or misconfigurations in my Railway setup
This is currently blocking production usage.
Thanks in advance for your support.
0 Replies
Railway
BOT
18 days ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • 18 days ago
Status changed to Solved miguelgomez-redi • 17 days ago