skip to Main Content

I have a Magento website and am trying to start a backend process in the admin panel (in my browser) that, when submitted, warns you that the process "can take a long time". Whenever I hit submit though, I end up with a 504 timeout error and can’t figure out why.

I’ve increased my PHP max_execution_time to 1800 seconds, but the request times out after exactly 60 seconds. I am using Cloudflare as a proxy, however even when I turn the proxy setting off, I still get a timeout after 60 seconds. The server is a Cloud Compute type on Vultr. Due to (this question) I’ve also checked and made sure there aren’t any load balancers behind this.

I’ve tried checking the php-fpm and apache logs but can’t find anything relevant to a 504.

How can I begin to troubleshoot this and allow the process to run as long as it needs?

2

Answers


  1. Chosen as BEST ANSWER

    I did end up figuring this out. It turns out that a load balancer called HAProxy was bound to listen on port 443 for SSL and this had its own configuration options, specifically Timeout Server as described here. I found this with netstat -ltnp and with the help of this other question that I asked. After I increased this option and restarted the service, the operation worked.


  2. Try to make changes in .user.ini and .htaccess files. Search for memory_limit and max_execution_time

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search