We are trying to install WSUS Role on a fresh Widows 2012 R2 server that is a VM but the post install keeps failing. I followed the pre-requisites & steps in the Microsoft guide at https://technet.microsoft.com/en-us/library/hh852338.aspx
The error is in the contents of the TMP output file but the believe the problem lies in the statement
"CreateDefaultSubscription failed"
I have researched this quite a bit but cannot find a definitive answer or cause. Any help would be greatly appreciated.
2015-05-22 12:56:00 Postinstall started
2015-05-22 12:56:00 Start: LoadSettingsFromParameters
2015-05-22 12:56:00 Content local is: True
2015-05-22 12:56:00 Content directory is: C:\WSUSdatabase
2015-05-22 12:56:00 SQL instname is:
2015-05-22 12:56:00 End: LoadSettingsFromParameters
2015-05-22 12:56:01 Start: Run
2015-05-22 12:56:01 Fetching WsusAdministratorsSid from registry store
2015-05-22 12:56:01 Value is S-1-5-21-900108671-2241182200-2963656908-1001
2015-05-22 12:56:01 Fetching WsusReportersSid from registry store
2015-05-22 12:56:01 Value is S-1-5-21-900108671-2241182200-2963656908-1002
2015-05-22 12:56:01 Configuring content directory...
2015-05-22 12:56:01 Configuring groups...
2015-05-22 12:56:02 Starting group configuration for WSUS Administrators...
2015-05-22 12:56:02 Found group in regsitry, attempting to use it...
2015-05-22 12:56:04 Writing group to registry...
2015-05-22 12:56:04 Finished group creation
2015-05-22 12:56:04 Starting group configuration for WSUS Reporters...
2015-05-22 12:56:04 Found group in regsitry, attempting to use it...
2015-05-22 12:56:04 Writing group to registry...
2015-05-22 12:56:04 Finished group creation
2015-05-22 12:56:04 Configuring permissions...
2015-05-22 12:56:04 Fetching content directory...
2015-05-22 12:56:04 Fetching ContentDir from registry store
2015-05-22 12:56:04 Value is C:\WSUSdatabase
2015-05-22 12:56:04 Fetching group SIDs...
2015-05-22 12:56:04 Fetching WsusAdministratorsSid from registry store
2015-05-22 12:56:04 Value is S-1-5-21-900108671-2241182200-2963656908-1001
2015-05-22 12:56:04 Fetching WsusReportersSid from registry store
2015-05-22 12:56:04 Value is S-1-5-21-900108671-2241182200-2963656908-1002
2015-05-22 12:56:04 Creating group principals...
2015-05-22 12:56:04 Granting directory permissions...
2015-05-22 12:56:05 Granting permissions on content directory...
2015-05-22 12:56:05 Granting registry permissions...
2015-05-22 12:56:05 Granting registry permissions...
2015-05-22 12:56:05 Granting registry permissions...
2015-05-22 12:56:05 Configuring shares...
2015-05-22 12:56:05 Configuring network shares...
2015-05-22 12:56:05 Fetching content directory...
2015-05-22 12:56:05 Fetching ContentDir from registry store
2015-05-22 12:56:05 Value is C:\WSUSdatabase
2015-05-22 12:56:05 Fetching WSUS admin SID...
2015-05-22 12:56:05 Fetching WsusAdministratorsSid from registry store
2015-05-22 12:56:05 Value is S-1-5-21-900108671-2241182200-2963656908-1001
2015-05-22 12:56:05 Content directory is local, creating content shares...
2015-05-22 12:56:05 Creating share "UpdateServicesPackages" with path "C:\WSUSdatabase\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications) published on this WSUS system."
2015-05-22 12:56:05 Deleting existing share...
2015-05-22 12:56:06 Creating share...
2015-05-22 12:56:06 Share successfully created
2015-05-22 12:56:06 Creating share "WsusContent" with path "C:\WSUSdatabase\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2015-05-22 12:56:06 Deleting existing share...
2015-05-22 12:56:06 Creating share...
2015-05-22 12:56:06 Share successfully created
2015-05-22 12:56:06 Creating share "WSUSTemp" with path "C:\Program Files\Update Services\LogFiles\WSUSTemp" and description "A network share used by Local Publishing from a Remote WSUS Console Instance."
2015-05-22 12:56:06 Deleting existing share...
2015-05-22 12:56:06 Creating share...
2015-05-22 12:56:06 Share successfully created
2015-05-22 12:56:06 Finished creating content shares
2015-05-22 12:56:06 Stopping service WSUSService
2015-05-22 12:56:06 Stopping service W3SVC
2015-05-22 12:56:06 Configuring WID database...
2015-05-22 12:56:06 Configuring the database...
2015-05-22 12:56:07 Establishing DB connection...
2015-05-22 12:56:07 Checking to see if database exists...
2015-05-22 12:56:07 Database exists
2015-05-22 12:56:07 Switching database to single user mode...
2015-05-22 12:56:10 Loading install type query...
2015-05-22 12:56:10 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (9600)
DECLARE @scriptMinorVersion int = (16384)
DECLARE @databaseMajorVersion int
DECLARE @databaseMinorVersion int
DECLARE @databaseBuildNumber nvarchar(10)
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name='SUSDB')
BEGIN
SELECT 1
END
ELSE
BEGIN
SET @currentDBVersion = (SELECT SchemaVersion FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
SET @databaseBuildNumber = (SELECT BuildNumber FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
DECLARE @delimiterPosition INT = CHARINDEX('.', @databaseBuildNumber)
IF (@delimiterPosition = 0)
BEGIN
RAISERROR('Invalid schema version number', 16, 1) with nowait
return
END
SET @databaseMajorVersion = SUBSTRING(@databaseBuildNumber, 1, @delimiterPosition - 1)
SET @databaseMinorVersion = SUBSTRING(@databaseBuildNumber, (@delimiterPosition + 1), (10 - @delimiterPosition))
IF @currentDBVersion < 926
BEGIN
SELECT 3
END
ELSE
BEGIN
IF (@scriptMajorVersion > @databaseMajorVersion OR
(@scriptMajorVersion = @databaseMajorVersion AND @scriptMinorVersion > @databaseMinorVersion))
BEGIN
SELECT 2
END
ELSE IF (@scriptMajorVersion = @databaseMajorVersion AND
@scriptMinorVersion = @databaseMinorVersion)
BEGIN
SELECT 0
END
ELSE
BEGIN
SELECT 4
END
END
END
2015-05-22 12:56:10 Install type is: Reinstall
2015-05-22 12:56:10 Creating logins...
2015-05-22 12:56:10 Fetching account info for S-1-5-20
2015-05-22 12:56:10 Found principal
2015-05-22 12:56:10 Found account
2015-05-22 12:56:10 Got binary SID
2015-05-22 12:56:11 Fetching WsusAdministratorsSid from registry store
2015-05-22 12:56:11 Value is S-1-5-21-900108671-2241182200-2963656908-1001
2015-05-22 12:56:11 Fetching account info for S-1-5-21-900108671-2241182200-2963656908-1001
2015-05-22 12:56:11 Found principal
2015-05-22 12:56:11 Found account
2015-05-22 12:56:11 Got binary SID
2015-05-22 12:56:11 Setting content location...
2015-05-22 12:56:11 Fetching ContentDir from registry store
2015-05-22 12:56:11 Value is C:\WSUSdatabase
2015-05-22 12:56:11 Swtching DB to multi-user mode......
2015-05-22 12:56:12 Finished setting multi-user mode
2015-05-22 12:56:12 Writing DB settings to registry...
2015-05-22 12:56:12 Marking PostInstall done for UpdateServices-WidDatabase in the registry...
2015-05-22 12:56:12 Starting service W3SVC
2015-05-22 12:56:12 Configuring IIS...
2015-05-22 12:56:12 Start: ConfigureWebsite
2015-05-22 12:56:14 Configuring website on port 8530
2015-05-22 12:56:45 2015-05-22 12:56:19 Info IISCustomAction Performing Setup Action, Command /Install
2015-05-22 12:56:43 Info IISCustomAction Command /Install Succeeded
2015-05-22 12:56:45 End: ConfigureWebsite
2015-05-22 12:56:45 Configuring performance counters...
2015-05-22 12:56:45 Configuring Stats.NET perf counter...
2015-05-22 12:56:45 Configuring reporting perf counter...
2015-05-22 12:56:45 Configuring client webservice perf counter...
2015-05-22 12:56:45 Configuring server sync webservice perf counter...
2015-05-22 12:56:45 Configuring API remoting perf counter...
2015-05-22 12:56:45 Bringing services online...
2015-05-22 12:56:45 Checking initialization status...
2015-05-22 12:56:45 Database needs initialization.
2015-05-22 12:56:45 StartServer starting...
2015-05-22 12:56:46 Generating encryption key to write to the registry...
2015-05-22 12:56:46 Generating encryption key to write to the database...
2015-05-22 12:56:47 Generating encryption key succeeded...
2015-05-22 12:56:47 Setting WSUSService to autostart...
2015-05-22 12:56:47 WSUSService is set to autostart.
2015-05-22 12:56:47 Starting WSUSService...
2015-05-22 12:56:47 WSUSService is now started.
2015-05-22 12:56:47 Importing default detectoids.
2015-05-22 12:56:47 Importing CriticalUpdates.xml...
2015-05-22 12:56:49 Importing Drivers.xml...
2015-05-22 12:56:49 Importing FeaturePacks.xml...
2015-05-22 12:56:49 Importing MicrosoftCorporation.xml...
2015-05-22 12:56:49 Importing SecurityUpdates.xml...
2015-05-22 12:56:49 Importing ServicePacks.xml...
2015-05-22 12:56:49 Importing Tools.xml...
2015-05-22 12:56:49 Importing UpdateRollups.xml...
2015-05-22 12:56:49 Importing Updates.xml...
2015-05-22 12:56:50 Importing Windows.xml...
2015-05-22 12:56:50 Importing Windows2000family.xml...
2015-05-22 12:56:50 Importing WindowsServer2003DatacenterEdition.xml...
2015-05-22 12:56:50 Importing WindowsServer2003Family.xml...
2015-05-22 12:56:50 Importing WindowsXPfamily.xml...
2015-05-22 12:56:50 Importing LocalPublisher.xml...
2015-05-22 12:56:50 Importing LocallyPublishedPackages.xml...
2015-05-22 12:56:50 Importing Applications.xml...
2015-05-22 12:56:50 Importing Exchange.xml...
2015-05-22 12:56:50 Importing Office.xml...
2015-05-22 12:56:50 Importing SQL.xml...
2015-05-22 12:56:50 Importing Exchange2000Server.xml...
2015-05-22 12:56:50 Importing ExchangeServer2003.xml...
2015-05-22 12:56:51 Importing OfficeXP.xml...
2015-05-22 12:56:51 Importing Office2003.xml...
2015-05-22 12:56:51 Importing SQLServer.xml...
2015-05-22 12:56:51 Importing WindowsXP64BitEditionVersion2003.xml...
2015-05-22 12:56:51 Importing DefinitionUpdateSusXml.xml...
2015-05-22 12:56:51 Importing ClientServicingApiDetectoid.xml...
2015-05-22 12:56:51 Importing default detectoids succeeded.
2015-05-22 12:56:51 Creating default subscription.
2015-05-22 12:56:51 Instantiating UpdateServer
2015-05-22 12:56:56 CreateDefaultSubscription failed. Exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 10.3.7.65:8530
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.UpdateServices.Internal.ApiRemoting.GetServerVersion()
at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.GetServerVersion()
at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.CreateUpdateServer(String serverName, Boolean useSecureConnection, Int32 portNumber)
at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer..ctor(Boolean bypassApiRemoting)
at Microsoft.UpdateServices.Setup.StartServer.StartServer.CreateDefaultSubscription()
2015-05-22 12:56:56 StartServer encountered errors. Exception=Unable to connect to the remote server
2015-05-22 12:56:56 Microsoft.UpdateServices.Administration.CommandException: Failed to start and configure the WSUS service
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)