The synchronization was interrupted. Please try again.server error, please contact your server administrator

Hi survey team, I have a problem with synchronization , but i don’t know what’s the real problem.
The syn process in APK interviewer interrupted because of the server.
Since the Windows server R12 cloud server was used in the process, i have never been in this situation before. And I am not an expert in IT, so please tell me what’s the real problem and how to solve it if you know that.

Thank you very much!

Try the link suggested in the message for more information on this error.

Thank you for your response, but I have tried it. The four categories of the problem can not match the situation.

Does any other tablet work with the same server?

You may need to contact your server administrator for assistance as there are no details here to start unfolding what might be a reason for this problem.

Thank u for your response, I don’t know if the “log” document helpful?


09:37:43[EnumeratorAuditLogService][Info][SynchronizationStarted {"SynchronizationType":"Online","Type":"SynchronizationStarted"}]
09:37:46[EnumeratorAuditLogService][Info][SynchronizationFailed {"ExceptionMessage":"服务器错误。请与您的服务器管理员联系。","StackTrace":"  at WB.Core.SharedKernels.Enumerator.Implementation.Services.EnumeratorSynchronizationService.TryGetRestResponseOrThrowAsync[T] (System.Func`1[TResult] restRequestTask) [0x0008f] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.QuestionnaireDownloader.DownloadQuestionnaireAsync (WB.Core.SharedKernels.DataCollection.Implementation.Entities.QuestionnaireIdentity questionnaireIdentity, WB.Core.SharedKernels.Enumerator.Views.SynchronizationStatistics statistics, System.IProgress`1[T] transferProgress, System.Threading.CancellationToken cancellationToken) [0x00571] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.AssignmentsSynchronizer.SynchronizeAssignmentsAsync (System.IProgress`1[T] progress, WB.Core.SharedKernels.Enumerator.Views.SynchronizationStatistics statistics, System.Threading.CancellationToken cancellationToken) [0x002b5] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.AbstractSynchronizationProcess.Synchronize (System.IProgress`1[T] progress, System.Threading.CancellationToken cancellationToken, WB.Core.SharedKernels.Enumerator.Views.SynchronizationStatistics statistics) [0x0012d] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.AbstractSynchronizationProcess.SynchronizeAsync (System.IProgress`1[T] progress, System.Threading.CancellationToken cancellationToken) [0x005bb] in <70526ba8bd224b6d85f66f11d8360155>:0 ","Type":"SynchronizationFailed"}]
09:37:52[NearbyConnection][Info][[STOP ALL]]

17:45:28[QuestionnaireDownloader][Debug][Get categories for questionnaire ba0a5724ec204a8bbe2ea4b2fd938c5c$1. 0 categories with 0 sum of items.]
17:45:28[RestService][Debug][ExtendedMessageHandlerException]WB.Core.Infrastructure.HttpServices.HttpClient.ExtendedMessageHandlerException: Request GET http://114.117.210.39/primary/api/interviewer/v2/questionnaires/ba0a5724-ec20-4a8b-be2e-a4b2fd938c5c/1/32 failed with status code 500 (Internal Server Error).
  at WB.Core.Infrastructure.HttpServices.HttpClient.ExtendedMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0011e] in <0300a31d6e1542519679923df0e090df>:0 
  at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in <3ab97adc469048029b91f4dbf8384ccb>:0 
  at WB.Core.Infrastructure.HttpServices.Services.RestService.ExecuteRequestAsync (System.String url, System.Net.Http.HttpMethod method, System.Object queryString, System.Net.Http.HttpContent httpContent, WB.Core.Infrastructure.HttpServices.HttpClient.RestCredentials credentials, System.Boolean forceNoCache, System.Collections.Generic.Dictionary`2[TKey,TValue] customHeaders, System.Nullable`1[T] userCancellationToken) [0x003f7] in <0300a31d6e1542519679923df0e090df>:0 |MoveNextRunner.InvokeMoveNext => <ExecuteRequestAsync>d__11.MoveNext => NLogLogger.Debug
17:45:28[MvxPlugin][Trace][Nothing registered for messages of type DashboardChangedMsg]
17:45:28[EnumeratorAuditLogService][Info][SynchronizationFailed {"ExceptionMessage":"服务器错误。请与您的服务器管理员联系。","StackTrace":"  at WB.Core.SharedKernels.Enumerator.Implementation.Services.EnumeratorSynchronizationService.TryGetRestResponseOrThrowAsync[T] (System.Func`1[TResult] restRequestTask) [0x0008f] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.QuestionnaireDownloader.DownloadQuestionnaireAsync (WB.Core.SharedKernels.DataCollection.Implementation.Entities.QuestionnaireIdentity questionnaireIdentity, WB.Core.SharedKernels.Enumerator.Views.SynchronizationStatistics statistics, System.IProgress`1[T] transferProgress, System.Threading.CancellationToken cancellationToken) [0x00571] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.AssignmentsSynchronizer.SynchronizeAssignmentsAsync (System.IProgress`1[T] progress, WB.Core.SharedKernels.Enumerator.Views.SynchronizationStatistics statistics, System.Threading.CancellationToken cancellationToken) [0x002b5] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.AbstractSynchronizationProcess.Synchronize (System.IProgress`1[T] progress, System.Threading.CancellationToken cancellationToken, WB.Core.SharedKernels.Enumerator.Views.SynchronizationStatistics statistics) [0x0012d] in <70526ba8bd224b6d85f66f11d8360155>:0 \n  at WB.Core.SharedKernels.Enumerator.Implementation.Services.Synchronization.AbstractSynchronizationProcess.SynchronizeAsync (System.IProgress`1[T] progress, System.Threading.CancellationToken cancellationToken) [0x005bb] in <70526ba8bd224b6d85f66f11d8360155>:0 ","Type":"SynchronizationFailed"}]
17:45:42[DashboardActivity][Trace][Pause]
17:45:42[DashboardActivity][Trace][Stop]
17:45:42[MvxPlugin][Trace][Removing subscription 12b57a9a-38aa-47a1-9aea-202ab3e3a465]
17:45:42[MvxPlugin][Trace][Nothing registered for messages of type MvxSubscriberChangeMessage]
17:45:42[MvxPlugin][Trace][Removing subscription baec8ab6-42d1-4717-b7b5-1306fc3885c7]
17:45:42[MvxPlugin][Trace][Nothing registered for messages of type MvxSubscriberChangeMessage]

Yes, it shows that the following query to the server has generated an error on the server:

The client would not know more, but the server log should contain the detailed information on what error occurred on the server. See the bottom of the page Data Server Errors

Also I see that your server is using http protocol. For security reasons please use https instead.

Thanks for your quick response, since i am not an expert in IT, I do not know the real problem in this case.
And thank you very much for your kind remind of the exchange of “https”, but i think it is not the key problem that cause the headache error in server.
Is this “log” in server helpful?

2021-12-07 10:52:59.866 +08:00 [ERR] Connection id “0HMDP3K2NSO20”, Request id “0HMDP3K2NSO20:0000000C”: An unhandled exception was thrown by the application.
System.UnauthorizedAccessException: Access to the path ‘C:\Windows\TEMP\ASPNETCORE_4b17dc95-e451-414b-84ca-1d40c02dfa5c.tmp’ is denied.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Microsoft.AspNetCore.WebUtilities.FileBufferingWriteStream.EnsureFileStream()
at Microsoft.AspNetCore.WebUtilities.FileBufferingWriteStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Microsoft.AspNetCore.WebUtilities.HttpResponseStreamWriter.Write(Char[] values, Int32 index, Int32 count)
at Newtonsoft.Json.Utilities.JavaScriptUtils.WriteEscapedJavaScriptString(TextWriter writer, String s, Char delimiter, Boolean appendDelimiters, Boolean[] charEscapeFlags, StringEscapeHandling stringEscapeHandling, IArrayPool`1 bufferPool, Char[]& writeBuffer)
at Newtonsoft.Json.JsonTextWriter.WriteEscapedString(String value, Boolean quote)
at Newtonsoft.Json.JsonWriter.WriteValue(JsonWriter writer, PrimitiveTypeCode typeCode, Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()

It looks like Survey Solutions tried to create a temporary file in your temporary directory C:\Windows\Temp\, but was not allowed to do so.

THX!!
How can i solve this problem?

  1. make sure that folder exists and the process has the permissions to write there.

Or

  1. set up an environment variable ASPNETCORE_TEMP to point to a different folder (if #1 can’t be done).

Thank you so much!
I have solve the problem

Could you please describe what was the exact step taken that solved the problem for the others that may find themselves in a similar situation?

Okay, it is my pleasure to share the solution to the specific problem.
Since the Survey solutions created a temporary file in the C:\Windows\Temp, but the server denied.
I opened the attribute of “temp” like pic in the following, and then add the button that allow the app access.


Great!

Thank you for sharing!

Good luck with the survey!