DDC Constantly Shows Event ID 505: The Citrix Config Sync Service Failed An Import

DDC Constantly Shows Event ID 505: The Citrix Config Sync Service Failed An Import

book

Article ID: CTX309137

calendar_today

Updated On:

Description

  • Error Event ID 505 is logged regularly on DDC's without any functional impact.

Log Name:      Application
Source:        Citrix ConfigSync Service
Date:          19-03-2021 10:20:23
Event ID:      505
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      xxx.com
Description:
The Citrix Config Sync Service failed an import.
Error Details:
Error importing configuration data into secondary Broker.
Unknown error occurred
Exception Position: ImportBrokerConfiguration.ps1:1394.
 
  • Issue is seen in Virtual Apps and Desktop 1912 LTSR, 1912 LTSR CU1, 1912 LTSR CU2
 
  • From DDC side CDF Traces captured while event ID 505 is logged, the below exception is seen:

758,1,2021/03/19 10:20:11:88828,4984,3196,HighAvailabilityService.exe,0,BrokerComponent,,0,,1,Information,"HA::StartSecondaryBrokerElectionProcess: starts with 3 peers",""

759,1,2021/03/1910:20:11:88869,4984,3196,HighAvailabilityService.exe,0,BrokerLhc,,0,,1,Information,"HA::StartElectionProcess on machine DDC1.COM, ranked 0 amongst 'DDC1.COM','DDC2.COM','DDC3.COM'",""

760,1,2021/03/1910:20:11:88911,4984,3196,HighAvailabilityService.exe,0,BrokerLhc,,0,,1,Information,"HA::SecondaryElection: My state: AwaitingAnswerMessage",""

761,1,2021/03/19
10:20:11:92868,4984,3196,HighAvailabilityService.exe,0,BrokerLhc,,0,,1,Error,"HA::StartElectionProcess caught: System.InvalidOperationException: The ChannelDispatcher at 'http://localhost/Citrix/CdsController/ISecondaryBrokerElection' with contract(s) '""ISecondaryBrokerElection""' is unable to open its IChannelListener. ---> System.InvalidOperationException: The ChannelDispatcher at 'http://localhost/Citrix/CdsController/ISecondaryBrokerElection' with contract(s) '""SecurityNegotiationContract""' is unable to open its IChannelListener. ---> System.InvalidOperationException: A registration already exists for URI 'http://localhost/Citrix/CdsController/ISecondaryBrokerElection'.

   at System.ServiceModel.Channels.UriPrefixTable`1.RegisterUri(Uri uri, HostNameComparisonMode hostNameComparisonMode, TItem item)





 

Resolution

Please upgrade to 1912CU3.

Problem Cause

Timing issue where in some cases, the code tries to instantiate a HighAvailabilityElector a second time, causing a URI registration conflict.