504 Gateway Time-Out Errors When Using Wordpress Auto Update Feature

Hello everyone!

I was hoping I would find someone who has gone through something similar, or has some insight into what may be causing this.

Initial note: this is a recent development across all of my websites on my server, that hasn't happened before.

Lately, when I go into any site on my server, and go to the dashboard auto update section to do a mass update, there is a lag, and then I receive a 504 Gateway Time-Out error where there is usually a "plugins successfully updated" message.

Has anyone had this happen to them, or perhaps you have insight into what may be causing such an occurrence?

Also, would there be a way to debug what may be causing this to happen?

I am more than happy to answer any questions you may have, if it brings us closer to a resolution.

Cheers!