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

Citrix ConfigSync Service Event ID 505 "GenerateCmdletParameterSplatHash"


Rob Treweek

Question

 

Just completed an migration of XenApp 6.5 to 7.15 LTSR CU2 via 7.12 - to allow the successful import of Applications and Policies properties.

 

Since enabling Local Host Cache the below event is occurring roughly every 1 minute!

 

The Citrix Config Sync Service failed an import. 

 

Error details: 

Cannot find an overload for "GenerateCmdletParameterSplatHash" and the argument count: "5".

 

So, I ran "New-ItemProperty -Path HKLM:\SOFTWARE\Citrix\DesktopServer\LHC -Name EnableCssTraceMode -PropertyType DWORD -Value 1" but the html report isn't providing the help I expected...

 

2018-07-04T08:35:53===========================

2018-07-04T08:35:53Calling New-BrokerTag:

2018-07-04T08:35:53    Name: Type="System.String", Value="zz_test"

2018-07-04T08:35:53    UUID: Type="System.String", Value="ff17f489-43fb-4168-94b7-3d801afb9145"

2018-07-04T08:35:53Exception: System.Management.Automation.MethodException: Cannot find an overload for "GenerateCmdletParameterSplatHash" and the argum↵
                ent count: "5". at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array↵
                 input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context) at System.Management.Automation.Stateme↵
                ntListNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context) at System.Manag↵
                ement.Automation.TryStatementNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext conte↵
                xt)

 

This is the last section of the report and the Broker Tag mentioned "zz_test" is an additional Tag created to see if it was the previous Tag causing the issue but it wasn't.

 

Any guidance or suggestion would be very much appreciated.

Thanks.

Rob.

Link to comment

10 answers to this question

Recommended Posts

  • 4

Exactly same is the case for me when i upgrade my XenApp 7.15 LTSR CU2 to XenApp 7.15 LTSR CU3. post upgrade, i can see these 3 event sin the Application event logs very frequently...

 

Event ID 3109

Event ID 2003

Event ID 505

 

"The Citrix Config Sync Service failed an import. Error details: Unknown error occurred"

 

Information outlined in citrix KB https://support.citrix.com/article/CTX230775?recommended   doesnt help much as i dont have any orphaned / broken SID...

 

~~~~

$PublishedApps = Get-BrokerApplication | where {$_.AssociatedUserNames -like "S-1*"}
Foreach ($App in $PublishedApps)
{
Write-Host " _" $app.Name "is broken"
}

~~~~

 

Both Solution 1 & 2  didnt help much, as i am getting error when i ran "SqlLocalDB.exe stop CitrixHA"

 

- So i simply stopped Citrix High Availability Service and  (Only steps 4,7 & 8 in CTX 230775)

- deleted both HADatabaseName.* and HAImportDatabase.* from C:\windows\ServiceProfiles\NetworkService

- started Citrix High Availability Service and

- rebooted delivery controller

 

Followed the same for the other controller as well.

 

After doing this issue got fixed

 

Thanks

 

  • Like 4
Link to comment
  • 2

Interestingly when i upgrade my XenDesktop 7.15 LTSR  CU2 to CU3, i faced the issue again in importing the updated config sync action.

 

~~~~

The Citrix Config Sync Service failed an import. 
 
Error details: 1
Unknown error occurred

~~~~

 

and 

 

~~~~

The Citrix Config Sync Service failed an import. 
 
Error details: 2
Cannot validate argument on parameter 'PublishedName'. The string contains illegal characters: all ASCII control characters are disallowed and the following characters are invalid: /;:#.*?=<>|[]()"'\

 

~~~~

 

Based on the error message both the solutions prescribed in the KB https://support.citrix.com/article/CTX230775 did not work for Error details: 1  (Though i have cleared orphaned SIDs)

 

and for the Error detals: 2, i had an unique issue, were its a manual error...

 

As the event rightly pointed out, Published name parameter for one the desktop resource name has a special character as display name " ' Test Desktop" instead of " Test Desktop", after correcting the published name, event 505 specific to that error was gone, but still "Unknown error occurred" error was appearing preventing LHC to create (Config sync service) HaDatabase* mdf and ldf file, instead HaImportDatabase* mdf and ldf file is created grow till 20 MB and then removed automatically. this keeps on repeating...

 

Note: Powershell execution policy was set to remote signed and Orphaned SIDs were already cleared.

 

 

  • Like 2
Link to comment
  • 2

Good News...

 

I was able to fix the issue, but this issue not due to permission. It looks strange but, issue is fixed for me. The reason I was confident that its not related to permission was that, one of the server in the site was working while other 3 with the same NTFS permissions and policy is not working. That’s the reason why I was hesitant to add NETWORK SERVICE permissions mentioned in the Citrix KB.

 

In all the 3 non working  controllers, I have removed the *.ldf file (HaDatabaseName_log.ldf and HaImportdatabaseName_log.ldf), but in all 3 CTX KB articles the file to be removed was mentioned as *.mdf (HADatabaseName.*, HAImportDatabaseName.*), so did not deleted the *.ldf files. After removing the *.ldf files everything started working as expected.

 

Note: This is applicable for issue with Error (This is not due to Orphaned SIDs). May the Article should be changed / Modified to delete *.mdf and *.ldf files for this specific error message

 

~~~~

The Citrix Config Sync Service failed an import. 
 
Error details: 1
Unknown error occurred

~~~~

  • Like 2
Link to comment
  • 0

Log from non working XD SQL local DB error.log (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\CitrixHA)

 

2019-01-24 00:54:11.14 spid12s     Starting up database 'tempdb'.
2019-01-24 00:54:11.37 spid17s     The Service Broker endpoint is in disabled or stopped state.
2019-01-24 00:54:11.37 spid17s     The Database Mirroring endpoint is in disabled or stopped state.
2019-01-24 00:54:11.40 spid17s     Service Broker manager has started.
2019-01-24 00:54:11.40 spid7s      Recovery is complete. This is an informational message only. No user action is required.
2019-01-24 00:54:11.43 spid51      Error: 17204, Severity: 16, State: 1.
2019-01-24 00:54:11.43 spid51      FCB::Open failed: Could not open file C:\Windows\ServiceProfiles\NetworkService\HaImportDatabaseName.mdf for file number 0.  OS error: 2(The system cannot find the file specified.).
2019-01-24 00:54:11.44 spid51      Starting up database 'HaImportDatabaseName'.
2019-01-24 00:54:11.45 spid51      Error: 17204, Severity: 16, State: 1.
2019-01-24 00:54:11.45 spid51      FCB::Open failed: Could not open file C:\Windows\ServiceProfiles\NetworkService\HaImportDatabaseName.mdf for file number 1.  OS error: 2(The system cannot find the file specified.).
2019-01-24 00:54:11.47 spid51      Error: 17207, Severity: 16, State: 1.
2019-01-24 00:54:11.47 spid51      FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'C:\Windows\ServiceProfiles\NetworkService\HaImportDatabaseName_log.ldf'. Diagnose and correct the operating system error, and retry the operation.
2019-01-24 00:54:11.47 spid51      Setting database option OFFLINE to ON for database 'HaImportDatabaseName'.
2019-01-24 00:55:53.08 spid51      Setting database option OFFLINE to ON for database 'HaImportDatabaseName'.
2019-01-24 00:55:53.09 spid51      Setting database option ONLINE to ON for database 'HaImportDatabaseName'.
2019-01-24 00:55:53.09 spid51      Starting up database 'HaImportDatabaseName'.
2019-01-24 00:55:53.09 spid51      Error: 17204, Severity: 16, State: 1.

 

Could not start Service Broker for database id: 5. A problem is preventing SQL Server from starting Service Broker. Check the SQL Server error log for additional messages.

 

Procmon logs

 

~~~~

Date & Time:    1/24/2019 12:54:11 AM
Event Class:    File System
Operation:    DeviceIoControl
Result:    INVALID PARAMETER
Path:    C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\CitrixHA\templog.ldf
TID:    5196
Duration:    0.0000031
Control:    IOCTL_MOUNTDEV_QUERY_DEVICE_NAME


Date & Time:    1/24/2019 12:55:13 AM
Event Class:    File System
Operation:    CreateFile
Result:    NAME INVALID
Path:    C:\Program Files\Citrix\ConfigSync\ConfigSync.ps1
TID:    8952
Duration:    0.0000165
Desired Access:    Read Attributes, Synchronize
Disposition:    Open
Options:    Synchronous IO Non-Alert, Open Reparse Point
Attributes:    N
ShareMode:    Read, Write
AllocationSize:    n/a

~~~~

 

Log from working XA 

 

2019-01-09 13:35:33.25 Server      Node configuration: node 0: CPU mask: 0x0000000000000001:0 Active CPU mask: 0x0000000000000001:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2019-01-09 13:35:33.26 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2019-01-09 13:35:33.26 Server      Database Instant File Initialization: disabled. For security and performance considerations see the topic 'Database Instant File Initialization' in SQL Server Books Online. This is an informational message only. No user action is required.
2019-01-09 13:35:33.28 Server      Software Usage Metrics is disabled.
2019-01-09 13:35:33.34 spid11s     Starting up database 'master'.
2019-01-09 13:35:33.36 Server      CLR version v4.0.30319 loaded.
2019-01-09 13:35:33.66 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2019-01-09 13:35:33.72 spid11s     SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2019-01-09 13:35:33.72 spid11s     SQL Server Audit has started the audits. This is an informational message. No user action is required.
2019-01-09 13:35:33.97 spid11s     SQL Trace ID 1 was started by login "sa".
2019-01-09 13:35:34.00 spid11s     Server name is '006\LOCALDB#6F071A2E'. This is an informational message only. No user action is required.
2019-01-09 13:35:34.03 spid12s     Starting up database 'mssqlsystemresource'.
2019-01-09 13:35:34.04 spid14s     Server local connection provider is ready to accept connection on [ \\.\pipe\LOCALDB#6F071A2E\tsql\query ].
2019-01-09 13:35:34.05 spid11s     Starting up database 'msdb'.
2019-01-09 13:35:34.05 spid14s     Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the trace flag 7806. This is an informational message only. No user action is required.
2019-01-09 13:35:34.05 spid14s     SQL Server is now ready for client connections. This is an informational message; no user action is required.
2019-01-09 13:35:34.05 spid12s     The resource database build version is 12.00.5000. This is an informational message only. No user action is required.
2019-01-09 13:35:34.32 spid12s     Starting up database 'model'.
2019-01-09 13:35:34.38 spid12s     Clearing tempdb database.
2019-01-09 13:35:36.22 spid12s     Starting up database 'tempdb'.
2019-01-09 13:35:37.22 spid17s     The Service Broker endpoint is in disabled or stopped state.
2019-01-09 13:35:37.22 spid17s     The Database Mirroring endpoint is in disabled or stopped state.
2019-01-09 13:35:37.57 spid17s     Service Broker manager has started.
2019-01-09 13:35:37.57 spid11s     Recovery is complete. This is an informational message only. No user action is required.
2019-01-09 13:35:40.49 spid51      Starting up database 'HaImportDatabaseName'.
2019-01-09 13:35:41.81 spid51       index restored for HaImportDatabaseName.syspriorities.
2019-01-09 13:35:42.07 spid51       index restored for HaImportDatabaseName.sysowners.
2019-01-09 13:35:42.07 spid51       index restored for HaImportDatabaseName.sysdbreg.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.sysschobjs.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.syscolpars.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.sysxlgns.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.sysxsrvs.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.sysnsobjs.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.syscerts.
2019-01-09 13:35:42.08 spid51       index restored for HaImportDatabaseName.sysrmtlgns.

 

 

 

Finally going to try the steps mentioned in 

https://docs.citrix.com/en-us/citrix-virtual-apps-desktops/manage-deployment/local-host-cache.html#par_anchortitle_23d6

 

under Troubleshoot section

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...