Connection Errors
This article explains how to resolve timeout and connection errors that may appear after you deploy your application.
Connection Timeout Errors
The connection timeout limit between Cloudflare and Kinsta is 185 seconds. If a process or database query takes longer than 185 seconds, you may see one of the following errors:
504 Gateway Timeout
Error 524: a timeout occurred
You can use an application performance management/monitoring tool like New Relic to pinpoint which process or query is causing the timeout error. If optimizing the process or query to complete in less than 185 seconds isn’t possible, your application or database may need more resources.
To scale your application’s resources vertically or horizontally, change a pod’s size or increase the number of pods used for the process.
If the issue is with a database query, you can increase the database’s CPU, RAM, and disk space on the Database Settings page.
Upstream Connect Error
After deploying an application, if there is an issue with the port your application exposes, you may see the following error:
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111
This error is due to one of the following:
- The application is listening on the wrong port.
- The application isn’t listening to any port.
To resolve this error, update your application to listen on port 8080.