locked
Problem re-installing WSUS in SCCM Server RRS feed

  • Question

  • Hey everyone, 

    My WSUS installation fails in the final portion. I've already uninstalled WSUS, deleted the old WID Database, and deleted the IIS "WSUS Administration" setup. Some other troubleshooting suggested making sure Network Service had Full rights to the folder, and windows\temp folder so I did that as well. It seems like a problem with the IIS, but when I look at the web.config, it doesn't look different to me. Would appreciate any ideas you all have. Here are the WSUS install logs.

    2017-02-22 09:49:47  Postinstall started
    2017-02-22 09:49:47  Detected role services: Api, UI, WidDatabase, Services
    2017-02-22 09:49:47  Start: LoadSettingsFromParameters
    2017-02-22 09:49:47  Content local is: True
    2017-02-22 09:49:47  Content directory is: D:\Sources\Updates
    2017-02-22 09:49:47  SQL instname is: 
    2017-02-22 09:49:47  End: LoadSettingsFromParameters
    2017-02-22 09:49:47  Start: Run
    2017-02-22 09:49:47  Fetching WsusAdministratorsSid from registry store
    2017-02-22 09:49:47  Value is S-1-5-21-1087073051-2927007947-1628855062-1001
    2017-02-22 09:49:47  Fetching WsusReportersSid from registry store
    2017-02-22 09:49:47  Value is S-1-5-21-1087073051-2927007947-1628855062-1002
    2017-02-22 09:49:47  Configuring content directory...
    2017-02-22 09:49:47  Configuring groups...
    2017-02-22 09:49:47  Starting group configuration for WSUS Administrators...
    2017-02-22 09:49:47  Found group in regsitry, attempting to use it...
    2017-02-22 09:49:54  Writing group to registry...
    2017-02-22 09:49:54  Finished group creation
    2017-02-22 09:49:54  Starting group configuration for WSUS Reporters...
    2017-02-22 09:49:54  Found group in regsitry, attempting to use it...
    2017-02-22 09:49:54  Writing group to registry...
    2017-02-22 09:49:54  Finished group creation
    2017-02-22 09:49:54  Configuring permissions...
    2017-02-22 09:49:54  Fetching content directory...
    2017-02-22 09:49:54  Fetching ContentDir from registry store
    2017-02-22 09:49:54  Value is D:\Sources\Updates
    2017-02-22 09:49:54  Fetching group SIDs...
    2017-02-22 09:49:54  Fetching WsusAdministratorsSid from registry store
    2017-02-22 09:49:54  Value is S-1-5-21-1087073051-2927007947-1628855062-1001
    2017-02-22 09:49:54  Fetching WsusReportersSid from registry store
    2017-02-22 09:49:54  Value is S-1-5-21-1087073051-2927007947-1628855062-1002
    2017-02-22 09:49:54  Creating group principals...
    2017-02-22 09:49:54  Granting directory permissions...
    2017-02-22 09:49:54  Granting permissions on content directory...
    2017-02-22 09:49:54  Granting registry permissions...
    2017-02-22 09:49:54  Granting registry permissions...
    2017-02-22 09:49:54  Granting registry permissions...
    2017-02-22 09:49:54  Configuring shares...
    2017-02-22 09:49:54  Configuring network shares...
    2017-02-22 09:49:54  Fetching content directory...
    2017-02-22 09:49:54  Fetching ContentDir from registry store
    2017-02-22 09:49:54  Value is D:\Sources\Updates
    2017-02-22 09:49:54  Fetching WSUS admin SID...
    2017-02-22 09:49:54  Fetching WsusAdministratorsSid from registry store
    2017-02-22 09:49:54  Value is S-1-5-21-1087073051-2927007947-1628855062-1001
    2017-02-22 09:49:54  Content directory is local, creating content shares...
    2017-02-22 09:49:54  Creating share "UpdateServicesPackages" with path "D:\Sources\Updates\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-02-22 09:49:54  Deleting existing share...
    2017-02-22 09:49:54  Creating share...
    2017-02-22 09:49:54  Share successfully created
    2017-02-22 09:49:54  Creating share "WsusContent" with path "D:\Sources\Updates\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
    2017-02-22 09:49:54  Deleting existing share...
    2017-02-22 09:49:54  Creating share...
    2017-02-22 09:49:54  Share successfully created
    2017-02-22 09:49:54  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-02-22 09:49:54  Deleting existing share...
    2017-02-22 09:49:54  Creating share...
    2017-02-22 09:49:54  Share successfully created
    2017-02-22 09:49:54  Finished creating content shares
    2017-02-22 09:49:54  Stopping service WSUSService
    2017-02-22 09:49:54  Stopping service W3SVC
    2017-02-22 09:49:57  Configuring WID database...
    2017-02-22 09:49:57  Configuring the database...
    2017-02-22 09:49:57  Establishing DB connection...
    2017-02-22 09:49:57  Checking to see if database exists...
    2017-02-22 09:49:57  Database exists
    2017-02-22 09:49:57  Switching database to single user mode...
    2017-02-22 09:50:00  Loading install type query...
    2017-02-22 09:50:00  DECLARE @currentDBVersion       int
    DECLARE @scriptMajorVersion     int = (9600)
    DECLARE @scriptMinorVersion     int = (18324)
    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-02-22 09:50:00  Install type is: Reinstall
    2017-02-22 09:50:00  Creating logins...
    2017-02-22 09:50:00  Fetching account info for S-1-5-20
    2017-02-22 09:50:00  Found principal
    2017-02-22 09:50:00  Found account
    2017-02-22 09:50:00  Got binary SID
    2017-02-22 09:50:00  Fetching WsusAdministratorsSid from registry store
    2017-02-22 09:50:00  Value is S-1-5-21-1087073051-2927007947-1628855062-1001
    2017-02-22 09:50:00  Fetching account info for S-1-5-21-1087073051-2927007947-1628855062-1001
    2017-02-22 09:50:00  Found principal
    2017-02-22 09:50:00  Found account
    2017-02-22 09:50:00  Got binary SID
    2017-02-22 09:50:00  Setting content location...
    2017-02-22 09:50:00  Fetching ContentDir from registry store
    2017-02-22 09:50:00  Value is D:\Sources\Updates
    2017-02-22 09:50:00  Swtching DB to multi-user mode......
    2017-02-22 09:50:00  Finished setting multi-user mode
    2017-02-22 09:50:00  Writing DB settings to registry...
    2017-02-22 09:50:00  Marking PostInstall done for UpdateServices-WidDatabase in the registry...
    2017-02-22 09:50:00  Starting service W3SVC
    2017-02-22 09:50:01  Configuring IIS...
    2017-02-22 09:50:01  Start: ConfigureWebsite
    2017-02-22 09:50:01  Configuring website on port 8530
    2017-02-22 09:50:30  2017-02-22 09:50:11  Info      IISCustomAction    Performing Setup Action, Command /Install 
    2017-02-22 09:50:29  Info      IISCustomAction    Command /Install Succeeded
    2017-02-22 09:50:30  End: ConfigureWebsite
    2017-02-22 09:50:30  Configuring performance counters...
    2017-02-22 09:50:30  Configuring Stats.NET perf counter...
    2017-02-22 09:50:30  Configuring reporting perf counter...
    2017-02-22 09:50:30  Configuring client webservice perf counter...
    2017-02-22 09:50:30  Configuring server sync webservice perf counter...
    2017-02-22 09:50:30  Configuring API remoting perf counter...
    2017-02-22 09:50:30  Bringing services online...
    2017-02-22 09:50:30  Checking initialization status... 
    2017-02-22 09:50:31  Database needs initialization.
    2017-02-22 09:50:31  StartServer starting...
    2017-02-22 09:50:31  Generating encryption key to write to the registry...
    2017-02-22 09:50:31  Generating encryption key to write to the database...
    2017-02-22 09:50:31  Generating encryption key succeeded...
    2017-02-22 09:50:31  Setting WSUSService to autostart...
    2017-02-22 09:50:31  WSUSService is set to autostart.
    2017-02-22 09:50:31  Starting WSUSService...
    2017-02-22 09:50:31  WSUSService is now started.
    2017-02-22 09:50:31  Importing default detectoids.
    2017-02-22 09:50:31  Importing CriticalUpdates.xml...
    2017-02-22 09:50:31  Importing Drivers.xml...
    2017-02-22 09:50:31  Importing FeaturePacks.xml...
    2017-02-22 09:50:31  Importing MicrosoftCorporation.xml...
    2017-02-22 09:50:31  Importing SecurityUpdates.xml...
    2017-02-22 09:50:31  Importing ServicePacks.xml...
    2017-02-22 09:50:31  Importing Tools.xml...
    2017-02-22 09:50:31  Importing UpdateRollups.xml...
    2017-02-22 09:50:31  Importing Updates.xml...
    2017-02-22 09:50:31  Importing Windows.xml...
    2017-02-22 09:50:31  Importing Windows2000family.xml...
    2017-02-22 09:50:31  Importing WindowsServer2003DatacenterEdition.xml...
    2017-02-22 09:50:31  Importing WindowsServer2003Family.xml...
    2017-02-22 09:50:31  Importing WindowsXPfamily.xml...
    2017-02-22 09:50:31  Importing LocalPublisher.xml...
    2017-02-22 09:50:31  Importing LocallyPublishedPackages.xml...
    2017-02-22 09:50:31  Importing Applications.xml...
    2017-02-22 09:50:31  Importing Exchange.xml...
    2017-02-22 09:50:31  Importing Office.xml...
    2017-02-22 09:50:31  Importing SQL.xml...
    2017-02-22 09:50:31  Importing Exchange2000Server.xml...
    2017-02-22 09:50:31  Importing ExchangeServer2003.xml...
    2017-02-22 09:50:31  Importing OfficeXP.xml...
    2017-02-22 09:50:31  Importing Office2003.xml...
    2017-02-22 09:50:31  Importing SQLServer.xml...
    2017-02-22 09:50:31  Importing WindowsXP64BitEditionVersion2003.xml...
    2017-02-22 09:50:31  Importing DefinitionUpdateSusXml.xml...
    2017-02-22 09:50:31  Importing ClientServicingApiDetectoid.xml...
    2017-02-22 09:50:31  Importing default detectoids succeeded.
    2017-02-22 09:50:31  Creating default subscription.
    2017-02-22 09:50:31  Instantiating UpdateServer
    2017-02-22 09:50:32  CreateDefaultSubscription failed. Exception: System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'.
    The request failed with an empty response.
       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.CreateDefaultSubscription()
    2017-02-22 09:50:32  StartServer encountered errors. Exception=Client found response content type of '', but expected 'text/xml'.
    The request failed with an empty response.
    2017-02-22 09:50:32  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)

    Wednesday, February 22, 2017 3:59 PM

All replies

  • Hi JoseMagallanes,

    1. Is there any other site on the IIS, if is, please disable them, generally, it's not recommended to install other sites on WSUS server;

    2. Please restart the IIS site, check if it could help;

    3. Please check the file in C:\Program Files\Update Services\WebServices, if you have other working WSUS server, you may try cope the file in that location to the problematic WSUS server, then, re-run post-installation step, check if it could help.

    Best Regards,

    Anne


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, February 23, 2017 9:51 AM
  • I am experiencing the same problem and in order to resolve this error, follow the steps below:

    1. Open IIS -> Authentication.
    2. Disable the option for ‘ASP.NET Impersonation’.

    3. Restart IIS.

    i fixed it~

    Tuesday, February 19, 2019 3:17 AM