I am deleting all products in my magento 2 system. There are about 1200 products in my catalog.

When I select all and delete, after 60 seconds I get a 504 Gateway Time-out on Nginx.

What are the recommeneded settings in this case?

  • Try raising max_execution_time setting in php.ini
    – Arunendra
    Feb 21 '17 at 13:10
  • I set that to 600 it still timesout
    – stephen
    Feb 22 '17 at 7:13

The trick here was ensuring varnish did not timeout with:

backend default {
  .host = "";
  .port = "8080";
  .first_byte_timeout = 600s;

As described in the docs

Then it was ensuring the nginx and php-fpm did not timeout. Ensure to add:

fastcgi_read_timeout 600;
proxy_read_timeout 600;

on both ssl and non-ssl servers

  • I don't know. My Magento ship set sail...more than 2 years ago. Very thankful that I no longer need to deal with it.
    – stephen
    Dec 31 '19 at 17:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.