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

Error when upgrading from 7.15 LTSR CU6 to 1912 cu2, Failed to update the database automatically


Question

3 answers to this question

Recommended Posts

  • 0

 

I get This.

 

image.thumb.png.74cb5906634bfc22028d20cab6a1a8d7.png

 

Configuration Databases

 

image.thumb.png.f32c0d6fe4f1a93983369cd901b4d8c1.png

 

A year ago the database host was changed and the Citrix procedures were followed.

 

When trying this failed update only in the secondary controller, both controllers lost the studio configuration, perform the rollback without restoring the copy of the database because it assumed that no action was performed on it and when turning on the machines again, start studio in the Primary controller and it asked me to automatically update the database, I completed the process and the studio configuration came back. But now it won't let me create new catalogs or add machines to existing catalogs.

 

The permissions on the database are with sysadmin

 

Error Add machine Catalogue:

 

Task Information:
Start Date: miércoles, 14 de abril de 2021
Start Time: 13:30
Finish Date: miércoles, 14 de abril de 2021
Finish Time: 13:30
State: Failed
Requested machine count: 1
AD account action: Create accounts
Successful accounts: 0
Successful machines: 0

Terminating Error:
Unexpected error. Contact Citrix Support.
Stack Trace:
   at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ICommonLog logger, ExecutionResults`1 results, ICmdletExecutionHost host)
   at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)
   at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.UpdateIdentityPoolTask.RunTask()
   at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run()

DesktopStudio_ErrorId : ExceptionThrown
Exception : System.NullReferenceException: Object reference not set to an instance of an object.
   at Citrix.ADIdentity.Logic.ADIdentityLogic.SetIdentityPool(IList`1 loggingDetails, String identityPoolName, Guid identityPoolUid, String namingScheme, Boolean setNamingScheme, ADIdentityNamingScheme namingSchemeType, Boolean setNamingSchemeType, Int32 startCount, Boolean setStartCount, String domain, Boolean setDomain, String ou, Boolean setOU, Boolean allowUnicode, Boolean passThru, IdentityPool& identityPoolObject)
   at Citrix.ADIdentity.WcfService.<>c__DisplayClass42_0.<SetIdentityPool>b__0()
   at Citrix.Fma.Sdk.ServiceCore.ServiceCore.CheckedCall[T](String name, Func`1 operation, Func`2 defaultValue, Enum code)
Reason : NullReferenceException
Message : Object reference not set to an instance of an object.
Sdk Error Message : An exception occurred.  The associated message was Object reference not set to an instance of an object.
Sdk Error ID : Citrix.XDPowerShell.Status.ExceptionThrown,Citrix.ADIdentity.Sdk.Commands.SetAcctIdentityPoolCommand
ErrorCategory : NotSpecified
DesktopStudio_PowerShellHistory : Adds 1 Machines to Machine Catalog 'W10-PL-MCS'
14/04/2021 13:30:09

Get-LogSite  -AdminAddress "madricpd1xdb00.tragsa.es:80"
Start-LogHighLevelOperation  -AdminAddress "madricpd1xdb00.tragsa.es:80" -Source "Studio" -StartTime "14/04/2021 11:30:09" -Text "Adds 1 Machines to Machine Catalog `'W10-PL-MCS`'"
Get-AcctIdentityPool  -AdminAddress "madricpd1xdb01.tragsa.es:80" -IdentityPoolName "W10-PL-MCS" -MaxRecordCount 2147483647
Set-AcctIdentityPool  -AdminAddress "madricpd1xdb01.tragsa.es:80" -AllowUnicode -Domain "tragsa.es" -IdentityPoolName "W10-PL-MCS" -LoggingId "1ad3748a-b94b-4003-bc3e-26a745f863c7"
Set-AcctIdentityPool : An exception occurred.  The associated message was Object reference not set to an instance of an object.
    + CategoryInfo : InvalidOperation: (:) [Set-AcctIdentityPool], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.ExceptionThrown,Citrix.ADIdentity.Sdk.Commands.SetAcctIdentityPoolCommand

 

Error when Create New Catalogue:

 

ask Information:
Start Date: jueves, 15 de abril de 2021
Start Time: 12:57
Finish Date: jueves, 15 de abril de 2021
Finish Time: 12:57
State: Failed
Master image: XDHyp:\HostingUnits\Nutanix-Shared\SEDE-W10-TEC-PL-MCS.vm\v1.0_29_03_20.snapshot\v1.1_29_03_20.snapshot\v1.2_29_03_20.snapshot\v1.3_03_04_20.snapshot\v1.4_05_06_20.snapshot\v1.5_09_10_20.snapshot\v1.6_04_01_21.snapshot\v1.7_02_02_21.snapshot\v1.8_09-02-21.snapshot\v1.9_24-02-21.snapshot\v2.0_24-02-21.snapshot\v2.1_11-03-21.snapshot\v2,2_11-04-21.snapshot\v2.3_15-04-21.snapshot
Requested machine count: 1
AD account action: Create accounts
Successful accounts: 0
Successful machines: 0

Terminating Error:
Cannot communicate with the database. Check that the database is running and that it is not being upgraded. Make sure you have permission to access the database.
Stack Trace:
   at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ICommonLog logger, ExecutionResults`1 results, ICmdletExecutionHost host)
   at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)
   at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.IdentityPoolCreationTask.CreateIdentityPoolName(IdentityPoolModel identityPoolProperties)
   at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run()

DesktopStudio_ErrorId : DataStoreException
SqlErrorText : IdentityPoolCreate: Procedure or function 'IdentityPoolCreate' expects parameter '@ZoneUid', which was not supplied.
SqlErrorNumber : 201
ConnectionString : Data Source=MABD05SQL01;Initial Catalog=Xendesktop_bd;Integrated Security=True;Application Name=Citrix:ADIdentity
DataSource : MABD05SQL01
Sdk Error Message : The database configured for this service is an invalid state. The operation could not be completed as the Database configured for the CitrixADIdentityService service is not available or cannot be contacted. Check that the service database is running, verify your credentials and ensure you have permissions to access the database and that the database is not being upgraded. Hint: A DALDataStoreException occurred.
Sdk Error ID : Citrix.XDPowerShell.Status.DataStoreException,Citrix.ADIdentity.Sdk.Commands.NewAcctIdentityPoolCommand
ErrorCategory : NotSpecified
DesktopStudio_PowerShellHistory : Create Machine Catalog 'W10-TEC-PL-MCS-CYPE'
15/04/2021 12:57:42

Get-LogSite  -AdminAddress "madricpd1xdb00.tragsa.es:80"
Start-LogHighLevelOperation  -AdminAddress "madricpd1xdb00.tragsa.es:80" -Source "Studio" -StartTime "15/04/2021 10:57:42" -Text "Create Machine Catalog `'W10-TEC-PL-MCS-CYPE`'"
New-BrokerCatalog  -AdminAddress "madricpd1xdb01.tragsa.es:80" -AllocationType "Random" -IsRemotePC $False -LoggingId "cb6790df-ada1-4ffa-abdf-50911d5b0836" -MinimumFunctionalLevel "L7_9" -Name "W10-TEC-PL-MCS-CYPE" -PersistUserChanges "Discard" -ProvisioningType "MCS" -Scope @("ControlUp","Administrar VDI por HelpDesk") -SessionSupport "SingleSession" -ZoneUid "78010283-e93b-4538-8747-52f8a55dfd86"
New-AcctIdentityPool  -AdminAddress "madricpd1xdb01.tragsa.es:80" -AllowUnicode -Domain "tragsa.es" -IdentityPoolName "W10-TEC-PL-MCS-CYPE" -LoggingId "cb6790df-ada1-4ffa-abdf-50911d5b0836" -NamingScheme "VD-603000##" -NamingSchemeType "Numeric" -OU "OU=Dinamicas,OU=VDI-CITRIX,OU=MAQUINAS,OU=DT00_SUBSISTINFO,OU=TRAGSA,DC=tragsa,DC=es" -Scope @("ControlUp","Administrar VDI por HelpDesk")
New-AcctIdentityPool : The database configured for this service is an invalid state. The operation could not be completed as the Database configured for the CitrixADIdentityService service is not available or cannot be contacted. Check that the service database is running, verify your credentials and ensure you have permissions to access the database and that the database is not being upgraded. Hint: A DALDataStoreException occurred.
    + CategoryInfo : InvalidOperation: (:) [New-AcctIdentityPool], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.DataStoreException,Citrix.ADIdentity.Sdk.Commands.NewAcctIdentityPoolCommand

 

 

 

 

 

 

 

Edited by Humberto Ruiz
Text bad
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...