FIX: XenDesktop5.6: New Site Creation Error: Get-BrokerDBSchema : The server was unable to process the request due to an internal error.

Scenario:

You install XenDesktop 5.6 on a VM in virtual infrastructure (XenServer, VMware, etc) with operating system Windows Server 2008 R2 SP1, SQL 2012 Express edition along with ManagementObject hotfix.  Installation works fine and when you create new site, even without specifying virtual infrastructure host, the site creation process reports below error. This happens even when you install as local and/or domain administrator.

Exception:
System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation.
at Citrix.Console.Common.CallbackEventArguments.OperationCompleteSynchronizer`1.GetResults()
at Citrix.Console.Common.CallbackEventArguments.OperationCompleteSynchronizer`1.WaitForResults()
at Citrix.Console.DeliveryCenter.UI.Dialogs.FullDesktopDeploymentWizardViewModel.Commit()
at Citrix.Console.CommonControls.Wizard.ViewModel.PageContainerViewModel.CommitProgressOperation.PerformOperationInternal()

Inner exception:
System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation.
at Citrix.Console.InteractionCore.ThreadedScript`1.<ExecuteNext>d__9.MoveNext()
at Citrix.Console.InteractionCore.ScriptBase.<ExecuteImplementation>;d__1.MoveNext()
at Citrix.Console.InteractionCore.Scheduler.ExecuteNext(ScriptExecution execution)

Inner exception:
Citrix.Console.Models.CallbackEventArguments.ScriptException An unexpected exception occurred
at Citrix.Console.PowerShellInteraction.XDCommand.EndExecutionAndCheckErrors(ProgressModel progressModel)
at Citrix.Console.PowerShellInteraction.XDCommand.EndExecutionAndCheckErrors()
at Citrix.Console.PowerShellSdk.DatabaseService.Scripts.GenerateSchemasScript.<ExecuteNext>d__1.MoveNext()
at Citrix.Console.PowerShellInteraction.PowerShellScript`1.&lt;ExecuteNext>d__9.MoveNext()
at Citrix.Console.InteractionCore.ScriptBase.<ExecuteImplementation>;d__1.MoveNext()
at Citrix.Console.InteractionCore.Scheduler.ExecuteNext(ScriptExecution execution)

Script history:

02.04.2012 12:34:03
Get-ConfigDBSchema -DatabaseName ‘CitrixXenDesktopDB’ -ServiceGroupName ‘DEMO – Citrix’ -LocalDatabase -AdminAddress ‘localhost’
Get-AcctDBSchema -DatabaseName ‘CitrixXenDesktopDB’ -ServiceGroupName ‘DEMO – Citrix’ -LocalDatabase -AdminAddress ‘localhost’
Get-HypDBSchema -DatabaseName ‘CitrixXenDesktopDB’ -ServiceGroupName ‘DEMO – Citrix’ -LocalDatabase -AdminAddress ‘localhost’
Get-ProvDBSchema -DatabaseName ‘CitrixXenDesktopDB’ -ServiceGroupName ‘DEMO – Citrix’ -LocalDatabase -AdminAddress ‘localhost’
Get-pvsvmDBSchema -DatabaseName ‘CitrixXenDesktopDB’ -ServiceGroupName ‘DEMO – Citrix’ -LocalDatabase -AdminAddress ‘localhost’
Get-BrokerDBSchema -DatabaseName ‘CitrixXenDesktopDB’ -ServiceGroupName ‘DEMO – Citrix’ -LocalDatabase -AdminAddress ‘localhost’
Get-BrokerDBSchema : The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
+ CategoryInfo : NotSpecified: (:) Get-BrokerDBSchema, SdkOperationException
+ FullyQualifiedErrorId : Citrix.XDPowerShell.Broker.UnexpectedException,Citrix.Broker.Admin.SDK.GetBrokerDBSchemaCommand

Error data:
UnexpectedExceptionnCitrix.Broker.Admin.SDK.SdkOperationException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs. —> System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc8; rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Objecthttp://forums.citrix.com/ outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Objecthttp://forums.citrix.com/ outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData8; msgData, Int32 type)
at Citrix.Broker.Admin.SDK.IBrokerAdminService.GetDBSchema(String& schema, String scriptType, String databaseName, String serviceGroupName, Boolean isLocalDb, String sidString)
at Citrix.Broker.Admin.SDK.GetBrokerDBSchemaCommand.DoProcessRecord()
— End of inner exception stack trace —
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)

 

Cause:

The above error occurs due to problem with domain membership. The common case is that you have created this VM from a domain-joined template without running the sysprep.  Due to this when you create a VM from such  a template the VMs,  it results in multiple VMs having the same SID on the network.  Particularly NewSID functionality is not supported in Windows Server 2008 R2.

 

Fix:

Use SysPrep to change the SID of the VM created from the template and then the new site creation should work fine.

Leave a Reply

Your email address will not be published. Required fields are marked *