Google-account sync adds existing calendar entries

REPRODUCIBILITY (% or how often): always when standard calendar sync is not working
BUILD ID = OS VERSION (Settings > About product): 3.4
HARDWARE (Jolla1, Tablet, XA2,…): XA2
UI LANGUAGE:
REGRESSION: (compared to previous public release: Yes, No, ?):

DESCRIPTION:

All remote calendar events are added to the local calendar, independent of existence.

PRECONDITIONS:

Sync in calendar app is not working (I think this is a known issue, I guess due to a remotely deleted event)

STEPS TO REPRODUCE:

  1. Sync in Google-account settings

EXPECTED RESULT:

Only new events are added.

ACTUAL RESULT:

Many doubled/tribled/… events are shown in calendar .

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)

3 Likes

Thanks for the useful report. Would you be in a position to provide logs from msyncd for this? It could be very helpful. In case you are, something like this should allow you to collect them (over SSH):

devel-su -p
systemctl --user stop msyncd
MSYNCD_LOGGING_LEVEL=8 msyncd

Manually sync calendar, collect logs, then ^C to stop msyncd. Then restart it again as a daemon:

systemctl --user start msyncd

If you are able to do this, please carefully remove any personal info from the logs before sharing them.

2 Likes

I have the same issue with Jolla C and Xperia 10

The logs are around 23MiB - I can send it directly to you if necessary (it is not really possible to anonymize everything…).

In what follows you see the downloaded JSON event, which is related to the error messages (“requesting calendar events for Google account”):

[D] unknown:0 - trace:  "  {"
[D] unknown:0 - trace:  "   \"kind\": \"calendar#event\","
[D] unknown:0 - trace:  "   \"etag\": \"\\\"3109858037332000\\\"\","
[D] unknown:0 - trace:  "   \"id\": \"_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck_20090427T080000Z\","
[D] unknown:0 - trace:  "   \"status\": \"confirmed\","
[D] unknown:0 - trace:  "   \"htmlLink\": \"https://www.google.com/calendar/event?eid=XzZwaW04cGo2Y2dzajZiYjI3NHEzYWI5a2NrcWowYjlwY2dwbWNiOWljbGgzZWQxcDcwczNpZTFwY2tfMjAwOTA0MjdUMDgwMDAwWiB3b3NyZWRpaW5hbmF0b3VyQG0\","
[D] unknown:0 - trace:  "   \"created\": \"2009-03-18T17:19:01.000Z\","
[D] unknown:0 - trace:  "   \"updated\": \"2019-04-10T20:43:38.666Z\","
[D] unknown:0 - trace:  "   \"summary\": \"TITLE\","
[D] unknown:0 - trace:  "   \"location\": \"Auditorium Maximum\","
[D] unknown:0 - trace:  "   \"creator\": {"
[D] unknown:0 - trace:  "    \"email\": \"EMAIL\","
[D] unknown:0 - trace:  "    \"displayName\": \"NAME\","
[D] unknown:0 - trace:  "    \"self\": true"
[D] unknown:0 - trace:  "   },"
[D] unknown:0 - trace:  "   \"organizer\": {"
[D] unknown:0 - trace:  "    \"email\": \"EMAIL\","
[D] unknown:0 - trace:  "    \"displayName\": \"NAME\","
[D] unknown:0 - trace:  "    \"self\": true"
[D] unknown:0 - trace:  "   },"
[D] unknown:0 - trace:  "   \"start\": {"
[D] unknown:0 - trace:  "    \"dateTime\": \"2009-04-27T10:00:00+02:00\""
[D] unknown:0 - trace:  "   },"
[D] unknown:0 - trace:  "   \"end\": {"
[D] unknown:0 - trace:  "    \"dateTime\": \"2009-04-27T13:00:00+02:00\""
[D] unknown:0 - trace:  "   },"
[D] unknown:0 - trace:  "   \"recurringEventId\": \"_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck\","
[D] unknown:0 - trace:  "   \"originalStartTime\": {"
[D] unknown:0 - trace:  "    \"dateTime\": \"2009-04-27T10:00:00+02:00\""
[D] unknown:0 - trace:  "   },"
[D] unknown:0 - trace:  "   \"iCalUID\": \"6edffd93-b945-4e50-9d3f-2eb74988989e\","
[D] unknown:0 - trace:  "   \"sequence\": 0,"
[D] unknown:0 - trace:  "   \"reminders\": {"
[D] unknown:0 - trace:  "    \"useDefault\": true"
[D] unknown:0 - trace:  "   }"
[D] unknown:0 - trace:  "  },"

1) Sync in calendar app: Afterward calendar app does not show any change.

[D] unknown:0 - debug:  Event added remotely: "_ehqiqtj1cdgn8qbfdomkcb9i60o3ibpg6knj4c9d68o30e9f60qiuchh"
[D] unknown:0 - debug:  Event added remotely: "_60q30c1g60o30e1i60o4ac1g60rj8gpl88rj2c1h84s34h9g60s30c1g60o30c1g8co3ad226p130di16sr46e9g64o30c1g60o30c1g60o30c1g60o32c1g60o30c1g6923gcpg8or32hhi6p1j6e1k8p13ce1j60o4ae1o6oqjegi48cog"
[D] unknown:0 - debug:  not adding default reminder even though requested: not popup or invalid start offset.
[D] unknown:0 - debug:  Event added remotely: "_60q30c1g60o30e1i60o4ac1g60rj8gpl88rj2c1h84s34h9g60s30c1g60o30c1g6go4cgpk74pjch1g6ook6e9g64o30c1g60o30c1g60o30c1g60o32c1g60o30c1g60q34dq384s44cq38d24ac1k70sk6d258crj0dhg8d0k8d226so0"
[D] unknown:0 - debug:  not adding default reminder even though requested: not popup or invalid start offset.
[D] unknown:0 - debug:  Event added remotely: "_60q30c1g60o30e1i60o4ac1g60rj8gpl88rj2c1h84s34h9g60s30c1g60o30c1g6go38h1g8cq4chhl71246e9g64o30c1g60o30c1g60o30c1g60o32c1g60o30c1g8cq34ea260rjgcpn6h2jccpk84s48cpl8cpk6d9j612j6g9j8opg"
[D] unknown:0 - debug:  not adding default reminder even though requested: not popup or invalid start offset.
[D] unknown:0 - debug:  Persistent occurrence added remotely: "_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck_20090427T080000Z"
W] unknown:0 - ERROR:  Cannot find parent event: "_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck" for persistent occurrence: "_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck_20090427T080000Z"
[D] unknown:0 - debug:  Event added remotely: "_74s34dpo6sr3icg_20190101"
[D] unknown:0 - debug:  Event added remotely: "_74p3echn6sqjgc0_20181226"
[D] unknown:0 - debug:  Event added remotely: "_74r38e1o6oo3edg_20181225"
[D] unknown:0 - debug:  Event added remotely: "_74ojce9p60r3ac8_20181026"
[D] unknown:0 - info :  Error occurred while applying remote changes locally
[D] unknown:0 - info :  performing ghost event cleanup

2) Snyc in Google-account settings: New events are added, existing ones are added too.

Note that there are many
Preformatted text[D] unknown:0 - debug: not adding default reminder even though requested: not popup or invalid start offset.

D] unknown:0 - debug:  not adding default reminder even though requested: not popup or invalid start offset.
[D] unknown:0 - debug:  Event added remotely: "_60q30c1g60o30e1i60o4ac1g60rj8gpl88rj2c1h84s34h9g60s30c1g60o30c1g6go4cgpk74pjch1g6ook6e9g64o30c1g60o30c1g60o30c1g60o32c1g60o30c1g60q34dq384s44cq38d24ac1k70sk6d258crj0dhg8d0k8d226so0"
[D] unknown:0 - debug:  not adding default reminder even though requested: not popup or invalid start offset.
[D] unknown:0 - debug:  Event added remotely: "_60q30c1g60o30e1i60o4ac1g60rj8gpl88rj2c1h84s34h9g60s30c1g60o30c1g6go38h1g8cq4chhl71246e9g64o30c1g60o30c1g60o30c1g60o32c1g60o30c1g8cq34ea260rjgcpn6h2jccpk84s48cpl8cpk6d9j612j6g9j8opg"
[D] unknown:0 - debug:  not adding default reminder even though requested: not popup or invalid start offset.
[D] unknown:0 - debug:  Persistent occurrence added remotely: "_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck_20090427T080000Z"
[W] unknown:0 - ERROR:  Cannot find parent event: "_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck" for persistent occurrence: "_6pim8pj6cgsj6bb274q3ab9kckqj0b9pcgpmcb9iclh3ed1p70s3ie1pck_20090427T080000Z"
[D] unknown:0 - debug:  Event added remotely: "_74s34dpo6sr3icg_20190101"
[D] unknown:0 - debug:  Event added remotely: "_74p3echn6sqjgc0_20181226"
[D] unknown:0 - debug:  Event added remotely: "_74r38e1o6oo3edg_20181225"
[D] unknown:0 - debug:  Event added remotely: "_74ojce9p60r3ac8_20181026"
[D] unknown:0 - info :  Error occurred while applying remote changes locally
[D] unknown:0 - Exiting event loop
[D] unknown:0 - Stopping msyncd
[W] unknown:0 - Invalid reply for getSyncResults from plugin
[W] unknown:0 - Invalid reply for uninit from plugin
[D] unknown:0 - Stopping the OOP process for  "google-calendars"
[D] unknown:0 - Process  "/usr/lib/buteo-plugins-qt5//oopp/google-calendars-client"  finished with exit code 2

Note that I have subscribed several own and shared Google accounts.

1 Like

Thanks for the logs, that’s really helpful. Thanks also for the offer to send the full logs. I can see the problem anonymising 23Mb of logs :slight_smile: , so it’s probably best if you don’t send them for now.

From the logs you posted, it looks like some of these issues will be fixed in the next release, but it’s not clear to me whether they all will, or whether this will avoid the duplicated events you’ve been experiencing.

It would be good if you could please double check this after the next update. In the meantime, we have an internal bug logged about it (which doesn’t guarantee it will get fixed, but definitely helps).

2 Likes

Good to know. Most annoying thing about the duplicate G events are the multiple alarms you have to dismiss daily. That starts f’ing with your mind.

Yes, but it is also annoying to have the list of next events which is filled by only one event… So you have to open the calendar app and scroll a bit to have more information.

Thank you for the update, I hope it will be fixed also. :slight_smile:

No improvements with 4.0.1 release.

I’m afraid not all of the fixes for this made it in in time for this release, but they should be in the next. You can follow progress here in case you’re interested, or fancy building the rpms to install yourself.

2 Likes

Thx for the info and the link. And mainly: for the work! Looks quite good!

Don’t worry, it was just a notice and I’m not disappointed. :wink:
Glad to see the progress on this topic. Do you know if there is a RPM with your fix to test it? I’m interested to check if everything works as expected (and removing painful notifications also :smiley: ).

1 Like

So, I can confirm the latest update fixes it, it’s really nice to get the right behaviour again. :slight_smile:

Thank you.

Post Kvarken update, I re-enabled my work Google calendar: still 4 entries display for every event.

Nothing seems to be improved. Do I have to re-create my Google account for any updates to take, or…?

EDIT seems to have taken some time, but eventually it self-cleaned up!

On my side I didn’t disable Google Calendar sync, and few time after the update all redundant events were cleaned to keep only one entry per event. But it took few minutes to do it.

Indeed, I think I can confirm that it takes X amount of time, but it eventually gets there.

Calendar now looks sane here as well :+1:

2 Likes