• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Wordpress checkout 504 nginx error

Hammers007

New Pleskian
Hello,

I'm struggling to resolve an issue on 1 of my websites.

Server is running Nginx (no apache) - FPM served by nginx.

1 wordpress website has started suffering a 504 error.
The Wp-admin login page, pressing refresh however, it has done the login and enters the admin panel.

The other page is the wordpress checkout after pressing submit - it hits the 120s execution timeout and errors.

The log entry shows the following:
2021-09-16 21:49:19ErrorIP504POST /?wc-ajax=checkout HTTP/2.0
https://staging.violetsfloraldesigns.co.uk/checkout/
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0
160 nginx SSL/TLS access
2021-09-16 21:49:19ErrorIP229813#0: *657 upstream timed out (110: Connection timed out) while reading response header from upstreamnginx error

The order has also gone through - just not indication of it client side.

The website is now down to basics - Storefront theme, all plugins disabled bar Woocommerce and Stripe (I have tested with Stripe disabled and checking payment only).

Any suggestions on how to process will appreciated!

Some steps taken:
Fully updating wordpress + plugins
Switching to default theme + minimal plugins
Transferring to a subdomain of a working site (still didn't work),
SSH: Plesk repair web command for the domain
Disabled WAF for domain
Malware/AV scan
 
Bit of progress on this - I noticed some other similar 504 errors on forums relating to mail, which I thought would make sense based on the login and ordering with emails firing.

I disabled woocommerce email notifcations, the orders now complete and show client side.

So I appear to have narrowed it down to the mail function - my server doesn't send emails, the admin panel itself is setup to use an external server.

The site with the issue wasn't sending emails - I have setup email accounts and installed Post SMTP on to the problematic website.
This plugin when sending the test mail also timesout with a 504 error - is there likely to be some kind of backlog/queue which is causing these 504 errors?
 
You write that you have set PHP-FPM via Nginx, but the 504 indicates that Nginx is not receiving a reply from the Apache backend server. I suggest to try to disable "Proxy mode" in "Apache & Nginx settings", so that you are indeed only using Nginx. This may not resolve the underlying error, but it will focus all transactions on a single web server instead of two, so you will likely get an error log entry by nginx when the same issues shows up, which can help you solve this without the hassle of managing two different web servers.
 
Hi Peter,

Proxy mode is already off (its off on the service plan for all domains).
PHP ver 7.4.23, FPM application served by nginx.

It does seem to be when the website is trying to fire an email, including after I installed Post SMTP.
This is only on 1 site that I am aware of.
 
Back
Top