Reply to topic

Akonadi failing to add Google account

User avatar mfs
Registered Member
Posts
2
Karma
0
Hi all,

I am using KDE 4.10.3 on archlinux and recently tried to add my google account to akonadi. I am prompted for my credentials and can click the "Allow Access" button on the google page, but afterwards, while the akonadi GUI is telling me "Authorizing token. This should take just a moment...", a messagebox appears saying "The account is invalid." When I click ok there (which is the only option), there is still no google account added to akonadi.

Any suggestion what could be the issue here? Issuing "akonadictl restart" on a console does not yield any obvious error or warning messages during the adding procedure...

Cheers,
Martin
User avatar einar
Administrator
Posts
2270
Karma
5
OS
Are there no messages in ~/.xsession-errors when you actually add the resource? Try to check the file when you get that message box.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar mfs
Registered Member
Posts
2
Karma
0
This is what appears in .xsession-errors during adding the account:

Code: Select all
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/org.kde.notifications/contents/ui/main.qml:139:9: QML Flickable: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/org.kde.notifications/contents/ui/main.qml:139:9: QML Flickable: Possible anchor loop detected on fill.
QDBusConnection for control created "/Mixers/PulseAudio__Playback_Streams_1/stream_26"
X Error: BadWindow (invalid Window parameter) 3                                                                                                                                 
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5a0002a
plasma-desktop(7633)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
plasma-desktop(7633)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application
QDBusConnection for control created "/Mixers/PulseAudio__Playback_Streams_1/stream_29"
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5a0004a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5a00012
User avatar einar
Administrator
Posts
2270
Karma
5
OS
Nothing unusual here. I'll get in touch with the developer and see what's the best way to debug this.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
mhjacks
Registered Member
Posts
3
Karma
0
I am seeing exactly the same sort of error on the Fedora 19 beta. For some reason, it seems like akonadi is unable to determine the account name (since the account dropdown never gets populated). This occurs both for calendar/events and for contacts for me. I need to check .xsession-errors and I will see if that matches your case as well.
mhjacks
Registered Member
Posts
3
Karma
0
I see the same error messages in my .xsession-errors:


plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:189:21: QML TextEdit: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/org.kde.notifications/contents/ui/main.qml:139:9: QML Flickable: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/org.kde.notifications/contents/ui/main.qml:139:9: QML Flickable: Possible anchor loop detected on fill.
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:189:21: QML TextEdit: Possible anchor loop detected on fill.
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:189:21: QML TextEdit: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/org.kde.notifications/contents/ui/main.qml:139:9: QML Flickable: Possible anchor loop detected on fill.
file:///usr/share/kde4/apps/plasma/plasmoids/org.kde.notifications/contents/ui/main.qml:139:9: QML Flickable: Possible anchor loop detected on fill.
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:189:21: QML TextEdit: Possible anchor loop detected on fill.
mhjacks
Registered Member
Posts
3
Karma
0
This issue appears to now be fixed in Fedora 19 Beta - seemlingly with the update to libkgapi-2.0.1. Thanks!
lphilpot
Registered Member
Posts
34
Karma
0
OS
I'm seeing basically the same thing on Fedora 18, KDE 4.10.3, libkgapi 2.0.0-1. After deleting both Google Contacts and Calendar, I'm unable to re-add them.

Background:
My Kaddressbook contacts were syncing only newly-added entries, not deleted entries. For example, if I added an entry via the web, when KAddressbook synced it picked it up. But if I deleted the entry via the web, it never went away even after multiple syncs of KAddressbook. So, I thought I would remove and re-add the Akonadi resource for Google Contacts. It removed OK, but when I tried to re-add it, I was prompted by Google to allow Akonadi acccess to the account. After accepting, it said it was authorizing the token, then the window went away and the blank account list dialog in KAddressbook was left. Never got any further.

KMail is still working with my GMail account (IMAP) OK, so I tried adding a test entry to my Google calendar online, which synced properly with other apps I use on another computer as well as to my phone, so there's no issue on the Google end. When I tried to sync the KOrganizer calendar, it failed and I eventually ended up with the same issues as the OP after removing and trying to re-add my Google Calendar. I get forbidden resource and/or invalid account errors, despite having logged into my Google account during the process.

My ~/.xsession-errors is over 1000 lines but here are a few selected entries if they're of any use --

Code: Select all
 Application '/usr/bin/akonadi_googlecontacts_resource' exited normally...
 akonadi_googlecalendar_resource_3(2107)/LibKGAPI KGAPI::AccessManagerPrivate::nam_replyReceived: Requested resource is forbidden.

kmix(1684) sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
 kded(1562)/kmix sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
 Application '/usr/bin/akonadi_googlecalendar_resource' exited normally...
 loaded the Generic plugin
 kded(1562)/kmix sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
 
   Resource id:  0x4a000c6
 QMetaProperty::read: Unable to handle unregistered datatype 'KUrl' for property 'KUrlRequester::url'
 QMetaProperty::read: Unable to handle unregistered datatype 'KUrl' for property 'KUrlRequester::url'
 X Error: BadWindow (invalid Window parameter) 3
   Major opcode: 20 (X_GetProperty)

'tail -f' of the file showed this:

Code: Select all
This is where I clicked the OK button in the Akonadi Console to add Google Contacts ...

    loaded the Generic plugin
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x4a000c1
    loaded the Generic plugin
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x520002a
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x520002a
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x520002a
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x5200012
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x5200012
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x5200012
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x5200012
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x5200012
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x5200012
    Application '/usr/bin/akonadi_googlecontacts_resource' exited normally...

...and this is where access to my Google account (apparently) failed and returned to the empty account list dialog.


This is where I tried to add a Google Calendar and got the Account is Invalid message...

    loaded the Generic plugin
    kmix(1684) sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
    kded(1562)/kmix sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
    kded(1562)/kmix sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
    kmix(1684) sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
    kded(1562)/kmix sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
    kmix(1684) sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider
    kded(1562)/kmix sink_input_cb: Ignoring sink-input due to it being designated as an event and thus handled by the Event slider

I just updated Fedora a couple of nights ago, so I suspect 2.0.0-1 is the newest libkgapi version in the Fedora repository.

Any ideas how to get these re-added and working again?

Thanks!!
lphilpot
Registered Member
Posts
34
Karma
0
OS
Googling indicates this is a known issue. Can anyone point me to a procedure that works to re-establish syncing between Kontact and my Google calendars/contacts? No matter what I try, I always end up with either forbidden resource or invalid account errors. Is there a cache somewhere that needs clearing? I've looked in and under ~/.kde/cache-`hostname` but there's nothing obivous.

Any ideas? Not being able to sync w/Google is a pain which I'd love to alleviate ASAP.
User avatar einar
Administrator
Posts
2270
Karma
5
OS
I'll try to get in contact with the developer of the Google resource.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
lphilpot
Registered Member
Posts
34
Karma
0
OS
einar wrote:I'll try to get in contact with the developer of the Google resource.

Thank you!
lphilpot
Registered Member
Posts
34
Karma
0
OS
After updating today (to 4.10.4) I can once again add my Google contacts and calendars. I've not specifically added/deleted entries to verify it's syncing properly, but it certainly communicated, which is something it wasn't doing before. So maybe it's fixed...?

Thanks.
User avatar einar
Administrator
Posts
2270
Karma
5
OS
I finally managed to ask the developer: please upgrade to libkgapi 2.0.1 or pester your distribution to provide the update.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
lphilpot
Registered Member
Posts
34
Karma
0
OS
It must've shown up in the last update, 'cause I'm now at 2.0.1-1. Thanks.

 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Baidu [Spider], Bing [Bot], Exabot [Bot], garthecho, Google [Bot], google01103, Hans, hmethorst, industrie13, jensreuterberg, koriun, l3u, La Ninje, Majestic-12 [Bot], mmistretta, nerdopolis, PaddyMac, pedrorodriguez, SecretCode, Sentynel, VictorL, Yahoo [Bot]