在windows server 2016上部署 wsus服务,在部署后配置阶段遇到错误,配置失败,一直无法进行下去,日志如下:
——
2024-05-20 10:25:22 Postinstall started
2024-05-20 10:25:22 Detected role services: Api, UI, WidDatabase, Services
2024-05-20 10:25:22 Start: LoadSettingsFromXml
2024-05-20 10:25:22 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2024-05-20 10:25:22 Value is true
2024-05-20 10:25:22 End: GetConfigValue
2024-05-20 10:25:22 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
2024-05-20 10:25:22 Value is D:\wsus
2024-05-20 10:25:22 End: GetConfigValue
2024-05-20 10:25:22 Content directory is D:\wsus
2024-05-20 10:25:22 Database roleservice is not installed
2024-05-20 10:25:22 End: LoadSettingsFromXml
正在启动安装后步骤
2024-05-20 10:25:22 Start: Run
2024-05-20 10:25:22 Fetching WsusAdministratorsSid from registry store
2024-05-20 10:25:22 Value is S-1-5-21-1379968726-3890188286-1133136419-1000
2024-05-20 10:25:22 Fetching WsusReportersSid from registry store
2024-05-20 10:25:22 Value is S-1-5-21-1379968726-3890188286-1133136419-1001
2024-05-20 10:25:23 Configuring content directory...
2024-05-20 10:25:23 Configuring groups...
2024-05-20 10:25:23 Starting group configuration for WSUS Administrators...
2024-05-20 10:25:23 Found group in regsitry, attempting to use it...
2024-05-20 10:25:25 Writing group to registry...
2024-05-20 10:25:25 Finished group creation
2024-05-20 10:25:25 Starting group configuration for WSUS Reporters...
2024-05-20 10:25:25 Found group in regsitry, attempting to use it...
2024-05-20 10:25:27 Writing group to registry...
2024-05-20 10:25:27 Finished group creation
2024-05-20 10:25:27 Configuring permissions...
2024-05-20 10:25:27 Fetching content directory...
2024-05-20 10:25:27 Fetching ContentDir from registry store
2024-05-20 10:25:27 Value is D:\wsus
2024-05-20 10:25:27 Fetching group SIDs...
2024-05-20 10:25:27 Fetching WsusAdministratorsSid from registry store
2024-05-20 10:25:27 Value is S-1-5-21-1379968726-3890188286-1133136419-1000
2024-05-20 10:25:27 Fetching WsusReportersSid from registry store
2024-05-20 10:25:27 Value is S-1-5-21-1379968726-3890188286-1133136419-1001
2024-05-20 10:25:27 Creating group principals...
2024-05-20 10:25:32 Granting directory permissions...
2024-05-20 10:25:32 Granting permissions on content directory...
2024-05-20 10:25:32 Granting registry permissions...
2024-05-20 10:25:32 Granting registry permissions...
2024-05-20 10:25:32 Granting registry permissions...
2024-05-20 10:25:32 Configuring shares...
2024-05-20 10:25:32 Configuring network shares...
2024-05-20 10:25:32 Fetching content directory...
2024-05-20 10:25:32 Fetching ContentDir from registry store
2024-05-20 10:25:32 Value is D:\wsus
2024-05-20 10:25:32 Fetching WSUS admin SID...
2024-05-20 10:25:32 Fetching WsusAdministratorsSid from registry store
2024-05-20 10:25:32 Value is S-1-5-21-1379968726-3890188286-1133136419-1000
2024-05-20 10:25:32 Content directory is local, creating content shares...
2024-05-20 10:25:33 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."
2024-05-20 10:25:33 Deleting existing share...
2024-05-20 10:25:33 Creating share...
2024-05-20 10:25:33 Share successfully created
2024-05-20 10:25:33 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."
2024-05-20 10:25:33 Deleting existing share...
2024-05-20 10:25:33 Creating share...
2024-05-20 10:25:33 Share successfully created
2024-05-20 10:25:33 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."
2024-05-20 10:25:33 Deleting existing share...
2024-05-20 10:25:33 Creating share...
2024-05-20 10:25:33 Share successfully created
2024-05-20 10:25:33 Finished creating content shares
2024-05-20 10:25:33 Stopping service WSUSService
2024-05-20 10:25:33 Stopping service W3SVC
2024-05-20 10:25:33 Configuring WID database...
2024-05-20 10:25:33 Configuring the database...
2024-05-20 10:25:34 Establishing DB connection...
2024-05-20 10:25:34 Checking to see if database exists...
2024-05-20 10:25:34 Database exists
2024-05-20 10:25:34 Switching database to single user mode...
2024-05-20 10:25:34 Loading install type query...
2024-05-20 10:25:34 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (14393)
DECLARE @scriptMinorVersion int = (0)
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
2024-05-20 10:25:34 Install type is: Reinstall
2024-05-20 10:25:34 Creating logins...
2024-05-20 10:25:34 Fetching account info for S-1-5-20
2024-05-20 10:25:34 Found principal
2024-05-20 10:25:34 Found account
2024-05-20 10:25:34 Got binary SID
2024-05-20 10:25:34 Fetching WsusAdministratorsSid from registry store
2024-05-20 10:25:34 Value is S-1-5-21-1379968726-3890188286-1133136419-1000
2024-05-20 10:25:34 Fetching account info for S-1-5-21-1379968726-3890188286-1133136419-1000
2024-05-20 10:25:36 Found principal
2024-05-20 10:25:36 Found account
2024-05-20 10:25:36 Got binary SID
2024-05-20 10:25:36 Setting content location...
2024-05-20 10:25:36 Fetching ContentDir from registry store
2024-05-20 10:25:36 Value is D:\wsus
2024-05-20 10:25:36 Swtching DB to multi-user mode......
2024-05-20 10:25:39 Finished setting multi-user mode
2024-05-20 10:25:39 Writing DB settings to registry...
2024-05-20 10:25:39 Disposing Connection
2024-05-20 10:25:39 Clearing Connection Pools
2024-05-20 10:25:39 Marking PostInstall done for UpdateServices-WidDatabase in the registry...
2024-05-20 10:25:39 Starting service W3SVC
2024-05-20 10:25:39 Configuring IIS...
2024-05-20 10:25:39 Start: ConfigureWebsite
2024-05-20 10:25:41 Configuring website on port 8530
2024-05-20 10:26:45 2024-05-20 10:25:45 Info IISCustomAction 正在执行安装程序操作,命令 /Install
2024-05-20 10:26:43 Info IISCustomAction 命令 /Install 成功
2024-05-20 10:26:45 End: ConfigureWebsite
2024-05-20 10:26:45 Configuring performance counters...
2024-05-20 10:26:45 Configuring Stats.NET perf counter...
2024-05-20 10:26:45 Configuring reporting perf counter...
2024-05-20 10:26:45 Configuring client webservice perf counter...
2024-05-20 10:26:45 Configuring server sync webservice perf counter...
2024-05-20 10:26:45 Configuring API remoting perf counter...
2024-05-20 10:26:45 Bringing services online...
2024-05-20 10:26:45 Checking initialization status...
2024-05-20 10:26:45 Database needs initialization.
2024-05-20 10:26:45 StartServer starting...
2024-05-20 10:26:45 Generating encryption key to write to the registry...
2024-05-20 10:26:45 Generating encryption key to write to the database...
2024-05-20 10:26:45 Generating encryption key succeeded...
2024-05-20 10:26:45 Setting WSUSService to autostart...
2024-05-20 10:26:46 WSUSService is set to autostart.
2024-05-20 10:26:46 Starting WSUSService...
2024-05-20 10:26:46 WSUSService is now started.
2024-05-20 10:26:46 Importing default detectoids.
2024-05-20 10:26:46 Importing CriticalUpdates.xml...
2024-05-20 10:26:46 Importing Drivers.xml...
2024-05-20 10:26:46 Importing DriverSets.xml...
2024-05-20 10:26:47 Importing FeaturePacks.xml...
2024-05-20 10:26:47 Importing MicrosoftCorporation.xml...
2024-05-20 10:26:47 Importing SecurityUpdates.xml...
2024-05-20 10:26:47 Importing ServicePacks.xml...
2024-05-20 10:26:47 Importing Tools.xml...
2024-05-20 10:26:47 Importing UpdateRollups.xml...
2024-05-20 10:26:47 Importing Updates.xml...
2024-05-20 10:26:47 Importing Windows.xml...
2024-05-20 10:26:47 Importing Windows2000family.xml...
2024-05-20 10:26:47 Importing WindowsServer2003DatacenterEdition.xml...
2024-05-20 10:26:47 Importing WindowsServer2003Family.xml...
2024-05-20 10:26:47 Importing WindowsXPfamily.xml...
2024-05-20 10:26:47 Importing LocalPublisher.xml...
2024-05-20 10:26:47 Importing LocallyPublishedPackages.xml...
2024-05-20 10:26:47 Importing Applications.xml...
2024-05-20 10:26:47 Importing Exchange.xml...
2024-05-20 10:26:47 Importing Office.xml...
2024-05-20 10:26:47 Importing SQL.xml...
2024-05-20 10:26:47 Importing Exchange2000Server.xml...
2024-05-20 10:26:48 Importing ExchangeServer2003.xml...
2024-05-20 10:26:48 Importing OfficeXP.xml...
2024-05-20 10:26:48 Importing Office2003.xml...
2024-05-20 10:26:48 Importing SQLServer.xml...
2024-05-20 10:26:48 Importing WindowsXP64BitEditionVersion2003.xml...
2024-05-20 10:26:48 Importing DefinitionUpdateSusXml.xml...
2024-05-20 10:26:48 Importing ClientServicingApiDetectoid.xml...
2024-05-20 10:26:48 Importing default detectoids succeeded.
2024-05-20 10:26:48 Creating default subscription.
2024-05-20 10:26:48 Instantiating UpdateServer
2024-05-20 10:26:50 CreateDefaultSubscription failed. Exception: System.Net.WebException: 请求因 HTTP 状态 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)
在 Microsoft.UpdateServices.Setup.StartServer.StartServer.CreateDefaultSubscription()
2024-05-20 10:26:50 StartServer encountered errors. Exception=请求因 HTTP 状态 503 失败: Service Unavailable。
2024-05-20 10:26:50 Microsoft.UpdateServices.Administration.CommandException: 无法启动和配置 WSUS 服务
在 Microsoft.UpdateServices.Administration.PostInstall.Run()
在 Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
严重错误: 无法启动和配置 WSUS 服务
——
卡在这个阶段一直无法进行下去。有大佬能帮忙看看解决吗?