Hello everyone,
I'm fairly new to Magento and recently my brother purchased a theme from envato for his business.
But every now and then when I'm trying to do a cache refresh or trying to get a backup the whole things becomes very slow and then throws me out with a 504 error and refuses to work no matter how many times I refresh for the next few minutes and then its back to normal !
I'm a software engineer graduate but we never studied Magento.So kindly give me some tips to diagnose this issue.
Here is my php.ini file which looks like its autogenerated, in case you guys think it needs to be tweaked:
; cPanel-generated php ini directives, do not edit ; Manual editing of this file may result in unexpected behavior. ; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) ; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) allow_url_fopen = Off allow_url_include = Off display_errors = Off enable_dl = Off file_uploads = On max_execution_time = 30 max_input_time = 60 max_input_vars = 1000 memory_limit = 2G post_max_size = 8M session.gc_maxlifetime = 1440 session.save_path = "/var/cpanel/php/sessions/ea-php73" upload_max_filesize = 16M zlib.output_compression = Off
Solved! Go to Solution.
Hello @sahandsigm749e
As I can see max_ex_time is very less in your configuration.
Please follow below shared links for more reference:
https://bobcares.com/blog/magento-504-gateway-timeout/
https://community.magento.com/t5/Magento-2-x-Technical-Issues/ERROR-504-GATEWAY-TIMEOUT/td-p/93817
https://devdocs.magento.com/guides/v2.3/install-gde/prereq/php-settings.html
Hello @sahandsigm749e
As I can see max_ex_time is very less in your configuration.
Please follow below shared links for more reference:
https://bobcares.com/blog/magento-504-gateway-timeout/
https://community.magento.com/t5/Magento-2-x-Technical-Issues/ERROR-504-GATEWAY-TIMEOUT/td-p/93817
https://devdocs.magento.com/guides/v2.3/install-gde/prereq/php-settings.html
What hosting or server environment are you using to host your Magento 2 store?
As for backups, you may want to consider taking backup externally (for example, just run mysqldump in SSH) instead of doing it within Magento.