Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronization errors from CalDavSynchronizer when used with Outlook and EteSync.dav #298

Open
NJCLous opened this issue Jul 12, 2023 · 9 comments

Comments

@NJCLous
Copy link

NJCLous commented Jul 12, 2023

Hi Tom,

I use EteSync to synchronize contacts, calendar and task from a Windows 11 laptop to an Android 13 mobile. On the laptop I run Outlook (automatically updated to the latest version) with CalDavSynchronizer 4.4.1. All was well until a couple of days ago when CalDavSynchronizer started showing "Synchronization Reports" containing the following error message:

"CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '500' ('Internal Server Error'). Message: A server error occurred. Please contact the administrator."

Similar error messages occur for calendar, contacts and tasks but they are intermittent.

I opened the CalDavSynchronizer profiles and used the "Test or discover settings" buttons to check the connection to the local EteSync server. Sometimes I get "Connection test successful", but intermittently the connection doesn't work and I get "Response status code does not indicate success: '500' ('Internal Server Error'). Message: A server error occurred. Please contact the administrator".

I can access EteSync DAV Management (0.31.2) via my browser. EteSync.dav is running locally.

When I visit https://pim.etesync.com/wizard I get a warning "Important - Network request failed" with a button marked "Retry" which leads to the same warning. When I click the hamburger menu top-left and choose "Collections" I get a rotating disc for a long while but eventually my collections do show up - although sometimes they don't and I need to refresh the page a couple of times.

An example of a full CalDavSynchronizer report is included below.

Can you please investigate? Your help is much appreciated!

Thanks and best regards,

Niels

Sample CalDavSynchronizer report:

CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '500' ('Internal Server Error'). Message:
A server error occurred. Please contact the administrator.
at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.d__10.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 CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.d__9.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 CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.d__7.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 CalDavSynchronizer.DataAccess.CardDavDataAccess.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at CalDavSynchronizer.DataAccess.CardDavDataAccess.d__17.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 CalDavSynchronizer.Implementation.Contacts.CardDavEntityRepository3.<GetAllVersions>d__5.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 CalDavSynchronizer.Implementation.Contacts.LoggingCardDavRepositoryDecorator.<GetAllVersions>d__6.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 GenSync.EntityRepositories.VersionAwareToStateAwareEntityRepositoryAdapter4.d__5.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 GenSync.EntityRepositories.Decorators.StateAwareEntityRepositoryRunInBackgroundDecorator4.<GetFullRepositoryState>d__2.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 GenSync.Synchronization.Synchronizer11.d__27.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 GenSync.Synchronization.ContextCreatingSynchronizerDecorator`7.d__3.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 CalDavSynchronizer.Scheduling.SynchronizationProfileRunner.d__22.MoveNext()

@NJCLous
Copy link
Author

NJCLous commented Jul 13, 2023

Hi again...

I've been trying to work out what's wrong.

First, I wondered if my Outlook pst file was corrupted. Scanpst.exe, the Windows tool to sort this out, reported a few minor errors. I ran scanpst.exe repeatedly until the pst file was completely OK.

The "server error 500" messages from CalDavSynchronizer, when trying to sync with the EteSync local server, persisted.

I though perhaps the EteSync database on my laptop was corrupted. I stopped etesync.dav and deleted all database files from C:\Users<Username>\AppData\Local\Etesync. I then restarted etesync.dav, re-added myself as a user, and set up the CalDavSynchronizer connection details again. This recreated the database files.

Aver several attempts (with intermittent "server error 500" messages) I managed to get my Tasks and Contacts to sync locally. Trying to sync the Outlook Calendar with EteSync locally brings up a pop-up "Processing chunk #1 - executing 100 operations". My Outlook calendar has over 900 entries and the whole attempt took well over an hour before breaking off. Checking the logs showed that several hundred events had synched, but then the "server error 500" messages started and further chunks weren't processed.

Could it be that the EteSync server is overloaded, causing time-outs and error messages?

Help urgently required - for now I can't sync between my laptop and my phone.

Thanks and best regards,

Niels

@NJCLous
Copy link
Author

NJCLous commented Jul 14, 2023

I've now also tried removing my account from pim.etesync.com as well as from my phone and laptop, then started setup from scratch - but the "server error 500" messages persist.

@tx3eh8IUD1
Copy link

tx3eh8IUD1 commented Jul 14, 2023

I get similar errors, with a completely fresh setup:

CalDavSynchronizer.DataAccess.WebDavClientException: Response status code does not indicate success: '500' ('Internal Server Error'). Message:
A server error occurred.  Please contact the administrator.
   at CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<EnsureSuccessStatusCode>d__10.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 CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequest>d__9.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 CalDavSynchronizer.DataAccess.HttpClientBasedClient.WebDavClient.<ExecuteWebDavRequestAndReturnResponseHeaders>d__8.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 CalDavSynchronizer.DataAccess.CardDavDataAccess.<CreateNewEntity>d__14.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 CalDavSynchronizer.Implementation.Contacts.CardDavEntityRepository`3.<Create>d__13.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 CalDavSynchronizer.Implementation.Contacts.LoggingCardDavRepositoryDecorator.<Create>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.<PerformOperations>d__3.MoveNext()

@NJCLous
Copy link
Author

NJCLous commented Jul 20, 2023

Good news - my "server error 500" messages started getting less frequent a day or two ago, until Contacts and Tasks synchronised without errors every time and only Calendar kept failing. I deleted all my collections from the EteSync server and built them up again from scratch, just to be sure. I case of my Calendar, which has just under 1000 items, this took almost 24 hours so I guessed there was still a bottleneck at a server somewhere - but it worked. Things are now back to normal. Fingers crossed - and thanks if anyone at EteSync sorted something out behind the scenes!

I'll close this issue this weekend unless tx3eh8IUD1 still has the same problem.

@NJCLous NJCLous closed this as completed Jul 22, 2023
@NJCLous
Copy link
Author

NJCLous commented Dec 17, 2023

Hi Tom,

I'm afraid this issue has returned - I get error messages as described in this thread each time EteSync tries to synchronise. Can you please check if all is as it should be at your end? I run Windows 11 with all latest updates and haven't changed any EteSync settings - so I would expect normal synchronisation.

Thanks and best wishes,

Niels

@NJCLous NJCLous reopened this Dec 17, 2023
@NJCLous
Copy link
Author

NJCLous commented Dec 17, 2023

I just noticed I can't login to https://pim.etesync.com/login either - I get an error message "Network request failed". Logging in to http://localhost:37358/.web/login/ results in "Temporary server error". This is very annoying! Is there anywhere where I can see the EteSync server status, or any connection/database issues?

@ImranR98
Copy link

I just noticed I can't login to https://pim.etesync.com/login either - I get an error message "Network request failed". Logging in to http://localhost:37358/.web/login/ results in "Temporary server error".

Same here. Is the service down?

@NJCLous
Copy link
Author

NJCLous commented Dec 18, 2023

I was hoping to reset my account to try and resolve the sync errors - but trying to log in via https://www.etesync.com/ leads to an error page "502 Bad Gateway". I can sign in to the old EteSync 1.0 dashboard - which encourages using the 2.0 dashboard which is inaccessible.

Checking the CalDavSynchronizer "Status" in the Outlook plugin I can see that contacts and tasks do synchronise, but not the calendar.

Any help is much appreciated!

@tasn
Copy link
Member

tasn commented Dec 20, 2023

Yes, the 502 is unrelated, we are fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants