Recently, I developed a Craft 3 website. Its working perfectly on development server. But after deploying to another server, I am getting 504 error for home and all front end pages while Craft dashboard is working perfectly. I looked into logs but didn't find anything related to it.


This is kind of hard to debug without any logs, but because 504 is a gateway timeout error, I would start by checking if your site uses any external services, other servers it tries to reach (only from within your templates, because the admin works fine).

This could be anything from Google's geolocation API to an external image service, that can not be reached because of server settings on either side.

Is there anything in your server logs, or could you activate logging for your server to get more details?

  • Thanks Paul, there was problem with SEOMatic plugin. I disabled it and site started working. I am going to do further investigation to sort out the problem of SEOMatic. Thanks again :) – Bhashkar Yadav Apr 13 '18 at 9:17
  • +1 Had the same strange issue with 504 error - I switched branches on repo, I think I dropped my security key from env configs. Either way was able to disable SEOmatic and then all worked again. Very strange – Will Nov 16 '18 at 21:37

I was seeing similar issues and in the end it turned out to be a missing image. In my case it was the Creator (Entity Brand) logo missing. It had been picked but the file was missing locally. After reuploaded, it resolved the issues.

I wrote the issue here -> https://github.com/nystudio107/craft-seomatic/issues/418

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.