This configuration was working previously but we were trying to troubleshoot an issue deploying apps to sites without DP's and our remote (VPN) users.
We are currently running Configuration Manager Current branch (2107) on server 2016. We have our SQL server on server 1, a SUP and our Primary WSUS server on server 2 and server 3 was originally set up as a replica server and a SUP as well.
The SUP role has been removed from server 3 and I've removed the WSUS role from the server. Re-installing WSUS fails on the post installation with the following error;
Fatal Error: ALTER DATABASE failed because a lock could not be placed on database 'SUSDB'. Try again later.
ALTER DATABASE statement failed.
The log shows;
2021-10-21 13:55:24 System.Data.SqlClient.SqlException (0x80131904): ALTER DATABASE failed because a lock could not be placed on database 'SUSDB'. Try again later.
ALTER DATABASE statement failed.
at Microsoft.UpdateServices.DatabaseAccess.DBConnection.DrainObsoleteConnections(SqlException e)
at Microsoft.UpdateServices.DatabaseAccess.DBConnection.ExecuteCommandNoResult()
at Microsoft.UpdateServices.Administration.ConfigureDB.ExecuteQueryNoResults(String query)
at Microsoft.UpdateServices.Administration.ConfigureDB.ConnectToDB()
at Microsoft.UpdateServices.Administration.ConfigureDB.Configure()
at Microsoft.UpdateServices.Administration.ConfigureDB.Run(String instanceName, Action`1 logWriter, Boolean contentLocal)
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
ClientConnectionId:267aa928-9db1-4f22-b67b-8a22f431f48f
Error Number:5061,State:1,Class:16
I've checked the permissions on the SQL database. I've shutdown the primary WSUS server to remove any locks on the SQL database and confirmed in SQL Management Studio. I've manually run the alter database command to confirm the database is in multi user mode, etc.
Any other suggestions?