Support

Admin Tools

#26589 504 gateway time out

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Thursday, 22 December 2016 17:17 CST

FDigital01
 I get the 504 gateway timeout when i try to put in an email address in the logging and reporting section.

i have tried turning off errors, have enabled system emails, and have turned on each setting one by one and saved the configuration.

But it always times out when i try to put in an email address.

This only happens with the combination of 3.6.4 and 4.0.2 - not any other combination.

nicholas
Akeeba Staff
Manager
I believe that you are describing something incorrectly. The 504 error is misleading. It is an error message from a proxy, telling you that it couldn't get a reply from your site in a reasonable amount of time. Most likely your server is set up with Apache as the main web server, serving all your PHP-generated pages, with NginX or Varnish in front of it to serve static content faster. In this kind of setup the client (your web browser) connects to the proxy (NginX, Varnish, ...) which connects to the web server (Apache) to generate the page. When PHP, running inside Apache, takes a long time to generate the page OR if there is a PHP fatal error without a response (error message) the proxy is confused and generates the 504 error.

So, by your account, PHP crashes when you are trying to save the WAF configuration if it includes an email address. The content of the WAF configuration setting doesn't play any role in the process of saving that. Therefore entering an email in the WAF configuration shouldn't cause your server.

If this is what happens anyway: please contact your host. The most likely problem in this case is a server protection which blocks POST requests containing certain combinations of content. The WAF configuration data would seem to trigger it if you include email addresses.

If this is NOT what happens: please explain exactly when you get the 504 error message and what were your previous steps. For example, do you get that when a security exception is triggered in the front-end? If it only happens when a security exception is triggered the problem is either with the mail setup of your site or the server's proxy settings. If your site cannot send emails it will take a long time, typically 10-30 seconds, before Joomla's mail subsystem gives up. The proxy would think this is a server timeout, triggering the 504. Likewise, if the proxy has a very low timeout threshold even the regular sending of emails (as long as 5 seconds if you're using an SMTP server) would make the proxy falsely believe it's a server timeout triggering the 504 error.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!