504 Gateway Time-out error seen in a self-hosted server

Hello Community, we have this same error " Internal Server Error: <h1>Server Error (500)</h1>" but with all the projects and this other "Gateway Time-out:

504 Gateway Time-out

The server didn’t respond in time. < / body> ", also with all projects
What can be?? Thank you so much