Bug 334412 - Data of Akonadi Google are not synced
Summary: Data of Akonadi Google are not synced
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: 4.13
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-06 12:01 UTC by Vojtěch Zeisek
Modified: 2018-02-01 09:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vojtěch Zeisek 2014-05-06 12:01:05 UTC
KOorganizer does not show all Google calendars I have checked in the resources settings. Also, new events created in KOrganizer (or edited, e.g. checking task as done) are not synced to Google. Similar with contacts. New contacts added to Google resource in KAddressBook are not synced to Google. There is no error reported. If I browse the resource in Akonadi Console, I see the event or contact, but it doesn't have Remote Id. There does not seem to be any errors in Debugger of Akonadi Console. Interesting is, that remote changes and added events and contacts are downloaded. The problem doesn't happen in 100 % of cases, sometimes local changes are synced, but it is not reliable.
I don't know if it is related, but when I try to modify some Akonadi Google resources, I get an error "Bad request" and when trying to synchronize them, I see error "Failed to refresh tokens".
There is also last problem. I don't know if related. KAddressBook does not show contact pictures for all contacts.
I tried to remove and recreate affected resource, but no success. There are some changes, but general state is same.
I checked kdewallet and contacts and calendars and tasks Google are connected and Akonadi Google folder contains expected data.

Reproducible: Always

Actual Results:  
Local changes in Google contacts, calendars and tasks are not synced and some calendars are not displayed, not all contact pictures are downloaded.

Expected Results:  
All on-line data are retrieved and syncing works in both directions with all data.

$ uname -a
Linux veles.site 3.11.10-7-desktop #1 SMP PREEMPT Mon Feb 3 09:41:24 UTC 2014 (750023e) x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE project
Description:    openSUSE 13.1 (Bottle) (x86_64)
Release:        13.1
Codename:       Bottle
Comment 1 Cédric Bellegarde 2014-05-21 07:50:25 UTC
Can confirme this bug on Kubuntu 14.04.

It works, you reboot and it stops working.

In akonadiconsole -> raw payload, i can see event with an id and no remote id.

Restarting akonadi fix issue temporaly:
AgentBase(akonadi_googlecalendar_resource_2): Invalid item payload.
AgentBase(akonadi_googlecalendar_resource_2): Invalid item payload.
Comment 2 Cédric Bellegarde 2014-05-22 10:18:58 UTC
0x2081a60 * OK Akonadi Almost IMAP Server [PROTOCOL 37] 
korganizer-1431355191 (0x2071870) 2 UID TAGFETCH 1:* (UID) 
korganizer-1431355191 (0x2071870) 2 OK UID TAGFETCH completed 
0x2081a60 0 LOGIN "contactsCompletionSession" 
contactsCompletionSession (0x2081a60) 0 OK User logged in 
korganizer-1431355191 (0x2071870) 3 LIST 0 1 (MIMETYPE (text/calendar application/x-vnd.akonadi.calendar.event)) (STATISTICS true ANCESTORS INF) 
korganizer-1431355191 (0x2071870) * 25 0 (NAME "Dates de naissance et anniversaires" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "akonadi_birthdays_resource" REMOTEREVISION "" RESOURCE "akonadi_birthdays_resource" VIRTUAL 0 MESSAGES 9 UNSEEN 9 SIZE 6518 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"\" \"view-calendar-birthday\" \"\" ())" AccessRights "") 
korganizer-1431355191 (0x2071870) 3 OK List completed 
contactsCompletionSession (0x2081a60) 1 CAPABILITY (NOTIFY 3 NOPAYLOADPATH AKAPPENDSTREAMING SERVERSEARCH)
contactsCompletionSession (0x2081a60) 1 OK CAPABILITY completed 
korganizer-1431355191 (0x2071870) 4 LIST 0 INF (MIMETYPE (text/calendar application/x-vnd.akonadi.calendar.event)) (STATISTICS true ANCESTORS INF) 
korganizer-1431355191 (0x2071870) * 25 0 (NAME "Dates de naissance et anniversaires" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "akonadi_birthdays_resource" REMOTEREVISION "" RESOURCE "akonadi_birthdays_resource" VIRTUAL 0 MESSAGES 9 UNSEEN 9 SIZE 6518 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"\" \"view-calendar-birthday\" \"\" ())" AccessRights "") 
korganizer-1431355191 (0x2071870) * 24 22 (NAME "Calendrier" MIMETYPE (application/x-vnd.akonadi.calendar.journal application/x-vnd.akonadi.calendar.todo application/x-vnd.akonadi.calendar.event inode/directory application/x-vnd.akonadi.calendar.freebusy) REMOTEID "https://adishatz.org/cal/caldav.php/gnumdk/calendar/" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_0" VIRTUAL 0 MESSAGES 62 UNSEEN 62 SIZE 107724 CACHEPOLICY (INHERIT true INTERVAL 10 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((22 "akonadi_davgroupware_resource_0") (0 "")) AccessRights "a" davprotocol "0") 
korganizer-1431355191 (0x2071870) * 22 0 (NAME "akonadi_davgroupware_resource_0" MIMETYPE (inode/directory) REMOTEID "akonadi_davgroupware_resource_0" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_0" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL 10 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS (ALL)) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"Davical\" \"folder-remote\" \"\" ())" AccessRights "WCD") 
korganizer-1431355191 (0x2071870) * 54 53 (NAME "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" REMOTEREVISION "1400681739" RESOURCE "akonadi_googlecalendar_resource_2" VIRTUAL 0 MESSAGES 33 UNSEEN 33 SIZE 13059 CACHEPOLICY (INHERIT true INTERVAL 60 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS ()) ANCESTORS ((53 "RootCollection") (0 "")) ENTITYDISPLAY "(\"Nous\" \"view-calendar\" \"\" ())" defaultReminders "[ ]" AccessRights "wcdW" BlockAlarmsAttribute "
korganizer-1431355191 (0x2071870) * 53 0 (NAME "gnumdk@gmail.com" MIMETYPE (inode/directory) REMOTEID "RootCollection" REMOTEREVISION "" RESOURCE "akonadi_googlecalendar_resource_2" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT false INTERVAL 60 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS ()) ANCESTORS ((0 "")) ENTITYDISPLAY "(\"gnumdk@gmail.com\" \"im-google\" \"\" ())" AccessRights "C") 
korganizer-1431355191 (0x2071870) 4 OK List completed 
korganizer-1431355191 (0x2071870) 5 X-AKAPPEND 54 0 (\MimeType[application/x-vnd.akonadi.calendar.event] "\\Gid[5bdffb63-5f48-4002-b609-7cbbe84f3445]") ( PLD:RFC822 {374} 
korganizer-1431355191 (0x2071870) + Ready for literal data (expecting 374 bytes) 
korganizer-1431355191 (0x2071870) 5 [UIDNEXT 9201 DATETIME "22-May-2014 10:17:26 +0000"] 
korganizer-1431355191 (0x2071870) 5 OK Append completed 
ETMCalendar (0x20175c0) 43 LSUB 54 0 () (ANCESTORS INF) 
ETMCalendar (0x200f1d0) 43 LSUB 54 0 () (ANCESTORS INF) 
ETMCalendar (0x200f1d0) * 54 53 (NAME "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" REMOTEREVISION "1400681739" RESOURCE "akonadi_googlecalendar_resource_2" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 60 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS ()) ANCESTORS ((53 "RootCollection") (0 "")) ENTITYDISPLAY "(\"Nous\" \"view-calendar\" \"\" ())" defaultReminders "[ ]" AccessRights "wcdW" BlockAlarmsAttribute "
ETMCalendar (0x200f1d0) 43 OK List completed 
ETMCalendar (0x20175c0) * 54 53 (NAME "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" REMOTEREVISION "1400681739" RESOURCE "akonadi_googlecalendar_resource_2" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 60 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS ()) ANCESTORS ((53 "RootCollection") (0 "")) ENTITYDISPLAY "(\"Nous\" \"view-calendar\" \"\" ())" defaultReminders "[ ]" AccessRights "wcdW" BlockAlarmsAttribute "
ETMCalendar (0x20175c0) 43 OK List completed 
ETMCalendar (0x20175c0) 44 UID FETCH 9201 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID COLLECTIONID FLAGS SIZE REMOTEID REMOTEREVISION DATETIME ATR:ENTITYDISPLAY) 
ETMCalendar (0x200f1d0) 44 UID FETCH 9201 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID COLLECTIONID FLAGS SIZE REMOTEID REMOTEREVISION DATETIME ATR:ENTITYDISPLAY) 
ETMCalendar (0x20175c0) * 9201 FETCH (UID 9201 REV 0 REMOTEID "" MIMETYPE "application/x-vnd.akonadi.calendar.event" COLLECTIONID 54 SIZE 374 DATETIME "22-May-2014 10:17:26 +0000" FLAGS () PLD:RFC822 {374} BEGIN:VCALENDAR PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN VERSION:2.0 X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0 BEGIN:VEVENT DTSTAMP:20140522T101721Z CREATED:20140522T101721Z UID:5bdffb63-5f48-4002-b609-7cbbe84f3445 LAST-MODIFIED:20140522T101721Z SUMMARY:test DTSTART;VALUE=DATE:20140522 DTEND;VALUE=DATE:20140523 TRANSP:OPAQUE END:VEVENT END:VCALENDAR) 
ETMCalendar (0x200f1d0) * 9201 FETCH (UID 9201 REV 0 REMOTEID "" MIMETYPE "application/x-vnd.akonadi.calendar.event" COLLECTIONID 54 SIZE 374 DATETIME "22-May-2014 10:17:26 +0000" FLAGS () PLD:RFC822 {374} BEGIN:VCALENDAR PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN VERSION:2.0 X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0 BEGIN:VEVENT DTSTAMP:20140522T101721Z CREATED:20140522T101721Z UID:5bdffb63-5f48-4002-b609-7cbbe84f3445 LAST-MODIFIED:20140522T101721Z SUMMARY:test DTSTART;VALUE=DATE:20140522 DTEND;VALUE=DATE:20140523 TRANSP:OPAQUE END:VEVENT END:VCALENDAR) 
ETMCalendar (0x20175c0) 44 OK UID FETCH completed 
ETMCalendar (0x200f1d0) 44 OK UID FETCH completed 
akonadi_baloo_indexer (0x209c800) 96 UID FETCH 9201 FULLPAYLOAD CACHEONLY IGNOREERRORS ANCESTORS 1 EXTERNALPAYLOAD (UID COLLECTIONID FLAGS SIZE DATETIME) 
akonadi_baloo_indexer (0x209c800) * 9201 FETCH (UID 9201 REV 0 MIMETYPE "application/x-vnd.akonadi.calendar.event" COLLECTIONID 54 SIZE 374 DATETIME "22-May-2014 10:17:26 +0000" FLAGS () ANCESTORS ((54 "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com")) PLD:RFC822 {374} BEGIN:VCALENDAR PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN VERSION:2.0 X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0 BEGIN:VEVENT DTSTAMP:20140522T101721Z CREATED:20140522T101721Z UID:5bdffb63-5f48-4002-b609-7cbbe84f3445 LAST-MODIFIED:20140522T101721Z SUMMARY:test DTSTART;VALUE=DATE:20140522 DTEND;VALUE=DATE:20140523 TRANSP:OPAQUE END:VEVENT END:VCALENDAR) 
akonadi_baloo_indexer (0x209c800) 96 OK UID FETCH completed 
ETMCalendar (0x2032460) 14 LSUB 54 0 () (ANCESTORS INF) 
ETMCalendar (0x2032460) * 54 53 (NAME "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" MIMETYPE (application/x-vnd.akonadi.calendar.event) REMOTEID "sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" REMOTEREVISION "1400681739" RESOURCE "akonadi_googlecalendar_resource_2" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 60 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS ()) ANCESTORS ((53 "RootCollection") (0 "")) ENTITYDISPLAY "(\"Nous\" \"view-calendar\" \"\" ())" defaultReminders "[ ]" AccessRights "wcdW" BlockAlarmsAttribute "
ETMCalendar (0x2032460) 14 OK List completed 
ETMCalendar (0x2032460) 15 UID FETCH 9201 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID COLLECTIONID FLAGS SIZE REMOTEID REMOTEREVISION DATETIME ATR:ENTITYDISPLAY) 
ETMCalendar (0x2032460) * 9201 FETCH (UID 9201 REV 0 REMOTEID "" MIMETYPE "application/x-vnd.akonadi.calendar.event" COLLECTIONID 54 SIZE 374 DATETIME "22-May-2014 10:17:26 +0000" FLAGS () PLD:RFC822 {374} BEGIN:VCALENDAR PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN VERSION:2.0 X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0 BEGIN:VEVENT DTSTAMP:20140522T101721Z CREATED:20140522T101721Z UID:5bdffb63-5f48-4002-b609-7cbbe84f3445 LAST-MODIFIED:20140522T101721Z SUMMARY:test DTSTART;VALUE=DATE:20140522 DTEND;VALUE=DATE:20140523 TRANSP:OPAQUE END:VEVENT END:VCALENDAR) 
ETMCalendar (0x2032460) 15 OK UID FETCH completed 
ETMCalendar (0x200f1d0) 45 STATUS 54 (MESSAGES UNSEEN SIZE) 
ETMCalendar (0x200f1d0) * STATUS "gnumdk@gmail.com/sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" (MESSAGES 34 UNSEEN 34 SIZE 13433) 
ETMCalendar (0x200f1d0) 45 OK STATUS completed 
AkonadiConsole Browser Widget (0x21839b0) 4 STATUS 54 (MESSAGES UNSEEN SIZE) 
AkonadiConsole Browser Widget (0x21839b0) * STATUS "gnumdk@gmail.com/sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" (MESSAGES 34 UNSEEN 34 SIZE 13433) 
AkonadiConsole Browser Widget (0x21839b0) 4 OK STATUS completed 
ETMCalendar (0x20175c0) 45 STATUS 54 (MESSAGES UNSEEN SIZE) 
ETMCalendar (0x20175c0) * STATUS "gnumdk@gmail.com/sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" (MESSAGES 34 UNSEEN 34 SIZE 13433) 
ETMCalendar (0x20175c0) 45 OK STATUS completed 
ETMCalendar (0x2032460) 16 STATUS 54 (MESSAGES UNSEEN SIZE) 
ETMCalendar (0x2032460) * STATUS "gnumdk@gmail.com/sn4s0p0dt231m0c4ihkhoccf6g@group.calendar.google.com" (MESSAGES 34 UNSEEN 34 SIZE 13433) 
ETMCalendar (0x2032460) 16 OK STATUS completed
Comment 3 Cédric Bellegarde 2014-05-22 10:21:54 UTC
>UID 9201 REV 0 REMOTEID ""

REMOTEID seems to be empty in logs...
Comment 4 Cédric Bellegarde 2014-05-22 11:05:28 UTC
For information, it works with Davcal and https://support.google.com/calendar/answer/99358
Comment 5 Vojtěch Zeisek 2014-05-26 09:30:17 UTC
When I restart Akonadi, I see in console records like that:
akonadi_googlecalendar_resource_56(3575)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Unauthorized. Access token has expired or is invalid.
When I remove the resource or I remove the record in KWallet, it works. Once. Next reboot it stops working.
Comment 6 Jean Van Schaftingen 2014-05-28 12:53:27 UTC
With Kubuntu 14.04, I cannot push the updates back to Google. Here is what akonadiconsole yields:

akonadi_googlecalendar_resource_6(6658)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Bad request, Google replied ' "{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "required",
    "message": "Missing end time."
   }
  ],
  "code": 400,
  "message": "Missing end time."
 }
}
" '
Comment 7 Daniel Vrátil 2014-06-02 12:28:53 UTC
This was most probably caused by bug 334320 (regression in KDE 4.13). Please re-test with 4.13.2 once it's ou.

Jean, your problem is caused by something else, please open a new bug report.
Comment 8 Vojtěch Zeisek 2014-06-22 05:26:54 UTC
After upgrade to 4.13.2 I had to remove and add the resource again. I added calendar, works fine so far, then I added contacts, I was not asked to allow access and when trying to sync I get an error, that the resource is not configured to access Google. I tried several times to remove it and give it access somehow, no luck...
Comment 9 Dmitri Koulikoff 2015-11-04 17:09:30 UTC
Does not sync with 4.14.6
libgcal-0.9.6-x86_64-1_SBo
akonadi-googledata-1.2.0-x86_64-1_SBo
Comment 10 Denis Kurz 2017-06-23 20:21:50 UTC
This bug has never been confirmed for a Kontact version that is based on KDE Frameworks, except possibly a Technology Preview version 5.0.x. Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the opportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 11 Denis Kurz 2018-02-01 09:46:03 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.1 aka 15.12; preferably much more recent), please open a new one unless it already exists. Thank you for all your input.