Asked by:
WSUS failed during post-installation

Question
-
I had remote access and WSUS Roles in my server 2012 r2.
I had deleted WSUS and now when i tried to reinstall WSUS, post-installation failed.
You wil find belowed the error tmp file : tmp46AF.tmp
2017-05-19 10:41:49 Postinstall started
2017-05-19 10:41:49 Detected role services: Api, UI, WidDatabase, Services
2017-05-19 10:41:49 Start: LoadSettingsFromXml
2017-05-19 10:41:49 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2017-05-19 10:41:50 Value is true
2017-05-19 10:41:50 End: GetConfigValue
2017-05-19 10:41:50 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
2017-05-19 10:41:50 Value is C:\WSUS
2017-05-19 10:41:50 End: GetConfigValue
2017-05-19 10:41:50 Content directory is C:\WSUS
2017-05-19 10:41:50 Database roleservice is not installed
2017-05-19 10:41:50 End: LoadSettingsFromXml
2017-05-19 10:41:50 Start: Run
2017-05-19 10:41:50 Fetching WsusAdministratorsSid from registry store
2017-05-19 10:41:50 Value is S-1-5-21-154860212-533901351-1153442006-1002
2017-05-19 10:41:50 Fetching WsusReportersSid from registry store
2017-05-19 10:41:50 Value is S-1-5-21-154860212-533901351-1153442006-1003
2017-05-19 10:41:50 Configuring content directory...
2017-05-19 10:41:50 Configuring groups...
2017-05-19 10:41:50 Starting group configuration for WSUS Administrators...
2017-05-19 10:41:50 Found group in regsitry, attempting to use it...
2017-05-19 10:41:52 Writing group to registry...
2017-05-19 10:41:52 Finished group creation
2017-05-19 10:41:52 Starting group configuration for WSUS Reporters...
2017-05-19 10:41:52 Found group in regsitry, attempting to use it...
2017-05-19 10:41:52 Writing group to registry...
2017-05-19 10:41:52 Finished group creation
2017-05-19 10:41:52 Configuring permissions...
2017-05-19 10:41:52 Fetching content directory...
2017-05-19 10:41:52 Fetching ContentDir from registry store
2017-05-19 10:41:52 Value is C:\WSUS
2017-05-19 10:41:52 Fetching group SIDs...
2017-05-19 10:41:52 Fetching WsusAdministratorsSid from registry store
2017-05-19 10:41:52 Value is S-1-5-21-154860212-533901351-1153442006-1002
2017-05-19 10:41:52 Fetching WsusReportersSid from registry store
2017-05-19 10:41:52 Value is S-1-5-21-154860212-533901351-1153442006-1003
2017-05-19 10:41:52 Creating group principals...
2017-05-19 10:41:52 Granting directory permissions...
2017-05-19 10:41:52 Granting permissions on content directory...
2017-05-19 10:41:58 Granting registry permissions...
2017-05-19 10:41:58 Granting registry permissions...
2017-05-19 10:41:58 Granting registry permissions...
2017-05-19 10:41:58 Configuring shares...
2017-05-19 10:41:58 Configuring network shares...
2017-05-19 10:41:58 Fetching content directory...
2017-05-19 10:41:58 Fetching ContentDir from registry store
2017-05-19 10:41:58 Value is C:\WSUS
2017-05-19 10:41:58 Fetching WSUS admin SID...
2017-05-19 10:41:58 Fetching WsusAdministratorsSid from registry store
2017-05-19 10:41:58 Value is S-1-5-21-154860212-533901351-1153442006-1002
2017-05-19 10:41:58 Content directory is local, creating content shares...
2017-05-19 10:41:58 Creating share "UpdateServicesPackages" with path "C:\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."
2017-05-19 10:41:58 Deleting existing share...
2017-05-19 10:41:59 Creating share...
2017-05-19 10:41:59 Share successfully created
2017-05-19 10:41:59 Creating share "WsusContent" with path "C:\WSUS\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2017-05-19 10:41:59 Deleting existing share...
2017-05-19 10:41:59 Creating share...
2017-05-19 10:41:59 Share successfully created
2017-05-19 10:41:59 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."
2017-05-19 10:41:59 Deleting existing share...
2017-05-19 10:41:59 Creating share...
2017-05-19 10:41:59 Share successfully created
2017-05-19 10:41:59 Finished creating content shares
2017-05-19 10:41:59 Stopping service WSUSService
2017-05-19 10:41:59 Stopping service W3SVC
2017-05-19 10:41:59 Configuring WID database...
2017-05-19 10:41:59 Configuring the database...
2017-05-19 10:41:59 Establishing DB connection...
2017-05-19 10:41:59 Checking to see if database exists...
2017-05-19 10:41:59 Database exists
2017-05-19 10:41:59 Switching database to single user mode...
2017-05-19 10:42:03 Loading install type query...
2017-05-19 10:42:03 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
2017-05-19 10:42:03 Install type is: Reinstall
2017-05-19 10:42:03 Creating logins...
2017-05-19 10:42:03 Fetching account info for S-1-5-20
2017-05-19 10:42:03 Found principal
2017-05-19 10:42:03 Found account
2017-05-19 10:42:03 Got binary SID
2017-05-19 10:42:03 Fetching WsusAdministratorsSid from registry store
2017-05-19 10:42:03 Value is S-1-5-21-154860212-533901351-1153442006-1002
2017-05-19 10:42:03 Fetching account info for S-1-5-21-154860212-533901351-1153442006-1002
2017-05-19 10:42:03 Found principal
2017-05-19 10:42:03 Found account
2017-05-19 10:42:03 Got binary SID
2017-05-19 10:42:03 Setting content location...
2017-05-19 10:42:03 Fetching ContentDir from registry store
2017-05-19 10:42:03 Value is C:\WSUS
2017-05-19 10:42:03 Swtching DB to multi-user mode......
2017-05-19 10:42:04 Finished setting multi-user mode
2017-05-19 10:42:04 Writing DB settings to registry...
2017-05-19 10:42:04 Marking PostInstall done for UpdateServices-WidDatabase in the registry...
2017-05-19 10:42:04 Starting service W3SVC
2017-05-19 10:42:04 Configuring IIS...
2017-05-19 10:42:04 Start: ConfigureWebsite
2017-05-19 10:42:05 Configuring website on port 8530
2017-05-19 10:42:47 System.IO.IOException: The process cannot access the file 'C:\Users\topadmin\AppData\Local\Temp\WsusUtilUseCustomWebSite.log' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at Microsoft.UpdateServices.Administration.PostInstall.ConfigureWebsite(Int32 portNumber)
2017-05-19 10:42:47 End: ConfigureWebsite
2017-05-19 10:42:47 Configuring performance counters...
2017-05-19 10:42:47 Configuring Stats.NET perf counter...
2017-05-19 10:42:47 Configuring reporting perf counter...
2017-05-19 10:42:47 Configuring client webservice perf counter...
2017-05-19 10:42:47 Configuring server sync webservice perf counter...
2017-05-19 10:42:47 Configuring API remoting perf counter...
2017-05-19 10:42:47 Bringing services online...
2017-05-19 10:42:47 Checking initialization status...
2017-05-19 10:42:48 StartServer starting...
2017-05-19 10:42:48 Generating encryption key to write to the registry...
2017-05-19 10:42:48 Generating encryption key to write to the database...
2017-05-19 10:42:49 Generating encryption key succeeded...
2017-05-19 10:42:49 Setting WSUSService to autostart...
2017-05-19 10:42:49 WSUSService is set to autostart.
2017-05-19 10:42:49 Starting WSUSService...
2017-05-19 10:42:49 WSUSService is now started.
2017-05-19 10:42:49 Importing default detectoids.
2017-05-19 10:42:49 Importing CriticalUpdates.xml...
2017-05-19 10:42:50 Importing Drivers.xml...
2017-05-19 10:42:50 Importing FeaturePacks.xml...
2017-05-19 10:42:50 Importing MicrosoftCorporation.xml...
2017-05-19 10:42:50 Importing SecurityUpdates.xml...
2017-05-19 10:42:50 Importing ServicePacks.xml...
2017-05-19 10:42:50 Importing Tools.xml...
2017-05-19 10:42:50 Importing UpdateRollups.xml...
2017-05-19 10:42:50 Importing Updates.xml...
2017-05-19 10:42:50 Importing Windows.xml...
2017-05-19 10:42:50 Importing Windows2000family.xml...
2017-05-19 10:42:50 Importing WindowsServer2003DatacenterEdition.xml...
2017-05-19 10:42:50 Importing WindowsServer2003Family.xml...
2017-05-19 10:42:50 Importing WindowsXPfamily.xml...
2017-05-19 10:42:50 Importing LocalPublisher.xml...
2017-05-19 10:42:50 Importing LocallyPublishedPackages.xml...
2017-05-19 10:42:50 Importing Applications.xml...
2017-05-19 10:42:50 Importing Exchange.xml...
2017-05-19 10:42:50 Importing Office.xml...
2017-05-19 10:42:50 Importing SQL.xml...
2017-05-19 10:42:50 Importing Exchange2000Server.xml...
2017-05-19 10:42:50 Importing ExchangeServer2003.xml...
2017-05-19 10:42:50 Importing OfficeXP.xml...
2017-05-19 10:42:50 Importing Office2003.xml...
2017-05-19 10:42:50 Importing SQLServer.xml...
2017-05-19 10:42:51 Importing WindowsXP64BitEditionVersion2003.xml...
2017-05-19 10:42:51 Importing DefinitionUpdateSusXml.xml...
2017-05-19 10:42:51 Importing ClientServicingApiDetectoid.xml...
2017-05-19 10:42:51 Importing default detectoids succeeded.
2017-05-19 10:42:53 Synchronization in progress. Please cancel synchronization and rerun postinstall again. Exception: System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
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.FixSubscriptionCategories()
2017-05-19 10:42:53 StartServer encountered errors. Exception=Synchronization in progress. Please cancel synchronization and run postinstall again.
2017-05-19 10:42:53 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)
I need some help, thank's
- Edited by RolandKafalo Friday, May 19, 2017 11:51 AM
Friday, May 19, 2017 11:47 AM
All replies
-
How did you delete WSUS?
Proper method is to remove the WSUS Role along with the WID role, reboot, and delete the SUSDB.MDF/SUSDB.LDF from C:\Windows\WID\Data
Then you can re-install WSUS and all should install fine.
Adam Marshall, MCSE: Security
http://www.adamj.orgSaturday, May 20, 2017 4:03 AM -
Hi,
According to your description, my understanding is that you failed to re-install WSUS - post-installation failed.
>2017-05-19 10:42:53 Synchronization in progress. Please cancel synchronization and rerun postinstall again. Exception: System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.
Please try to open IIS console, delete the WSUS site, then try post installation task again and check the result.
Best Regards,
Eve WangPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by Eve WangMicrosoft contingent staff Wednesday, May 31, 2017 9:58 AM
Tuesday, May 23, 2017 6:12 AM -
Hi,
How things are going there on this issue?
Please let me know if you would like further assistance.
Best Regards,
Eve WangPlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Wednesday, May 31, 2017 9:58 AM