Speed Performance Issue and Gateway Time Out Error Code 504

I am hosting my site with Digital Ocean and using Cloudflare for my domain name. My site is very slow when I try to refresh the site from time to time and then I keep getting a Gateway Time Out Error 504 error. It says there is an error with my host and shows the url of my site. I keep waiting and eventually my site comes back but I find it very annoying and would like to further avoid this from happening again. Is there a way to fix the performance and prevent the Gateway error to come back again?

Please let me know if there is any information needed.

I wonder if it’s something about the firewall and possibly blocking Cloudflare IPs or requests :thinking:

May I ask what troubleshooting steps have you tried already from the related article below? :thinking:

I tried to contact the Support from Digital Ocean after reading this article: https://support.cloudflare.com/hc/en-us/articles/115003011431#502504error.

However I still did not get a reply back. I am new to all of this and just followed two tutorials on how to set up my site. I did not try the suggested troubleshoots since I am not sure how would I since I am new to the platform.

I just heard back from Digital Ocean and ended up finding out the issue. It happened to be parts of my Ghost site were using up the memory and CPU which caused my site to crash down the several times. After I fixed my site, it now works perfectly fine :slight_smile: :smiley:

1 Like