WSUS Error

Solved
Antoine_33 Posted messages 35 Status Membre -  
 LoNe -
Hello,

I have looked at many forums but can't seem to resolve my issue. I am in a company and I need to set up the WSUS feature. When I start the post-installation tasks, I get an error. Here is the log of this error.

2020-09-01 13:36:49 Postinstall started
2020-09-01 13:36:49 Detected role services: Api, UI, WidDatabase, Services
2020-09-01 13:36:49 Start: LoadSettingsFromXml
2020-09-01 13:36:49 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2020-09-01 13:36:49 Value is true
2020-09-01 13:36:49 End: GetConfigValue
2020-09-01 13:36:49 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
2020-09-01 13:36:49 Value is d:\wsus
2020-09-01 13:36:49 End: GetConfigValue
2020-09-01 13:36:49 Content directory is d:\wsus
2020-09-01 13:36:49 Database roleservice is not installed
2020-09-01 13:36:49 End: LoadSettingsFromXml
Starting post-installation
2020-09-01 13:36:49 Start: Run
2020-09-01 13:36:49 Fetching WsusAdministratorsSid from registry store
2020-09-01 13:36:49 Value is S-1-5-21-3178245839-1398349427-564072377-3101
2020-09-01 13:36:49 Fetching WsusReportersSid from registry store
2020-09-01 13:36:49 Value is S-1-5-21-3178245839-1398349427-564072377-3102
2020-09-01 13:36:49 Configuring content directory...
2020-09-01 13:36:49 Configuring groups...
2020-09-01 13:36:49 Starting group configuration for WSUS Administrators...
2020-09-01 13:36:49 Found group in registry, attempting to use it...
2020-09-01 13:36:49 Searching for existing group...
2020-09-01 13:36:50 Existing group was found
2020-09-01 13:36:50 Writing group to registry...
2020-09-01 13:36:50 Finished group creation
2020-09-01 13:36:50 Starting group configuration for WSUS Reporters...
2020-09-01 13:36:50 Found group in registry, attempting to use it...
2020-09-01 13:36:50 Searching for existing group...
2020-09-01 13:36:50 Existing group was found
2020-09-01 13:36:50 Writing group to registry...
2020-09-01 13:36:50 Finished group creation
2020-09-01 13:36:50 Configuring permissions...
2020-09-01 13:36:50 Fetching content directory...
2020-09-01 13:36:50 Fetching ContentDir from registry store
2020-09-01 13:36:50 Value is d:\wsus
2020-09-01 13:36:50 Fetching group SIDs...
2020-09-01 13:36:50 Fetching WsusAdministratorsSid from registry store
2020-09-01 13:36:50 Value is S-1-5-21-3178245839-1398349427-564072377-3101
2020-09-01 13:36:50 Fetching WsusReportersSid from registry store
2020-09-01 13:36:50 Value is S-1-5-21-3178245839-1398349427-564072377-3102
2020-09-01 13:36:50 Creating group principals...
2020-09-01 13:36:50 Granting directory permissions...
2020-09-01 13:36:50 Granting permissions on content directory...
2020-09-01 13:36:50 Granting registry permissions...
2020-09-01 13:36:50 Granting registry permissions...
2020-09-01 13:36:50 Granting registry permissions...
2020-09-01 13:36:50 Configuring shares...
2020-09-01 13:36:50 Configuring network shares...
2020-09-01 13:36:50 Fetching content directory...
2020-09-01 13:36:50 Fetching ContentDir from registry store
2020-09-01 13:36:50 Value is d:\wsus
2020-09-01 13:36:50 Fetching WSUS admin SID...
2020-09-01 13:36:50 Fetching WsusAdministratorsSid from registry store
2020-09-01 13:36:50 Value is S-1-5-21-3178245839-1398349427-564072377-3101
2020-09-01 13:36:50 Content directory is local, creating content shares...
2020-09-01 13:36:50 Creating share "UpdateServicesPackages" with path "d:\wsus\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications) published on this WSUS system."
2020-09-01 13:36:50 Deleting existing share...
2020-09-01 13:36:50 Creating share...
2020-09-01 13:36:50 Share successfully created
2020-09-01 13:36:50 Creating share "WsusContent" with path "d:\wsus\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2020-09-01 13:36:50 Deleting existing share...
2020-09-01 13:36:50 Creating share...
2020-09-01 13:36:50 Share successfully created
2020-09-01 13:36:50 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."
2020-09-01 13:36:50 Deleting existing share...
2020-09-01 13:36:50 Creating share...
2020-09-01 13:36:50 Share successfully created
2020-09-01 13:36:50 Finished creating content shares
2020-09-01 13:36:50 Stopping service WSUSService
2020-09-01 13:36:50 Stopping service W3SVC
2020-09-01 13:36:51 Configuring WID database...
2020-09-01 13:36:51 Configuring the database...
2020-09-01 13:36:51 Establishing DB connection...
2020-09-01 13:36:51 Checking to see if database exists...
2020-09-01 13:36:51 Database exists
2020-09-01 13:36:51 Switching database to single user mode...
2020-09-01 13:36:54 Loading install type query...
2020-09-01 13:36:54 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (9600)
DECLARE @scriptMinorVersion int = (18694)
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

2020-09-01 13:36:54 Install type is: Reinstall
2020-09-01 13:36:54 Creating logins...
2020-09-01 13:36:54 Fetching account info for S-1-5-20
2020-09-01 13:36:54 Found principal
2020-09-01 13:36:54 Found account
2020-09-01 13:36:54 Got binary SID
2020-09-01 13:36:54 Fetching WsusAdministratorsSid from registry store
2020-09-01 13:36:54 Value is S-1-5-21-3178245839-1398349427-564072377-3101
2020-09-01 13:36:54 Fetching account info for S-1-5-21-3178245839-1398349427-564072377-3101
2020-09-01 13:36:54 Fetching account info for S-1-5-21-3178245839-1398349427-564072377-3101
2020-09-01 13:36:54 Found principal
2020-09-01 13:36:54 Found account
2020-09-01 13:36:54 Got binary SID
2020-09-01 13:36:55 Setting content location...
2020-09-01 13:36:55 Fetching ContentDir from registry store
2020-09-01 13:36:55 Value is d:\wsus
2020-09-01 13:36:55 Switching DB to multi-user mode......
2020-09-01 13:36:55 Finished setting multi-user mode
2020-09-01 13:36:55 Writing DB settings to registry...
2020-09-01 13:36:55 Marking PostInstall done for UpdateServices-WidDatabase in the registry...
2020-09-01 13:36:55 Starting service W3SVC
2020-09-01 13:36:55 Configuring IIS...
2020-09-01 13:36:55 Start: ConfigureWebsite
2020-09-01 13:36:55 Configuring website on port 8530
2020-09-01 13:37:27 2020-09-01 13:37:06 Info IISCustomAction Installation action underway using the command /Install
2020-09-01 13:37:26 Info IISCustomAction Command /Install completed

2020-09-01 13:37:27 End: ConfigureWebsite
2020-09-01 13:37:27 Configuring performance counters...
2020-09-01 13:37:27 Configuring Stats.NET perf counter...
2020-09-01 13:37:27 Configuring reporting perf counter...
2020-09-01 13:37:27 Configuring client webservice perf counter...
2020-09-01 13:37:27 Configuring server sync webservice perf counter...
2020-09-01 13:37:27 Configuring API remoting perf counter...
2020-09-01 13:37:27 Bringing services online...
2020-09-01 13:37:27 Checking initialization status...
2020-09-01 13:37:27 Database needs initialization.
2020-09-01 13:37:27 StartServer starting...
2020-09-01 13:37:27 Generating encryption key to write to the registry...
2020-09-01 13:37:27 Generating encryption key to write to the database...
2020-09-01 13:37:28 Generating encryption key succeeded...
2020-09-01 13:37:28 Setting WSUSService to autostart...
2020-09-01 13:37:28 WSUSService is set to autostart.
2020-09-01 13:37:28 Starting WSUSService...
2020-09-01 13:37:28 WSUSService is now started.
2020-09-01 13:37:28 Importing default detectoids.
2020-09-01 13:37:28 Importing CriticalUpdates.xml...
2020-09-01 13:37:28 Importing Drivers.xml...
2020-09-01 13:37:28 Importing FeaturePacks.xml...
2020-09-01 13:37:28 Importing MicrosoftCorporation.xml...
2020-09-01 13:37:28 Importing SecurityUpdates.xml...
2020-09-01 13:37:28 Importing ServicePacks.xml...
2020-09-01 13:37:28 Importing Tools.xml...
2020-09-01 13:37:28 Importing UpdateRollups.xml...
2020-09-01 13:37:28 Importing Updates.xml...
2020-09-01 13:37:28 Importing Windows.xml...
2020-09-01 13:37:28 Importing Windows2000family.xml...
2020-09-01 13:37:28 Importing WindowsServer2003DatacenterEdition.xml...
2020-09-01 13:37:28 Importing WindowsServer2003Family.xml...
2020-09-01 13:37:28 Importing WindowsXPfamily.xml...
2020-09-01 13:37:28 Importing LocalPublisher.xml...
2020-09-01 13:37:28 Importing LocallyPublishedPackages.xml...
2020-09-01 13:37:28 Importing Applications.xml...
2020-09-01 13:37:28 Importing Exchange.xml...
2020-09-01 13:37:28 Importing Office.xml...
2020-09-01 13:37:28 Importing SQL.xml...
2020-09-01 13:37:28 Importing Exchange2000Server.xml...
2020-09-01 13:37:28 Importing ExchangeServer2003.xml...
2020-09-01 13:37:28 Importing OfficeXP.xml...
2020-09-01 13:37:28 Importing Office2003.xml...
2020-09-01 13:37:28 Importing SQLServer.xml...
2020-09-01 13:37:28 Importing WindowsXP64BitEditionVersion2003.xml...
2020-09-01 13:37:28 Importing DefinitionUpdateSusXml.xml...
2020-09-01 13:37:28 Importing ClientServicingApiDetectoid.xml...
2020-09-01 13:37:28 Importing default detectoids succeeded.
2020-09-01 13:37:28 Creating default subscription.
2020-09-01 13:37:28 Instantiating UpdateServer
2020-09-01 13:37:29 CreateDefaultSubscription failed. Exception: System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.
… System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
… System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
… Microsoft.UpdateServices.Internal.ApiRemoting.GetServerVersion()
… Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.GetServerVersion()
… Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.CreateUpdateServer(String serverName, Boolean useSecureConnection, Int32 portNumber)
… Microsoft.UpdateServices.Internal.BaseApi.UpdateServer..ctor(Boolean bypassApiRemoting)
2020-09-01 13:37:29 StartServer encountered errors. Exception=The request failed with HTTP status 503: Service Unavailable.
2020-09-01 13:37:29 Microsoft.UpdateServices.Administration.CommandException: Failed to start the configuration of the WSUS service
… Microsoft.UpdateServices.Administration.PostInstall.Run()
… Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Unrecoverable error: Failed to start the configuration of the WSUS service

Any ideas?

2 réponses

Antoine_33 Posted messages 35 Status Membre
 
Problem solved. It was enough to delete the WSUS site on IIS and run the post-deployment.
0
LoNe
 
For more information on HTTP 503 errors:

https://docs.microsoft.com/en-us/windows-server/administration/windows-server-update-services/manage/wsus-messages-and-troubleshooting-tips
0