Summary: | Google Contacts resource not retrieving contacts | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Blackpaw <lindsay.mathieson> |
Component: | Google Resource | Assignee: | Daniel Vrátil <dvratil> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdepim-bugs, lindsay.mathieson |
Priority: | NOR | ||
Version: | GIT (master) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepim-runtime/a565d78c48ee85d3a39f8fb574a8841f56c83d7e | Version Fixed In: | 4.11 |
Sentry Crash Report: |
Description
Blackpaw
2013-03-15 20:49:10 UTC
Could you please enable "LibKGAPI" and "LibKGAPI (Raw Data)" in kdebugdialog, restart Akonadi from terminal and observe whether there's any related output from the akonadi_googlecontacts_resource? Done, I'm not seeing an obvious errors in the log but no contacts downloading either. And to be clear - the resource does not appear in Kontact at all, just in akonadiconsole. Could you try right-clicking the resource in AkonadiConsole and selecting "Configure"->"Configure Natively" ? Should open a configuration dialog. Re-select your account and confirm. Did that. no difference I'm afraid. I also removed the account, deleted the resource (calendar as well), restarted akonadi, re-added and reauthorised. The resources states never changed from Ready - I never see it showin "retrieving contacts" (or whatever it should be). Note that the GUI, i.e kaddressbook is 4.10.1 from packages. I can send you the terminal log from earlier via email if you like. I setup a kde 4.10.1 VM and just installed libkgapi from master - it works, but looks like Version 1 - Just "My Contacts" and "Other Contacts" and no cute icon :( What else needs to be updated from master to enable it? Ok, I added a second Gmail account that *doesn't* have two factor auth enabled. This worked perfectly. Saw this on the console about from akonadiconsole after executing a "Synchronise All" on the resource: akonadi_googlecontacts_resource_26(8434)/libakonadi Akonadi::CollectionSync::Private::execute: void Akonadi::CollectionSync::Private::execute() localListDone: true deliveryDone: true Error during executing query "INSERT INTO CollectionTable (remoteId, remoteRevision, name, parentId, resourceId, cachePolicyInherit, isVirtual) VALUES (:0, :1, :2, :3, :4, :5, :6)" : "Duplicate entry '598-Friends' for key 'CollectionTable_parentAndNameIndex' QMYSQL3: Unable to execute statement" Error during insertion into table "CollectionTable" "Duplicate entry '598-Friends' for key 'CollectionTable_parentAndNameIndex' QMYSQL3: Unable to execute statement" I believe I've found the src of the problem - I had two contacts groups, "Family" and "Friend" that I *created myself*. Once I renamed them (in gmail) to "Friends-1" and "Family-1" I was able to sync. Now in kaddressbook I have the folders - Family - Family-1 - Friends - Friends-1 Family & Friends are empty. Also I *do not* have "Family" or "Friends" groups in Gmail Contacts. However, on my Android phone I do have doubled up Family and Friends groups in contacts. I think the problem is related to this: http://productforums.google.com/forum/#!topic/apps/77scVwV96zQ For a number of people the default Family, Friends and Coworkers groups disappeared from the web Contacts interface, so they recreated them manually. However the Default groups still seem to download via the API, which is why I see them doubled up on my Android. This seems to be a common problem, particularly with older gmail accounts. As a result I don't think you can rely on the group names being unique for use as foreign id's. Git commit a565d78c48ee85d3a39f8fb574a8841f56c83d7e by Dan Vrátil. Committed on 25/03/2013 at 09:45. Pushed by dvratil into branch 'master'. Use full name of system groups to avoid collision with user groups When users create groups "Friends" or "Family" manually, the collection name would conflict with the system group names, so we use system group full name ("System Group: Friends" etc) to avoid the conflict. Thanks to Lindsay for tracking down the issue. M +1 -1 resources/google/contacts/contactsresource.cpp http://commits.kde.org/kdepim-runtime/a565d78c48ee85d3a39f8fb574a8841f56c83d7e I can confirm works for me now with the duplicate group names. Thanks Dan. |