Ensure: WSUS Services are up, IIS is up, WsusPool application pool in IIS is started, WID (if using) is started - if it is, ensure the SUSDB is not in pending-recovery or single user mode
https://www.ajtek.ca/wsus/how-do-i-connect-to-the-windows-internal-database-wid/