Steps to resolve Magento 504 gateway timeout error
504 gateway errors in Magento – A load balancer plays a role in displaying 504 gateway timeout errors. You can ask me why? A load balancer is the one which receives the webserver request. If the load balancer doesn’t get webserver request then it displays the error “504 gateway timeout”.
This is not the reason exactly behind 504 but it’s just a survey from the users who usually get this error by load balancer inability. In detail, when a user types the website name in the browser immediately the webserver takes the responsibility to load the pages in the website. In case, if the website gets a late response or it failed to load a page then you will be displayed with this error. Coming to the technical base, there is a problem between IP and web (front and back end). Overall, the problem starts with the non-functionality of the webserver.
Here are the lists of other reasons to display 504 errors:
Steps to clear Magento cache from admin panel:
Method 1: In your Magento admin panel, choose the option “system” and then select cache management. Here, we are flushing out the caches so choose “flush cache storage”.
Method 2: Go to var/cache/directory delete the content inside after then load the website again. For Magento cache clearance, go to the installation directory of Magento and then go to the pathway var/cache/ folder. Delete the content inside the folder. That’s it!
For updating the changes, kindly save php.ini file so that you can restart the service for Apache.
Ubuntu: service apache2 restart
CentOS server : service httpd restart
Nginx server: fastcgi_buffers 8128k;
To make changes in Nginx webserver select the file by redirecting to the pathway /etc/nginx/nginx.conf.
So, DNS will stop the website service until it gets authority fully. The website performance gets normal only if the propagation of DNS completed fully.
Just give a try by using the incognito window to verify the process. Prefer task schedule or command line execution for the long-run process. Do not open the web browser until you complete the long-run process.
The above-listed reasons are the reference for the problem “504 gateway timeout”. So, give a try to resolve it by given suggestions.
504 gateway errors in Magento – A load balancer plays a role in displaying 504 gateway timeout errors. You can ask me why? A load balancer is the one which receives the webserver request. If the load balancer doesn’t get webserver request then it displays the error “504 gateway timeout”.
This is not the reason exactly behind 504 but it’s just a survey from the users who usually get this error by load balancer inability. In detail, when a user types the website name in the browser immediately the webserver takes the responsibility to load the pages in the website. In case, if the website gets a late response or it failed to load a page then you will be displayed with this error. Coming to the technical base, there is a problem between IP and web (front and back end). Overall, the problem starts with the non-functionality of the webserver.
Here are the lists of other reasons to display 504 errors:
- The inefficiency of the server process
- Rejection of the firewall will trigger the reset option so that it tends to stop the connection.
- Magento cache and browser cache clearance:
Steps to clear Magento cache from admin panel:
Method 1: In your Magento admin panel, choose the option “system” and then select cache management. Here, we are flushing out the caches so choose “flush cache storage”.
Method 2: Go to var/cache/directory delete the content inside after then load the website again. For Magento cache clearance, go to the installation directory of Magento and then go to the pathway var/cache/ folder. Delete the content inside the folder. That’s it!
- PHP limitations exceeded:
Code:
upload_max_filesize:1000M
max_execution_time:18000
memory_limit:2048M
max_input_time:18000
max_input_vars:3000
post_max_size:1000M
Ubuntu: service apache2 restart
CentOS server : service httpd restart
Nginx server: fastcgi_buffers 8128k;
Code:
proxy_read_timeout 600;
fastcgi_buffer_size 256k;
fastcgi_read_timeout 600;
- Firewall configuration fault fix:
- Propagations of DNS:
So, DNS will stop the website service until it gets authority fully. The website performance gets normal only if the propagation of DNS completed fully.
- Server high traffic:
- Session lock:
Just give a try by using the incognito window to verify the process. Prefer task schedule or command line execution for the long-run process. Do not open the web browser until you complete the long-run process.
The above-listed reasons are the reference for the problem “504 gateway timeout”. So, give a try to resolve it by given suggestions.