I have a Magento 2.3.6 app which was working fine and suddenly It stop responding. It keeps loading for like 5 minutes and then errors out with 504-Bad Gateway Timeout. I have already tried the following solutions without any luck:
I have also turned on Developer mode and put these lines at the start of `index.php` to enable error in browser but not getting any error either
error_reporting(E_ALL);
ini_set('display_errors', 1)
Any clue How I can solve this? Thanks in advance.
I have the exact same issue with Magento 2.3.6-p1 using PHP 7.3.
Pages simply don't load, there does not seem to be any error message anywhere.
Hi @jawadrashef2af,
The error that you're facing might be due to:
(1) Hosting Error
You should contact your hosting provider to check if there's any problem.
(2) Your site is running a command or requirement that takes too much time. You can check it by turning on the dev mode:
php bin/magento deploy:mode:set developer
Hope this can help you! Let me know if you need further assistance.
__________
If issue solved, Click Kudos & Accept as Solution.
I have the same problems, and we have a great server!
Hello,
1. Try to run the following commands from the command line.
php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f sudo chmod -R 777 var/ generated/ pub/
after that try to compile one's
php bin/magento setup:di:compile
2. Now check if system show properly or still it show any error.
3. Still it show error then check following things.
A. Check Consol is there any error?
B. Check Magento Log files, is there any error?
4. Based on those error need to move into this one.