Fatal error failed to start and configure the wsus service

I upgraded one Windows Server 2008 R2 machine to Windows Server 2012 R2 the other day and had a bit hard time getting WSUS to work again. WSUS is now part of Windows Server 2012 family serving as a role, instead of a standalone software that needs to be installed separately in previous Windows. After

I upgraded one Windows Server 2008 R2 machine to Windows Server 2012 R2 the other day and had a bit hard time getting WSUS to work again. WSUS is now part of Windows Server 2012 family serving as a role, instead of a standalone software that needs to be installed separately in previous Windows.

After I successfully added WSUS as a service role to the server, I need to run the Post-installation process to complete the whole installation. And that’s where the issue started.

Fatal Error: Failed to start and configure the WSUS service

WSUS on Windows 2012 failed in post installation 2 - Fixing Failed to Start and Configure the WSUS Service in Windows Server 2012 R2

After looking at the log file indicated in the Notification window, here is what I found:

2016-12-21 10:06:27  CreateDefaultSubscription failed. Exception: System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
    <head>
        <title>Could not load file or assembly 'Microsoft.UpdateServices.WebServices.ApiRemoting' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

It took me at least one hour to finally figure it out. It’s basically the setup in Application Pools in IIS that messed things up. To fix it up, open IIS Manager, head over to Application Pool, and set WsusPool to use .Net v4.0 instead of v2.0 in my case.

IIS Applicaiton Pools wsuspool to v40 600x297 - Fixing Failed to Start and Configure the WSUS Service in Windows Server 2012 R2

Once done, I started the Post-installation again and it went all the way to the end successfully without any further issues.

Fix WSUS Postinstallation Error www.doitfixit.com 3 - Fixing Failed to Start and Configure the WSUS Service in Windows Server 2012 R2

On another note, there is another different error that also causes post-installation to fail.

CreateDefaultSubscription failed. Exception: System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.

If that’s the case for you, all you need to do is to remove WSUS Administration site in IIS and start the post-installation process again.

IIS to remove WSUS Administration - Fixing Failed to Start and Configure the WSUS Service in Windows Server 2012 R2

That’s about it. Hopefully, it helps.

  • Remove From My Forums
  • Question

  • Hey tech.net

    I have recently made an in-place upgrade of a 2008 r2 server to 2012 r2 std. I am running wsus on the server, but since the upgrade, wsus have not been working. It somehow didnt migrate the server role from 2008, so i had to re-install the role when it turned
    into a 2012 server.

    However when i get to the post-install configuration, it always fails with the error: Fatal Error: Failed to start and configure the WSUS service.

    The event log is also telling me that alot of the services for running wsus is not working. Yep, it actually just tells me they are not working, and i have no clue what to look for regarding this error message.

    In the server manager, the actual wsus service is running and set to Automatic, though it keeps telling me the service is not running.

    I have tried several solutions found online which includes:

    — removing WSUS IIS site

    — the command: «dism /online /cleanup-image /restorehealth» to look for corrupted files in the OS

    — re-installing both iis & wsus

    — installing wsus (and required components) with powershell

    I am litteraly clueless at this point, so im hoping any of you have something clever i can try :)

    /jjhs

Answers

  • Hi,

    If you are using WID, please remove the WID feature, then remove the database file manually.

    If you are using remote SQL server, please delete the SUSDB in the SQL server.

    If it doesn’t work, please check the post-installation log. It may give some hints.

    When post-install fails, a log will be created in the AppDataLocalTemp.

    Best Regards.


    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by

      Tuesday, September 8, 2015 7:55 AM

    • Marked as answer by
      Steven_Lee0510
      Tuesday, September 8, 2015 2:38 PM

10 Replies

  • Author Adam Marshall, Microsoft MVP

    OverDrive


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    mace

    WSUS Expert

    • check
      392
      Best Answers
    • thumb_up
      557
      Helpful Votes

  • After you followed Adams guide, dont forget to buy/install Adams WSUS Automated Mainantence tool.

    Best tool ever for keeping your WSUS small, fast and clean.

    And read all other blog posts from Adam.


    1 of 2 found this helpful
    thumb_up
    thumb_down

  • Author Adam Marshall, Microsoft MVP

    OverDrive


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    mace

    WSUS Expert

    • check
      392
      Best Answers
    • thumb_up
      557
      Helpful Votes

    Thanks for the endorsement :)


    Was this post helpful?
    thumb_up
    thumb_down

  • Author spicehead-wt43x

    I tried your directions about times now with the same results. I have no traces of SQL and 4.7 is not installed. Is there anything else I can try?


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Adam Marshall, Microsoft MVP

    OverDrive


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    mace

    WSUS Expert

    • check
      392
      Best Answers
    • thumb_up
      557
      Helpful Votes

    Did you:

    In IIS, remove the ‘WSUS Administration’ website and the ‘WsusPool’ Application Pool if they still exist. 

    Also, please post the entire contents of the log file that it mentions in the window.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author spicehead-wt43x

    I did remove the site. I attached the log file here.

    attach_file
    Attachment

    tmpD1E1.txt
    57.9 KB


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Adam Marshall, Microsoft MVP

    OverDrive


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    mace

    WSUS Expert

    • check
      392
      Best Answers
    • thumb_up
      557
      Helpful Votes

    Open IIS -> Authentication.

    Disable the option for ‘ASP.NET Impersonation’.
    Restart IIS.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Adam Marshall, Microsoft MVP

    OverDrive


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    mace

    WSUS Expert

    • check
      392
      Best Answers
    • thumb_up
      557
      Helpful Votes

    If the above doesn’t help…

    1. Are there any other sites in IIS, if is, please disable them,
    generally, it’s not recommended to install other sites on a WSUS server.
    2. Please restart the IIS site.
    3. Please check for the files in C:Program FilesUpdate
    ServicesWebServices. If you have another working WSUS server, you may try
    copying the files in that location to the problematic WSUS server, then,
    re-run post-installation step.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author spicehead-wt43x

    Tried the suggested steps. ASP.NET Impersonation was already disabled and there are no other WSUS servers — still same error.


    Was this post helpful?
    thumb_up
    thumb_down

  • Author Adam Marshall, Microsoft MVP

    OverDrive


    This person is a Verified Professional

    This person is a verified professional.

    Verify your account
    to enable IT peers to see that you are a professional.

    mace

    WSUS Expert

    • check
      392
      Best Answers
    • thumb_up
      557
      Helpful Votes


в Windows

19.08.201515.10.2015

168 Words

Во время пост-инсталляции(послеустановочных задач) WSUS в Windows Server 2012 R2 через Server Manager выпадала такая ошибка:

2015-08-19 09:22:15  Creating default subscription.
2015-08-19 09:22:15  Instantiating UpdateServer
2015-08-19 09:22:16  CreateDefaultSubscription failed. 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.CreateDefaultSubscription()
2015-08-19 09:22:16  StartServer encountered errors. Exception=The request failed with HTTP status 503: Service Unavailable.
2015-08-19 09:22:16  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)
Fatal Error: Failed to start and configure the WSUS service

Целый вечер не мог понять в чем подвох, ведь ставилось все автоматически без вмешательства, на чистую систему. Но вскорее, на следующее утро нашлось решение — удалить веб-сайт WSUS и заново запустить пост-инсталляцию.

Ссылка с таким же решением: Wsus Post Installation configuration task failed

http://sysadminka.blogspot.ru/2014/08/2012-wsus-post-deployment-configuration.html

Hello,

I have a technet account that is now offering full versions of Windows Server 2012. I have a Windows Server 2012 box running Hyper-V for testing purposes. Running on it are several Server 2012 VM’s all of which have 2 virtual network adapters — one that’s an «internal only» network of 10.0.0.X, and the second connected to my companies regular network for internet connection. There are two domain controlers (one as a backup), a Remote Desktop Services (Terminal) server, and an Exchange server, all in their own respective VM’s on the same domain. I created a new Server 2012 installation specifically for running Windows Server update Services.  All VM’s are joined to the same domain.

The initial installation of the role is successful. When I try to launch WSUS, it prompts to complete the WSUS installation, asking for a location to store update files. I opted to store them locally at «C:wsus_update_files». I try to run the task but it just fails with the following error…

Log file is located at C:Usersadministrator.DOMAINAppdataLocalTemptmpF7EC.tmp
Post install is starting
Fatal Error: Failed to start and configure the WSUS service

Below is the contents of the error log…

2012-10-29 12:18:31  Postinstall started
2012-10-29 12:18:31  Detected role services: Api, UI, WidDatabase, Services
2012-10-29 12:18:31  Start: LoadSettingsFromParameters
2012-10-29 12:18:31  Content local is: True
2012-10-29 12:18:31  Content directory is: C:wsus_update_files
2012-10-29 12:18:31  SQL instname is:
2012-10-29 12:18:31  End: LoadSettingsFromParameters
2012-10-29 12:18:32  Start: Run
2012-10-29 12:18:32  Configuring content directory…
2012-10-29 12:18:32  Configuring groups…
2012-10-29 12:18:32  Starting group configuration for WSUS Administrators…
2012-10-29 12:18:32  Found group in regsitry, attempting to use it…
2012-10-29 12:18:37  Writing group to registry…
2012-10-29 12:18:37  Finished group creation
2012-10-29 12:18:37  Starting group configuration for WSUS Reporters…
2012-10-29 12:18:37  Found group in regsitry, attempting to use it…
2012-10-29 12:18:37  Writing group to registry…
2012-10-29 12:18:37  Finished group creation
2012-10-29 12:18:37  Configuring permissions…
2012-10-29 12:18:37  Fetching content directory…
2012-10-29 12:18:37  Fetching ContentDir from registry store
2012-10-29 12:18:37  Value is C:wsus_update_files
2012-10-29 12:18:37  Fetching group SIDs…
2012-10-29 12:18:37  Fetching WsusAdministratorsSid from registry store
2012-10-29 12:18:37  Value is S-1-5-21-4037346847-2484544048-3312150131-1001
2012-10-29 12:18:37  Fetching WsusReportersSid from registry store
2012-10-29 12:18:37  Value is S-1-5-21-4037346847-2484544048-3312150131-1002
2012-10-29 12:18:37  Creating group principals…
2012-10-29 12:18:37  Granting directory permissions…
2012-10-29 12:18:37  Granting permissions on content directory…
2012-10-29 12:18:38  Granting registry permissions…
2012-10-29 12:18:38  Granting registry permissions…
2012-10-29 12:18:38  Granting registry permissions…
2012-10-29 12:18:38  Configuring shares…
2012-10-29 12:18:38  Configuring network shares…
2012-10-29 12:18:38  Fetching content directory…
2012-10-29 12:18:38  Fetching ContentDir from registry store
2012-10-29 12:18:38  Value is C:wsus_update_files
2012-10-29 12:18:38  Fetching WSUS admin SID…
2012-10-29 12:18:38  Fetching WsusAdministratorsSid from registry store
2012-10-29 12:18:38  Value is S-1-5-21-4037346847-2484544048-3312150131-1001
2012-10-29 12:18:38  Content directory is local, creating content shares…
2012-10-29 12:18:38  Creating share «UpdateServicesPackages» with path «C:wsus_update_filesUpdateServicesPackages» and description «A network share to be used by client systems for collecting all software packages (usually applications) published on this WSUS system.»
2012-10-29 12:18:38  Deleting existing share…
2012-10-29 12:18:38  Creating share…
2012-10-29 12:18:38  Share successfully created
2012-10-29 12:18:38  Creating share «WsusContent» with path «C:wsus_update_filesWsusContent» and description «A network share to be used by Local Publishing to place published content on this WSUS system.»
2012-10-29 12:18:38  Deleting existing share…
2012-10-29 12:18:38  Creating share…
2012-10-29 12:18:38  Share successfully created
2012-10-29 12:18:38  Creating share «WSUSTemp» with path «C:Program FilesUpdate ServicesLogFilesWSUSTemp» and description «A network share used by Local Publishing from a Remote WSUS Console Instance.»
2012-10-29 12:18:38  Deleting existing share…
2012-10-29 12:18:38  Creating share…
2012-10-29 12:18:38  Share successfully created
2012-10-29 12:18:38  Finished creating content shares
2012-10-29 12:18:38  Configuring WID database…
2012-10-29 12:18:39  Configuring the database…
2012-10-29 12:18:39  Establishing DB connection…
2012-10-29 12:18:40  Checking to see if database exists…
2012-10-29 12:18:40  Database exists
2012-10-29 12:18:40  Switching database to single user mode…
2012-10-29 12:18:41  Loading install type query…
2012-10-29 12:18:41  DECLARE @currentScriptVersion   int
DECLARE @currentDBVersion       int
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name=’SUSDB’)
BEGIN
    SELECT 1
END
ELSE
BEGIN
    SET @currentScriptVersion = (9200 + 16384)
    SET @currentDBVersion = (SELECT SchemaVersion FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = ‘CoreDB’)
    IF @currentDBVersion < 926
    BEGIN
        SELECT 3
    END
    ELSE IF @currentDBVersion < @currentScriptVersion
    BEGIN
        SELECT 2
    END
    ELSE IF @currentDBVersion = @currentScriptVersion
    BEGIN
        SELECT 0
    END
    ELSE
    BEGIN
        SELECT 4
    END
END

2012-10-29 12:18:41  Install type is: Reinstall
2012-10-29 12:18:41  Creating logins…
2012-10-29 12:18:41  Fetching account info for S-1-5-20
2012-10-29 12:18:42  Found principal
2012-10-29 12:18:42  Found account
2012-10-29 12:18:42  Got binary SID
2012-10-29 12:18:42  Fetching WsusAdministratorsSid from registry store
2012-10-29 12:18:42  Value is S-1-5-21-4037346847-2484544048-3312150131-1001
2012-10-29 12:18:42  Fetching account info for S-1-5-21-4037346847-2484544048-3312150131-1001
2012-10-29 12:18:42  Found principal
2012-10-29 12:18:42  Found account
2012-10-29 12:18:42  Got binary SID
2012-10-29 12:18:42  Setting content location…
2012-10-29 12:18:42  Fetching ContentDir from registry store
2012-10-29 12:18:42  Value is C:wsus_update_files
2012-10-29 12:18:42  Swtching DB to multi-user mode……
2012-10-29 12:18:43  Finished setting multi-user mode
2012-10-29 12:18:43  Writing DB settings to registry…
2012-10-29 12:18:43  Marking PostInstall done for UpdateServices-WidDatabase in the registry…
2012-10-29 12:18:43  Configuring IIS…
2012-10-29 12:18:43  Start: ConfigureWebsite
2012-10-29 12:18:43  Configuring website on port 8530
2012-10-29 12:19:14  2012-10-29 11:12:26  Info      IISCustomAction    Performing Setup Action, Command /Install
2012-10-29 11:12:41  Error     IISCustomAction    Command /Install FailedSystem.Runtime.Intero2012-10-29 11:12:48  Error     IISCustomAction    Command /Install FailedSystem.Runtime.InteropServices.COMException (0x80070006): The handle is invalid.
2012-10-29 11:12:48  Error     IISCustomAction    
2012-10-29 11:12:48  Error     IISCustomAction       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
2012-10-29 11:12:48  Error     IISCustomAction       at System.DirectoryServices.DirectoryEntry.Exists(String path)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisAdsiDriver.GetAdsiPathExists(String path)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisAdsiDriver.GetDirectoryEntryObject(IisMetabaseObject obj, Boolean getForParent, Boolean throwOnNotExists)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisAdsiDriver.SetIisObjectProperties(IisMetabaseObject obj)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisMetabaseObject.ApplySettings(IIisMetabaseDriver metabaseDriver, IisMetabaseObject target)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisWebVirtualDir.ApplySettings(IIisMetabaseDriver metabaseDriver, IisMetabaseObject target)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisMetabaseObject.Apply(IIisMetabaseDriver metabaseDriver)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisConfig.ApplyConfigWebVirtualDirs(IIisMetabaseDriver metabaseDriver, IisConfig previousConfig)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisConfig.ApplyConfig(IIisMetabaseDriver metabaseDriver, Boolean upgrading, Boolean& siteCreated)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.IisCustomAction.Install(String installRevision, String configFilePath, String webSiteName, String newWebSiteBinding, String newWebSiteRootPath, String[] rootPaths)
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.MainClass.Install()
2012-10-29 11:12:48  Error     IISCustomAction       at Microsoft.UpdateServices.Setup.MainClass.PerformSetupAction()
2012-10-29 12:18:58  Info      IISCustomAction    Performing Setup Action, Command /Install
2012-10-29 12:19:13  Info      IISCustomAction    Command /Install Succeeded

2012-10-29 12:19:14  End: ConfigureWebsite
2012-10-29 12:19:14  Configuring performance counters…
2012-10-29 12:19:15  Configuring Stats.NET perf counter…
2012-10-29 12:19:19  Configuring reporting perf counter…
2012-10-29 12:19:21  Configuring client webservice perf counter…
2012-10-29 12:19:24  Configuring server sync webservice perf counter…
2012-10-29 12:19:28  Configuring API remoting perf counter…
2012-10-29 12:19:29  Bringing services online…
2012-10-29 12:19:29  Checking initialization status…
2012-10-29 12:19:30  Database needs initialization.
2012-10-29 12:19:30  StartServer starting…
2012-10-29 12:19:30  Generating encryption key to write to the registry…
2012-10-29 12:19:30  Generating encryption key to write to the database…
2012-10-29 12:19:31  Generating encryption key succeeded…
2012-10-29 12:19:31  Setting WSUSService to autostart…
2012-10-29 12:19:31  WSUSService is set to autostart.
2012-10-29 12:19:31  Starting WSUSService…
2012-10-29 12:19:32  WSUSService is now started.
2012-10-29 12:19:32  Importing default detectoids.
2012-10-29 12:19:33  Importing CriticalUpdates.xml…
2012-10-29 12:19:35  Importing Drivers.xml…
2012-10-29 12:19:38  Importing FeaturePacks.xml…
2012-10-29 12:19:38  Importing MicrosoftCorporation.xml…
2012-10-29 12:19:38  Importing SecurityUpdates.xml…
2012-10-29 12:19:38  Importing ServicePacks.xml…
2012-10-29 12:19:39  Importing Tools.xml…
2012-10-29 12:19:39  Importing UpdateRollups.xml…
2012-10-29 12:19:39  Importing Updates.xml…
2012-10-29 12:19:39  Importing Windows.xml…
2012-10-29 12:19:39  Importing Windows2000family.xml…
2012-10-29 12:19:40  Importing WindowsServer2003DatacenterEdition.xml…
2012-10-29 12:19:40  Importing WindowsServer2003Family.xml…
2012-10-29 12:19:40  Importing WindowsXPfamily.xml…
2012-10-29 12:19:40  Importing LocalPublisher.xml…
2012-10-29 12:19:40  Importing LocallyPublishedPackages.xml…
2012-10-29 12:19:40  Importing Applications.xml…
2012-10-29 12:19:40  Importing Exchange.xml…
2012-10-29 12:19:41  Importing Office.xml…
2012-10-29 12:19:41  Importing SQL.xml…
2012-10-29 12:19:41  Importing Exchange2000Server.xml…
2012-10-29 12:19:41  Importing ExchangeServer2003.xml…
2012-10-29 12:19:41  Importing OfficeXP.xml…
2012-10-29 12:19:41  Importing Office2003.xml…
2012-10-29 12:19:41  Importing SQLServer.xml…
2012-10-29 12:19:41  Importing WindowsXP64BitEditionVersion2003.xml…
2012-10-29 12:19:41  Importing DefinitionUpdateSusXml.xml…
2012-10-29 12:19:42  Importing ClientServicingApiDetectoid.xml…
2012-10-29 12:19:42  Importing default detectoids succeeded.
2012-10-29 12:19:42  Creating default subscription.
2012-10-29 12:19:42  Instantiating UpdateServer
2012-10-29 12:19:44  CreateDefaultSubscription failed. 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.CreateDefaultSubscription()
2012-10-29 12:19:44  StartServer encountered errors. Exception=The request failed with HTTP status 503: Service Unavailable.
2012-10-29 12:19:44  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)

All services for WSUS and IIS are running. I have tried restarting the services and running the post-install task but continues to fail. I reboot the VM and tried again but fails.

Any ideas why I may be having this issue?

I encountered this issue in my lab, when trying to setup WSUS for my SCCM server (to use as a Software Update Point). So after installing the WSUS role (using a SQL database, and not the WID option), you will notice that there are some post-install configuration required.

Post-Deployment Configuration Tasks

When you click on the ‘Launch Post-Installation tasks’ link, the post-install tasks will be initiated.

Post-Deployment Configuration Tasks - Running

But the post-config failed. When looking at the produced temp file, it showed the following.

2015-03-18 20:43:04 CreateDefaultSubscription failed. 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.CreateDefaultSubscription()
2015-03-18 20:43:04 StartServer encountered errors. Exception=The request failed with HTTP status 503: Service Unavailable.
2015-03-18 20:43:04 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)

Notice that it says Service Unavailable. I went to the Windows Server, and was able to start it. So what gives? Searching through the web, I came across many differing solutions, from command line configuration, to port modifications, etc. But none of these actually showed/had the same error that I did. There was mention of a known issue with WSUS, but that was on Windows Server 2012; my lab systems are all running on Windows Server 2012 R2.

I tried removing the WSUS role, and reinstalling, to no avail. Very frustrating, until I came across this post (http://myitforum.com/myitforumwp/2013/02/21/wsus-post-installation-configuration-task-failed/) which did show the exact error that I was encountering (HTTP status 503: Service Unavailable). This article mentioned that there might be an IIS issue. The solution suggested was to launch the IIS console, delete the existing WSUS Administration site, and re-initiate the post-installation tasks.

WSUS Admin Website

After I did this, the post-installation tasks completed successfully, and I was able to finish the setup of the SCCM Software Update Point with the WSUS sync working properly (as observed in the WCM.log file).

SCCM WCM Log Results

I hope this post helps someone, as it took me a while to find someone else that posted the exact same error/issue I encountered.

So our WSUS installation needed to be re-installed and it keeps failing during the post installation tasks with the following error from the log it creates in the temp location. Any help would be greatly appreciated. Log output is below:

2017-01-09 12:03:08 Generation of encryption key to save to the database failed. Error=System.InvalidOperationException: Cannot save configuration because the server is still processing a previous configuration change. —> System.Data.SqlClient.SqlException: spSetConfiguration was called while a Reset Process was Needed/InProgress cannot change Configuration at this time at Microsoft.UpdateServices.DatabaseAccess.DBConnection.DrainObsoleteConnections(SqlException e) at Microsoft.UpdateServices.DatabaseAccess.DBConnection.ExecuteCommandNoResult() at Microsoft.UpdateServices.Internal.NoResultSPHandler.ExecuteStoredProcedure(DBConnection connection) at Microsoft.UpdateServices.Internal.GenericDataAccess.ExecuteSP(String spName, DBParameterCollection args, IExecuteSPHandler handler, Int32 queryTimeoutInSeconds) at Microsoft.UpdateServices.Internal.GenericDataAccess.ExecuteSP(String spName, DBParameterCollection args, IExecuteSPHandler handler) at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccess.ExecuteSPSetConfiguration(ConfigurationTableRow row, IDictionary changedLanguages, IEnumerable1 programKeys) --- End of inner exception stack trace --- at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccess.ExecuteSPSetConfiguration(ConfigurationTableRow row, IDictionary changedLanguages, IEnumerable1 programKeys) at Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration.Save(Boolean detectConfigChange) at Microsoft.UpdateServices.Setup.StartServer.StartServer.GenerateNewDatabaseEncryptionKey() 2017-01-09 12:03:08 StartServer encountered errors. Exception=Cannot save configuration because the server is still processing a previous configuration change. 2017-01-09 12:03:08 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) Fatal Error: Failed to start and configure the WSUS service

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fatal error failed to mount fuse fs fusermount exit status 1
  • Fatal error failed to locate necessary tables to make adjustments как исправить
  • Fatal error failed to load platform modules steam что делать
  • Fatal error failed to load mono ок
  • Fatal error failed to load il2cpp

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии