• Resolved dippolds

    (@dippolds)


    Site worked fine until upgrade of Sucuri 1.8.6 to 1.8.7. When trying to add a new post, nothing happens for about 2 minutes then the hosting service gives this 504 error below. The site performs fine except for not being able to create a post. If I disable Sucuri, I can post with no issue.

    ERROR 504 – GATEWAY TIMEOUT

    The server that your request has reached is acting as a gateway or proxy to fulfil the request made by your client.

    Web Browser => Web Front-End => Web Back-End

    This server (Web Front-End) received an invalid response from an upstream (Web Back-End) server it accessed to fulfil the request.

    In most cases this will not mean that the upstream server is down, but rather that the upstream server and the gateway/proxy do not agree on the protocol for exchanging data.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Part of this issue was resolved with version 1.8.7 by implementing a queue system to allow the plugin to write the security logs into a local file in your own server, and send this data to the API only when the cronjob associated to the plugin runs, which is every 24 hours.

    The other part of the issue is in the API server, there is a lot of people who have not updated the plugin to the latest version so they are still hitting the server with a ton of HTTP requests because they don’t have the queue system implemented. We are currently working on this by upgrading the hardware but it may take a few days before the work is finished.

    For now, I suggest you to disable the “API Communication” fro the plugin’ settings page and then enable the “Log Exporter” from the general panel in the same page. This way your website will not be affected by the latency of the API service which is what is causing the gateway timeouts.

    If this doesn’t works, try to disable the “IP Address Discoverer” option from the plugin’ general settings. The DNS lookups used here to set the real IP address of your visitors can slow down your website if the DNS server that your hosting provider is using is not fast enough.

    Please confirm if any of these changes resolve the issue in your website.

    Marking as resolved after +6 days with no replies from the original poster. I will assume that one of the solutions suggested in my previous comment worked and the author of the ticket is not experiencing the reported issues anymore. Feel free to re-open the ticket otherwise.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t post after 1.8.7 upgrade – 503 bad gateway’ is closed to new replies.