Cannot join Server Group - Error occurred running the command: Start-DSClusterJoinService

Cannot join Server Group - Error occurred running the command: Start-DSClusterJoinService

book

Article ID: CTX478491

calendar_today

Updated On:

Description

When trying to add Storefront server to existing group, getting error: 

image.png

When checking event viewer logs on Storefront server, we see: 
 

An error occurred running the command: 'Start-DSClusterJoinService'

Exception of type 'Citrix.DeliveryServices.Framework.Deployment.Utilities.Exceptions.ServiceAlreadyInstalledException' was thrown.

At C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\ClusterConfigurationModule.psm1:1116 char:21

+    $instance = Add-DSClusterService -Folder $instanceFolder `

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

Exception of type 'Citrix.DeliveryServices.Framework.Deployment.Utilities.Exceptions.ServiceAlreadyInstalledException' was thrown.

 

Citrix.DeliveryServices.PowerShell.Command.RunnerInterfaces.Exceptions.PowerShellExecutionException, Citrix.DeliveryServices.PowerShell.Command.RunnerInterfaces, Version=3.23.0.0, Culture=neutral, PublicKeyToken=e8b77d454fa2a856

An error occurred running the command: 'Start-DSClusterJoinService'

Exception of type 'Citrix.DeliveryServices.Framework.Deployment.Utilities.Exceptions.ServiceAlreadyInstalledException' was thrown.

At C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\ClusterConfigurationModule.psm1:1116 char:21

+    $instance = Add-DSClusterService -Folder $instanceFolder `

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

 

 

System.Management.Automation.ActionPreferenceStopException, System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Exception of type 'Citrix.DeliveryServices.Framework.Deployment.Utilities.Exceptions.ServiceAlreadyInstalledException' was thrown.

System.Management.Automation.Interpreter.InterpretedFrameInfo: System.Management.Automation.Interpreter.InterpretedFrameInfo[]

  at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)

  at Citrix.DeliveryServices.PowerShell.Command.Runner.PowerShellCommandRunner.InvokeCommand(IPowerShellCommand command, Command powerShellCommand)

  at Citrix.DeliveryServices.PowerShell.Command.Runner.PowerShellCommandRunner.RunCommand(IPowerShellCommand command)

Resolution

To resolve this issue, you will need to create a new default Website in IIS. 

To do this, open IIS Manager on the storefront server. Right-click on the Sites node in the left-hand pane and selecting Add Website.

Once new default website has been created, you should then be able to add Storefront to server group. 

Problem Cause

After running Storefront verbose logs and checking event viewer logs we could see the following error: 

No IIS web site found with Id: 1
Exceptions.PowerShellExecutionException: An error occurred running the command: 'Set-DSJoinClusterEnvironment' No IIS web site found with Id: 1

Based on the error signature, it appears that there is an issue with the IIS web site on the Citrix Storefront server. The error message "No IIS web site found with Id: 1" suggests that the Storefront server is unable to locate the default IIS web site, which is causing the failure to join the server group.
 

Issue/Introduction

Unable to add new storefront server to server group