Jump to content
Welcome to our new Citrix community!
  • 0

Unable to create hosting connection for Nutanix AHV.


shrikant padole

Question

Hi All,

While adding connection and resources hosting for Nutanix AHV I am getting below error.

I have checked that all services are OK and not found any error in monitoring.

Error Id: XDDS:91C27AF8

Exception:

Citrix.Orchestration.Base.LogicModels.Exceptions.ScriptException Cannot communicate with the database.

at Citrix.Orchestration.Base.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ICommonLog logger, ExecutionResults`1 results, ICmdletExecutionHost host)

at Citrix.Orchestration.Base.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)

at Citrix.Orchestration.Base.PowerShellInteraction.FmaSdkServiceBase.GetControllerAndVersionInformation(ICmdletExecutionHost cmdletExecutionHost)

at Citrix.Orchestration.Base.PowerShellInteraction.SdkServiceBase.GetUseableControllers(ICmdletExecutionHost cmdletExecutionHost)

at Citrix.Orchestration.Base.PowerShellSdk.HypervisorService.Scripts.TestHypervisorConnectionScript.RunScript()

at Citrix.Orchestration.Base.PowerShellInteraction.PowerShellScript`1.Run()

at Citrix.Console.Hypervisors.UI.Pages.HypervisorDetailsPageViewModelBase.ValidatePage()

at Citrix.Console.CommonControls.Wizard.PageContainerViewModel.<>c__DisplayClass15_0.<ValidateAndMoveToPage>b__0()

DesktopStudio_ErrorId : DatabaseError

Exception : System.NullReferenceException: Object reference not set to an instance of an object.

at Citrix.Fma.Sdk.Filtering.TypeCache.<>c__DisplayClass3_0`2.<CastAndInvoke>b__0(Object t, Object o)

at Citrix.Fma.Sdk.Filtering.TypeCache.SetProperty(Object instance, String property, Object value)

at Citrix.Fma.Sdk.Filtering.SdkObjectReader.ReadSdkObject(DbDataReader db)

at Citrix.Fma.Sdk.Filtering.FilteringDal.GetCommonReader(Func`2 reader, Int32 maxResultCount, Object[]& sdkObjects, DbDataReader query)

at Citrix.Fma.Sdk.Filtering.FilteringDal.GetCommonTx(CdsTx txProvider, String query1, String query2, IEnumerable`1 sqlParameters, Func`2 reader, Nullable`1 sqlQueryTimeout, Int32 maxResultCount, Boolean returnTotalAvailableResultCount, Int32& totalAvailableResultCount, Object[]& sdkObjects)

at Citrix.Fma.Sdk.Filtering.FilteringDal.<>c__DisplayClass0_1.<GetCommon>b__0(CdsTx tx)

at Citrix.Fma.Sdk.Dal.BaseTxProvider.RunBatch(CdsTx tx, CdsTxAction txAction, String txName, Int32 retryNumber, Exception& originalException)

at Citrix.Fma.Sdk.Dal.BaseTxProvider.Execute(String txName, CdsTxOptions txOptions, CdsTxAction txAction)

at Citrix.Fma.Sdk.Filtering.FilteringDal.GetCommon(ICdsTxProvider txProvider, String query1, String query2, IEnumerable`1 sqlParameters, Func`2 reader, Nullable`1 sqlQueryTimeout, Int32 maxResultCount, Boolean returnTotalAvailableResultCount, Int32& totalAvailableResultCount, Object[]& sdkObjects)

at Citrix.Fma.Sdk.Filtering.FilteringLogic.GetCommon(IQuerySchemaProvider schemaProvider, ICdsTxProvider txProvider, String operationName, IDictionary`2 arguments, String groupByProperty, ScopeList scopeIds, Nullable`1 sqlCommandTimeout, Int32 skip, Int32 maximumResultCount, Boolean returnTotalAvailableResultCount, Int32& totalAvailableResultCount, Object[]& records)

at Citrix.Fma.Sdk.ServiceCore.CommonCmdlets.CommonCmdletsDal.CommonGetLogicDefault(String operationName, IDictionary`2 arguments, String groupByProperty, Guid[] gettableScopeIds, Int32 skip, Int32 maximumResultCount, Boolean returnTotalAvailableResultCount, Int32& totalAvailableResultCount, Object[]& records)

at Citrix.Fma.Sdk.ServiceCore.CommonCmdlets.CommonCmdletsDal.CommonGetLogicDispatcher(String operationName, IDictionary`2 arguments, String groupByProperty, Guid[] gettableScopeIds, Int32 skip, Int32 maximumResultCount, Boolean returnTotalAvailableResultCount, Object[] extensionData, Int32& totalAvailableResultCount, Object[]& records)

at Citrix.Fma.Sdk.ServiceCore.CommonCmdlets.CommonCmdletsDal.CommonGetLogic(String operationName, IDictionary`2 arguments, String groupByProperty, Guid[] gettableScopeIds, Int32 skip, Int32 maximumResultCount, Boolean returnTotalAvailableResultCount, Object[] extensionData, Int32& totalAvailableResultCount, Object[]& records)

Sdk Error Message : A database operation failed and could not be recovered : Reason Object reference not set to an instance of an object.

Sdk Error ID : Citrix.XDPowerShell.Status.DatabaseError,Citrix.Host.Sdk.Management.Commands.GetHypServiceCommand

ErrorCategory : NotSpecified

DesktopStudio_PowerShellHistory : TestHypervisorConnectionScript

8/20/2019 2:23:22 PM

Get-HypService -AdminAddress "den3cxctrl01.datavail.local:80" -BearerToken ******** -MaxRecordCount 2147483647

Get-HypService : A database operation failed and could not be recovered : Reason Object reference not set to an instance of an object.

+ CategoryInfo : InvalidOperation: (:) [Get-HypService], InvalidOperationException

+ FullyQualifiedErrorId : Citrix.XDPowerShell.Status.DatabaseError,Citrix.Host.Sdk.Management.Commands.GetHypServiceCommand

Link to comment

2 answers to this question

Recommended Posts

  • 0

Have you installed the Nutanix plugin on the Delivery Controller(s)?

 

https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-15-ltsr/install-configure/install-prepare/nutanix.html

 

Quote

Follow this guidance when using Nutanix Acropolis to provide virtual machines in your XenApp or XenDesktop deployment. The setup process includes the following tasks:

  • Install and register the Nutanix plugin in your XenApp or XenDesktop environment.
  • Create a connection to the Nutanix Acropolis hypervisor.

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...