Synapse upgrade hangs -> Error 504

Well in this case it’s more nginx error. Can you try to access to your server and type this command:

systemctl status nginx