0

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 – Stevie G Feb 22 '17 at 7:13
0

The trick here was ensuring varnish did not timeout with:

backend default {
  .host = "127.0.0.1";
  .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

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.