Thursday, February 12, 2015

Wsus Fails to sync, WSUSPool stopped

So yet again here is another problem with WSUS.  These are all running on Server 2012.

Problem:
In console monitoring showed a Sync Failure.  Error code was that WSUS service was unavaiable on the box.  This affected not only the top SUP but several of the lower Secondary Servers with SUP installed.  But not all.  Yet all stopped at a certain Content Version

Troubleshooting process:
Check the WSUS service on the box: Running
Open the WSUS console (yes don't change/set anything): Unable to contact WSUS Server
Sync logs shows it can't contact the server.
Database running and working
Memory on the box was at 96.4% used
Found that in IIS the WSUS application Pool was stopped.  Restart the Pool.
After 20 mins the Pool would stop again.

wsysncmgr log on primary:

Sync failed: WSUS server not configured. Please refer to WCM.log for configuration error details.. Source: CWSyncMgr::DoSync
STATMSG: ID=6703 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=Primary.foo.com SITE=PE0 PID=1744 TID=4156 GMTDATE=Thu Feb 12 17:25:48.682 2015 ISTR0="CWSyncMgr::DoSync" ISTR1="WSUS server not configured. Please refer to WCM.log for configuration error details." ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
Sync failed. Will retry in 60 minutes
Wsysctrl.log on sup
Attempting connection to local WSUS server
System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.~~   at Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object[] args)~~   at Microsoft.UpdateServices.Administration.AdminProxy.GetUpdateServer()~~   at Microsoft.SystemsManagementServer.WSUS.WSUSServer.ConnectToWSUSServer(String ServerName, Boolean UseSSL, Int32 PortNumber)
System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.~~   at Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object[] args)~~   at Microsoft.UpdateServices.Administration.AdminProxy.GetUpdateServer()~~   at Microsoft.SystemsManagementServer.WSUS.WSUSServer.ConnectToWSUSServer(String ServerName, Boolean UseSSL, Int32 PortNumber)
Failed to set WSUS Local Configuration. Will retry configuration in 1 minutes

Solution:

The 1st solution was add to a bit more ram on the VM.  This didn't solve the issue.
So I did more digging and found the Recycle Setting for IIS and Max Ram it can use:

Recycling Setting in IIS
I changed the default setting for the wsus pool from 1843200 (Kbs) and added 1GB of ram to it.  The box now seems to be happy and is syncing again.  There is not a heavy load on the box but I am watching to see what happnes.  it is odd that the twin in a differen data center isn't showing the same signs.