Tuesday, December 6, 2016

Attempting to run Setup or Remove Skype for Business Server Components again throws the error: “HostLocalActivateTask execution failed on an unrecoverable error.”

Problem

You’ve recently made a change to your Skype for Business topology and need to run the Setup or Remove Skype for Business Server Components again to apply the changes:

image

… but notice that it fails with the error:

HostLocalActivateTask execution failed on an unrecoverable error.

The following is the output commands executed:

> Bootstrap-CsComputerLogging status to: C:\Users\tluk\AppData\Local\Temp\BootstrapFull-[2015_09_04][11_33_12].htmlChecking prerequisites for bootstrapper...Checking prerequisite WMIEnabled...prerequisite satisfied.Checking prerequisite NoBootstrapperOnBranchOfficeAppliance...prerequisite satisfied.Checking prerequisite SupportedOS...prerequisite satisfied.Checking prerequisite NoOtherVersionInstalled...prerequisite satisfied.Host name: svrskypestd01.ariel.internalDisabling unused roles...Executing PowerShell command: Disable-CSComputer -Confirm:$false -Verbose -Report "C:\Users\tluk\AppData\Local\Temp\Disable-CSComputer-[2015_09_04][11_33_16].html"Checking prerequisites for roles...Checking prerequisite SupportedOS...prerequisite satisfied.Checking prerequisite SupportedOSNoDC...prerequisite satisfied.Checking prerequisite DotNet35...prerequisite satisfied.Checking prerequisite SupportedSqlRtcLocal...prerequisite satisfied.Checking prerequisite WMIEnabled...prerequisite satisfied.Checking prerequisite NoOtherVersionInstalled...prerequisite satisfied.Checking prerequisite PowerShell...prerequisite satisfied.Checking prerequisite SupportedServerOS...prerequisite satisfied.Checking prerequisite KB2533623Installed...prerequisite satisfied.Checking prerequisite SupportedSqlLyncLocal...prerequisite satisfied.Checking prerequisite SupportedSqlRtc...prerequisite satisfied.Checking prerequisite IIS...prerequisite satisfied.Checking prerequisite IIS7Features...prerequisite satisfied.Checking prerequisite KB2982006Installed...prerequisite satisfied.Checking prerequisite ASPNet...prerequisite satisfied.Checking prerequisite KB2646886Installed...prerequisite satisfied.Checking prerequisite BranchCacheBlock...prerequisite satisfied.Checking prerequisite WCF...prerequisite satisfied.Checking prerequisite WindowsMediaFoundation...prerequisite satisfied.Checking prerequisite SqlUpgradeInstanceRtcLocal...prerequisite satisfied.Checking prerequisite SqlInstanceRtcLocal...prerequisite satisfied.Checking prerequisite VCredist...prerequisite satisfied.Checking prerequisite SqlNativeClient...prerequisite satisfied.Checking prerequisite SqlClrTypes...prerequisite satisfied.Checking prerequisite SqlSharedManagementObjects...prerequisite satisfied.Checking prerequisite UcmaRedist...prerequisite satisfied.Checking prerequisite KB2858668Installed...prerequisite satisfied.Checking prerequisite VcRedistForWinFab...prerequisite satisfied.Checking prerequisite WinFabForWin2012...prerequisite satisfied.Checking prerequisite MicrosoftIdentityExtensions...prerequisite satisfied.Checking prerequisite SqlUpgradeInstanceLyncLocal...prerequisite satisfied.Checking prerequisite SqlInstanceLyncLocal...prerequisite satisfied.Checking prerequisite SqlUpgradeInstanceRtc...prerequisite satisfied.Checking prerequisite SqlInstanceRtc...prerequisite satisfied.Checking prerequisite RewriteModule...prerequisite satisfied.Checking prerequisite TenantPowershell...prerequisite satisfied.Installing any collocated databases...Executing PowerShell command: Install-CSDatabase -Confirm:$false -Verbose -LocalDatabases -Report "C:\Users\tluk\AppData\Local\Temp\Install-CSDatabase-[2015_09_04][11_33_28].html"Enabling new roles...This step will configure services, apply permissions, create firewall rules, etc.Executing PowerShell command: Enable-CSComputer -Confirm:$false -Verbose -Report "C:\Users\tluk\AppData\Local\Temp\Enable-CSComputer-[2015_09_04][11_33_39].html"HostLocalActivateTask execution failed on an unrecoverable error.

image

The following output is found in the bootstrap log: 

Error: HostLocalActivateTask execution failed on an unrecoverable error.

▼ Details

└ Type: PowerShellException

└ ▼ Stack Trace

at Microsoft.Rtc.Internal.Tools.Bootstrapper.Dependencies.PowerShellProvider.RunCmdlet(String cmdlet)
at Microsoft.Rtc.Management.Internal.Utilities.LogWriter.InvokeAndLog(Action action)

└ ▼ Additional Details

Error: HostLocalActivateTask execution failed on an unrecoverable error.

▼ Details

└ Type: PowerShellException

└ ▼ Stack Trace

at Microsoft.Rtc.Internal.Tools.Bootstrapper.Dependencies.PowerShellProvider.HandlePowerShellErrors(Collection`1 errors)
at Microsoft.Rtc.Internal.Tools.Bootstrapper.Dependencies.PowerShellProvider.RunCmdlet(String cmdlet)

image

You’ve confirmed that all the services are started:

image

Solution

To determine why this error is thrown during the setup process, execute the cmdlet Enable-CSComputer:

PS C:\Users\tluk> Enable-CSComputer

Enable-CSComputer : HostLocalActivateTask execution failed on an unrecoverable

error.

At line:1 char:1

+ Enable-CSComputer

+ ~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: ([0] Microsoft.R....Core.Servi

ce

:SourceCollection) [Enable-CsComputer], DeploymentException

+ FullyQualifiedErrorId : TaskFailed,Microsoft.Rtc.Management.Deployment.A

ctivateMachineCmdlet

WARNING: No patterns found. Skipping rewrite rules creation for Web Scheduler

WARNING: No patterns found. Skipping rewrite rules creation for Web Scheduler

WARNING: Enable-CSComputer encountered errors. Consult the log file for a

detailed analysis, and ensure all errors (6) and warnings (2) are addressed

before continuing.

WARNING: Detailed results can be found at

"C:\Users\tluk\AppData\Local\Temp\Enable-CSComputer-5a75cbdc-d306-4a43-b38f-9b8

0305cc469.html".

PS C:\Users\tluk>

image

Review the log Enable-CSComputer-xxxxx-xxx-xxx.html that the cmdlet generates and look for an error similar to the following:

Error: The service name “<serviceName>” is already in use

An example of this could be:

Error: The service name “RTCATS” is already in use

Once the service is confirmed, execute the cmdlet sc delete RTCATS to remove the service:

image

Restart the server then proceed to rerun the Setup or Remove Skype for Business Server Components again:

image

No comments: