Central Management Store file replication is slow or incomplete in a Lync Server 2013 environment

This issue occurs when you use Microsoft Lync Server 2013 replication service to send configuration data to specified computers by running the Invoke-CsManagementStoreReplication cmdlet in PowerShell. When this issue occurs, many Lync Server 2013-related services may be affected. Additionally, you may receive the following event or similar:

Date: Date
Evvent ID: 2023
Level: Error
Source: LS Master Replicator Agent Service
Computer: Computer Name

Message: Failed to process replica status report. If this replica status is not up to date, Microsoft Lync Server 2013, Master Replicator Agent will request another status report from this replica.
Status report file: File path

Exception: [1205] System.Data.SqlClient.SqlException (0x80131904): Transaction (Process ID 79) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.Rtc.Common.Data.DBCore.Execute(SprocContext sprocContext, SqlConnection sqlConnection, SqlTransaction sqlTransaction)

Cause: Possible reinstallation of Microsoft Lync Server 2013, Replica Replicator Agent on the replica.


Run Invoke-CsManagementStoreReplication cmdlet to force a replication.

To resolve this issue, install the February 2015 cumulative update for Lync Server 2013 core components.
More information
This issue occurs because an internal SQL script business logic error triggers SQL deadlock.

Article ID: 3034781 - Last Review: 03/10/2016 07:49:00 - Revision: 2.0

Microsoft Lync Server 2013

  • kbfix kbqfe kbsurveynew kbexpertiseinter KB3034781