Just updated a customer to WEM 1912. Was just running a refresh cache for the WEM agent and got the following - Cache sync failed with error: SyncFailed
In the debug I can see this:
11:17:24 Warning -> [Sync Client (PID:8888)] ChechCacheSyncMode() : Failed to get local database parameters. Exception: System.ArgumentException: Cannot get database instance id.
at Citrix.Wem.DBSync.Common.SyncDataExtension.GetDatabaseInstanceId(DbConnection connection)
at Citrix.Wem.DBSync.Client.Agent.SyncTask.ChechCacheSyncMode()
11:17:24 Event -> [Sync Client (PID:8888)] CloseLocalConnection() : Close local cache database...
11:17:24 Event -> [Sync Client (PID:8888)] DoSync() : Remove existing agent local cache database...
11:17:24 Event -> [Sync Client (PID:8888)] DoSync() : Create agent cache sync task. Sync timeout: 300s
11:17:26 Exception -> [Sync Client (PID:8888)] DoSync() : Dotmim.Sync.SyncException: Server unabled to process sync request. ---> System.ServiceModel.FaultException: Server unabled to process sync request.
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass7_0`1.<CreateGenericTask>b__0(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Citrix.Wem.DBSync.Client.Agent.AgentSyncProxyProvider.<SendRequestAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Citrix.Wem.DBSync.Client.Agent.AgentSyncProxyProvider.<GetChangeBatchAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dotmim.Sync.SyncAgent.<SynchronizeAsync>d__35.MoveNext()
--- End of inner exception stack trace ---
at Dotmim.Sync.SyncAgent.<SynchronizeAsync>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Dotmim.Sync.SyncAgent.<SynchronizeAsync>d__35.MoveNext()
11:17:26 Event -> [Sync Client (PID:8888)] CloseChannel() : Closing remote connection...
11:17:26 Exception -> [Sync Client (PID:8888)] Main() : Citrix.Wem.DBSync.Common.DBSyncException: Error happened while synchronizing agent cache.
at Citrix.Wem.DBSync.Client.Agent.SyncTask.DoSync(SyncMode mode)
at Citrix.Wem.DBSync.Client.Agent.SyncTask.Run()
at Citrix.Wem.DBSync.Client.Agent.SyncExecutor.Run()
at Citrix.Wem.DBSync.Client.Agent.Program.Main(String[] args)
11:17:26 Exception -> SyncCache() : Cache sync failed with error: SyncFailed
I have tried deleting the local databases which then get recreated but still get the same error.
Question
Paul Cross
Hi All.
Just updated a customer to WEM 1912. Was just running a refresh cache for the WEM agent and got the following - Cache sync failed with error: SyncFailed
In the debug I can see this:
11:17:24 Warning -> [Sync Client (PID:8888)] ChechCacheSyncMode() : Failed to get local database parameters. Exception: System.ArgumentException: Cannot get database instance id.
at Citrix.Wem.DBSync.Common.SyncDataExtension.GetDatabaseInstanceId(DbConnection connection)
at Citrix.Wem.DBSync.Client.Agent.SyncTask.ChechCacheSyncMode()
11:17:24 Event -> [Sync Client (PID:8888)] CloseLocalConnection() : Close local cache database...
11:17:24 Event -> [Sync Client (PID:8888)] DoSync() : Remove existing agent local cache database...
11:17:24 Event -> [Sync Client (PID:8888)] DoSync() : Create agent cache sync task. Sync timeout: 300s
11:17:26 Exception -> [Sync Client (PID:8888)] DoSync() : Dotmim.Sync.SyncException: Server unabled to process sync request. ---> System.ServiceModel.FaultException: Server unabled to process sync request.
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.<>c__DisplayClass7_0`1.<CreateGenericTask>b__0(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Citrix.Wem.DBSync.Client.Agent.AgentSyncProxyProvider.<SendRequestAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Citrix.Wem.DBSync.Client.Agent.AgentSyncProxyProvider.<GetChangeBatchAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dotmim.Sync.SyncAgent.<SynchronizeAsync>d__35.MoveNext()
--- End of inner exception stack trace ---
at Dotmim.Sync.SyncAgent.<SynchronizeAsync>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Dotmim.Sync.SyncAgent.<SynchronizeAsync>d__35.MoveNext()
11:17:26 Event -> [Sync Client (PID:8888)] CloseChannel() : Closing remote connection...
11:17:26 Exception -> [Sync Client (PID:8888)] Main() : Citrix.Wem.DBSync.Common.DBSyncException: Error happened while synchronizing agent cache.
at Citrix.Wem.DBSync.Client.Agent.SyncTask.DoSync(SyncMode mode)
at Citrix.Wem.DBSync.Client.Agent.SyncTask.Run()
at Citrix.Wem.DBSync.Client.Agent.SyncExecutor.Run()
at Citrix.Wem.DBSync.Client.Agent.Program.Main(String[] args)
11:17:26 Exception -> SyncCache() : Cache sync failed with error: SyncFailed
I have tried deleting the local databases which then get recreated but still get the same error.
Anyone got any suggestions?
Thanks, Paul.
Link to comment
13 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now