Error 502 and 522

SYSTEM INFORMATION
OS type and version AlmaLinux 8.10
Webmin version 2.111

Error code 522 = Connection timed out
Bad gateway Error code 502.

Happening to all my linked domain, and turns and webapp inaccessible. please help.
I’m hosting from cloudflare and I have figured everything and lastly it is said error is from webmin server.

I started noticing immediately I updated all webmin packages

Are you using Clouflare or similar CDN offering? H TTP Error 522

Look in your logs - especially if you have some database - it is likely to be a 500 error (poor/slow sql or the web app)