EWS calendar often out of sync

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

EWS calendar often out of sync

Michael Hirmke
Hi *,

I'm running evolution 3.24.2 against an Exchange Server 2016 using EWS
and I observe, that my Exchange Calendar and the local Evolution copy in
the cache often differ. Two things happen quite regularily: Items remain
in the Evolution cache, that already are deleted from the Exchange
calendar. And items suddenly appear twice in Evolution, although they
exist only once in Exchange.
When checking the calendar with Outlook, everything looks correct.

After killing the Evolution calendar processes, stopping Evolution,
deleting the calendar cache and starting Evolution again, the calendar
entries are matching those in Exchange for a short while, before the
problem rises again.

Anything I can do against it?

TIA.

Bye.
Michael.
--
Michael Hirmke
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EWS calendar often out of sync

Milan Crha
On Wed, 2017-06-21 at 14:02 +0200, Michael Hirmke wrote:
> Anything I can do against it?

        Hi,
I can recall only one issue with Exchange 2016 servers, it's
https://bugzilla.gnome.org/show_bug.cgi?id=771370
but that's pretty old and you have that fix in your evolution-ews for
sure.

It would need more debugging , thus if you can, could you file a bug in
GNOME bugzilla:
https://bugzilla.gnome.org/enter_bug.cgi?product=evolution-ews
where we can investigate further, without bothering users on the
mailing list whom are not interested in evolution-ews, please?

There can also depend whether the event is a one-time event, meeting or
recurring event, with or without modified (detached) instances.

As a starter, it would be interesting to run evolution-calendar-factory
from a command line with EWS debugging on and when the issue happens,
then check the log to see what the server returned. To be sure you have
the local cache in the correct state, remove its content first. The
whole steps would be like this:
a) close evolution
b) stop/kill an evolution-calendar-factory-subprocess process which
   has "--factory ews" as its argument. To list evolution processes
   you can use:
   $ ps ax  | grep evolution
   then kill the process with
   $ kill -TERM PID
   Kill only that single subprocess, not the factory itself, because
   that factory process can be automatically started (notably if you
   run GNOME Shell).
c) remove local cache in ~/.cache/evolution/calendar/
   You can pick particular subfolder, the one for the EWS calendar, or
   remove them all. The worse it'll download data for all calendars again
d) run the calendar factory with the EWS debugging on:
   $ EWS_DEBUG=1 /usr/libexec/evolution-calendar-factory -w &>log.txt
   Your distribution can have is stored elsewhere.
e) wait for ~5 seconds, thus the D-Bus service is fully registered. You
   might also see that the process ID of the process changed in
   the listing of the evolution processes and that there is only one
   evolution-calendar-factory process running.
f) run evolution and use it as before.
g) once you notice the out-of-sync state remember what event it was
   about. It's important to have easier searching in the log. You can
   also save it as iCalendar (in the context menu) and in that file
   is something called X-EVOLUTION-ITEMID, which is similarly
   important as the UID value. Having at least the Summary of the event
   is also good.

Please be aware that the log contains raw communication between the
server and the client, thus private information, which you probably do
not want to share in public (as it'll download your whole calendar,
then it means all the events you have there). Feel free to send such
log only to me, with a reference to that (to be entered) bug report in
the Subject, thus I'd not overlook it in my spam folder.

One note about seeing in Evolution already deleted items from the
server. The local content is updated either periodically (refresh
interval chosen by the EWS backend, not by the user), or, when "Listen
for server change notifications" is enabled, when the server supports
notifications and it had been possible to run it and when the server
sends the notification. You can initiate the refresh manually by right-
clicking the calendar and picking Refresh from the context menu.

        Bye,
        Milan
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EWS calendar often out of sync

Milan Crha
On Thu, 2017-06-22 at 09:33 +0200, Milan Crha wrote:
> Feel free to send such log only to me, with a reference to that (to
> be entered) bug report in the Subject, thus I'd not overlook it in my
> spam folder.

        Hi,
thanks for the log (had been sent to me privately).

I filled bug:
https://bugzilla.gnome.org/show_bug.cgi?id=784332
for it. You can see there a little explanation what the problem was.
Expect the fix for evolution-ews 3.24.4+, but please note that to have
the calendar show correct values you either might get received an
update of the event (when it changes on the server) or remove
corresponding
   ~/.cache/evolution/calendar/<ews-calendar-uid>/
cache with closed all evolution-calendar-factory-subprocess processes
(or at least the one with "--factory ews" argument). Then run evolution
and the cache will re-populated, this time will show up correctly in
the UI.

        Thanks and bye,
        Milan
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EWS calendar often out of sync

Michael Hirmke
Hi Milan,

>On Thu, 2017-06-22 at 09:33 +0200, Milan Crha wrote:
>> Feel free to send such log only to me, with a reference to that (to
>> be entered) bug report in the Subject, thus I'd not overlook it in my
>> spam folder.

> Hi,
>thanks for the log (had been sent to me privately).

>I filled bug:
>https://bugzilla.gnome.org/show_bug.cgi?id=784332
>for it. You can see there a little explanation what the problem was.

thx a lot!
But:
"There is no problem with events which are configured as no all day."

I have to check this again, but if I remember correctly, the same
happened for non all day events, too.
I'll send you another log plus ics file, if this happens after
installing the fixed version.

>Expect the fix for evolution-ews 3.24.4+, but please note that to have
>the calendar show correct values you either might get received an
>update of the event (when it changes on the server) or remove
>corresponding
>   ~/.cache/evolution/calendar/<ews-calendar-uid>/
>cache with closed all evolution-calendar-factory-subprocess processes
>(or at least the one with "--factory ews" argument). Then run evolution
>and the cache will re-populated, this time will show up correctly in
>the UI.

That was what I expected, so no problem :)

> Thanks and bye,
> Milan

Thx and bye.
Michael.
--
Michael Hirmke
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EWS calendar often out of sync

Milan Crha
On Thu, 2017-06-29 at 14:30 +0200, Michael Hirmke wrote:
> "There is no problem with events which are configured as no all day."
>
> I have to check this again, but if I remember correctly, the same
> happened for non all day events, too.
> I'll send you another log plus ics file, if this happens after
> installing the fixed version.

        Hi,
sure, please do. I tested both situations when trying the change and it
was what I've got. With the "all day" I meant the events which are
defined with date-only start/end times, which can be multi-day events
too. If you happen to reproduce with this change, then I'll be happy to
follow up.

Just to mention, release of 3.24.4 is planned on July 17th. I can help
to provide a test package for Fedora, but not for other distributions.
I guess if you have an account, then we can continue on that bug
report, rather than here.
        Bye,
        Milan
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EWS calendar often out of sync

Michael Hirmke
Hi Milan,

>On Thu, 2017-06-29 at 14:30 +0200, Michael Hirmke wrote:
>> "There is no problem with events which are configured as no all day."
>>
>> I have to check this again, but if I remember correctly, the same
>> happened for non all day events, too.
>> I'll send you another log plus ics file, if this happens after
>> installing the fixed version.

> Hi,
>sure, please do. I tested both situations when trying the change and it
>was what I've got. With the "all day" I meant the events which are
>defined with date-only start/end times, which can be multi-day events
>too. If you happen to reproduce with this change, then I'll be happy to
>follow up.

would be great, if you were right ;)

>Just to mention, release of 3.24.4 is planned on July 17th. I can help
>to provide a test package for Fedora, but not for other distributions.

So I have to wait, 'til openSUSE Tumbleweed ships that version.

>I guess if you have an account, then we can continue on that bug
>report, rather than here.

Ok, I'll follow up on this bug, if the problem remains.

> Bye,
> Milan

Thx and bye.
Michael.
--
Michael Hirmke
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EWS calendar often out of sync

Michael Hirmke
Hi again,

there are good news and bad news :)

>Hi Milan,

>>On Thu, 2017-06-29 at 14:30 +0200, Michael Hirmke wrote:
>>> "There is no problem with events which are configured as no all day."
>>>
>>> I have to check this again, but if I remember correctly, the same
>>> happened for non all day events, too.
>>> I'll send you another log plus ics file, if this happens after
>>> installing the fixed version.

>> Hi,
>>sure, please do. I tested both situations when trying the change and it
>>was what I've got. With the "all day" I meant the events which are
>>defined with date-only start/end times, which can be multi-day events
>>too. If you happen to reproduce with this change, then I'll be happy to
>>follow up.

>would be great, if you were right ;)

>>Just to mention, release of 3.24.4 is planned on July 17th. I can help
>>to provide a test package for Fedora, but not for other distributions.

>So I have to wait, 'til openSUSE Tumbleweed ships that version.

>>I guess if you have an account, then we can continue on that bug
>>report, rather than here.

>Ok, I'll follow up on this bug, if the problem remains.

Finally, my openSuSE Tumbleweed got evolution 3.24.4, so that I could
test against the described problem.
And - as it seems - the problem is gone!

So thx a lot for your help!

But for every good news there obviously have to be bad news:
Now I have the problem, that some invitations are duplicated, when they
were modified and resent from Outlook clients outside or inside my
Exchange organisation. Unfortunately I can't test it with other clients
than Outlook, cause I only have Evo and Outlook clients at home and also
at work.
I open a new thread for that problem.

>> Bye,
>> Milan

Bye.
Michael.
--
Michael Hirmke
_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Loading...