5 months ago
Hello
I'm currently using Railway's Wordpress + MySQL template.
Since transferring my site to Railway when I'm on wordpress without loading a new page for a few minutes (1-2 min) the server loses the connection.
If I load another page while staying on the page where the connection was lost, the connection comes back at that moment.
Could you please investigate if the problem comes from your infrastructure or if I need to configure something specific? This problem is becoming quite disabling.
I didn't have it when I was on AWS before.
Thanks in advance. Best regards.
8 Replies
5 months ago
Heya, could you expand on "the server loses the connection" ? is this the server's connection to the database, or the connection between you and the server ?
There's currently nothing on our end that should be causing this, but it may due to a misconfiguration.
Best,
Nico
Status changed to Awaiting User Response railway[bot] • 5 months ago
5 months ago
This happens between me and the WordPress administration page (server).
It also happens with certain API tools that sometimes fail to communicate on the first call with my WordPress, but on the second call it's fine.
For example, when I'm on a product creation page (i.e. WordPress admin panel), I lose the connection between the admin panel and the server while I'm filling in the product information.
What's more, sometimes the server seems to respond slowly to the first request, as if it were going into sleepy mode (even though this is not active in the settings).
To be precise, but not with certainty, this has been happening since I moved to the Amsterdam region.
Maybe a coincidence?
Status changed to Awaiting Railway Response railway[bot] • 5 months ago
5 months ago
Just to confirm, are you communicating with any of the services in the "Platforme partenaire" group ?
Status changed to Awaiting User Response railway[bot] • 5 months ago
5 months ago
No only the group "WordPress + MySQL" on production environment
An example of my issue :
Translate the error message on WordPress like : "Connection lost. Saving has been deactivated until you log in again. This publication is saved in your browser, just in case."
Status changed to Awaiting Railway Response railway[bot] • 5 months ago
5 months ago
This definitely sounds like an application-level issue. Could you check your devtool's network tab to see what error you're getting prior to the error banner showing up ?
Status changed to Awaiting User Response railway[bot] • 5 months ago
5 months ago
It's simply a classic wordpress image coupled with a MySQL database. From the screenshots, it seems that the server is no longer responding to XHR requests by timeout over 30s... The only way to get the AJAX requests working again is to open another page of my site (as if the server had to be woken up)...
If it helps, here are the PHP parameters in my htaccess : php_value upload_max_filesize 500M php_value post_max_size 2G php_value max_execution_time 1200 php_value max_input_vars 2000
Attachments
Status changed to Awaiting Railway Response railway[bot] • 5 months ago
5 months ago
I can see 499 codes in your service's http logs, so it's possible the issue is coming from your client rather than the server. I would recommend monitoring the http logs tab when experiencing these issues to make sure the requests are coming through to railway, and see what your service does wit them
Status changed to Awaiting User Response railway[bot] • 5 months ago