Error 504 on working server

Hello, I have vps with 9 sites, many of them are connected with cloudflare, before today I never got a problem.
Now one of my sites with cloudflare gives me 504 error, while other sites works (same server).
I try to restart my server, that helps for 10 minutes, after restart server my website works for 10 minutes and now is same again.
Can you help me please?

The 502/504 errors are caused by a problem connecting to an upstream server - meaning your server is trying to initiate a process and this fails to work as expected or times out. In most cases of 502 / 504 errors, back-end servers are not communicating correctly. When this happens, you will see color page with Cloudflare branding and the Error 502 Bad Gateway or Error 504 Gateway Timeout. Review this Community Tip for fixing 502 or 504 gateway errors.

Can you please provide a screenshot of the 504 error you are experiencing?

After 2-3 reboots on vps now is ok, work