Error "Failed to create the Credential Wallet replication channel" after Upgrading StoreFront to Version 3.0.0.44

Error "Failed to create the Credential Wallet replication channel" after Upgrading StoreFront to Version 3.0.0.44

book

Article ID: CTX201553

calendar_today

Updated On:

Description

After upgrading previous versions of StoreFront to version 3.0.0.44 the following issues can be seen.

Event Viewer > Applications and Services Logs > Citrix Delivery Services log:
Level: Error, Source: Citrix Credential Wallet Service, Event ID: 1, Task Category (2302)
Error Text: Failed to create the Credential Wallet replication channel
System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Credentials specified are not sufficient to carry requested operation. Please specify a valid value for Credentials.Peer.Certificate.
   at System.ServiceModel.Channels.PeerSecurityManager.ValidateCredentialSettings(PeerAuthenticationMode authenticationMode, Boolean signMessages, PeerCredential credential)
   at System.ServiceModel.Channels.PeerSecurityManager.Create(PeerAuthenticationMode authenticationMode, Boolean signMessages, BindingContext context, XmlDictionaryReaderQuotas readerQuotas)
   at System.ServiceModel.Channels.PeerChannelFactory`1..ctor(PeerTransportBindingElement bindingElement, BindingContext context, PeerResolver peerResolver)
   at System.ServiceModel.Channels.PeerTransportBindingElement.BuildChannelFactory[TChannel](BindingContext context)
   at System.ServiceModel.Channels.Binding.BuildChannelFactory[TChannel](BindingParameterCollection parameters)
   at System.ServiceModel.Channels.ServiceChannelFactory.BuildChannelFactory(ServiceEndpoint serviceEndpoint, Boolean useActiveAutoClose)
   at System.ServiceModel.ChannelFactory.CreateFactory()
   at System.ServiceModel.ChannelFactory.OnOpening()
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.ChannelFactory.EnsureOpened()
   at System.ServiceModel.DuplexChannelFactory`1.CreateChannel(InstanceContext callbackInstance, EndpointAddress address, Uri via)
   at Citrix.DeliveryServices.CredentialWallet.InMemory.Replication.MeshReplicationFactory.Create(IReplicationNode replicationNode)

Level: Warning, Source: Citrix Credential Wallet Service, Event ID: 9, Task Category (2302)
Error Text: The replication channel failed to open. Synchronisation is disabled.
NOTE: In certain access scenarios, for example, where a StoreFront Server Group is accessed by a native client without “sticky” load-balancing, intermittent enumeration and launching of XenApp and XenDesktop resources may fail.

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Resolution

IMPORTANT: Only StoreFront versions upgraded to 3.0.0.44 are impacted by this issue.
As this is a configuration only issue, it can be remediated by running the attached PowerShell script.
PS> .\FixupCredentialWallet.ps1
For a StoreFront Server Group deployment, run the above script on the primary server, and then use the StoreFront Administration Console to propagate the change to the other servers in the Server Group.

Problem Cause

During the upgrade process the Credential Wallet Service configuration file is incorrectly modified.

Detailed Explanation

The Credential Wallet Service uses a peer network to ensure that encrypted credentials are available on all the servers of a StoreFront Server Group. This mechanism uses certificate mutual authentication to secure the communication channels.
The upgrade process has defined the client certificate, but not the server certificate leading to the mutual authentication failing.
This is a configuration failure.

Diagnostics

The signature of this issue is the events, described above, appearing in the Event Log approximately every five minutes.

Issue/Introduction

Issues after upgrading StoreFront to Version 3.0.0.44 - (Credential Wallet issue)