Bug 264861 - Google calendar and contacts don't work
Summary: Google calendar and contacts don't work
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: GoogleData Resource (show other bugs)
Version: 1.5.0
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: Adenilson Cavalcanti
URL:
Keywords:
: 268643 273616 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-30 17:23 UTC by Andrei Nistor
Modified: 2014-04-13 16:07 UTC (History)
29 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
akonadictl start logfile (56.38 KB, text/plain)
2011-01-30 17:23 UTC, Andrei Nistor
Details
C sample using the libgcal library that shows the contacts OK (1.29 KB, text/x-csrc)
2011-02-27 03:38 UTC, J Bolos
Details
akonadi debugger output when adding a gcal-resource (2.44 KB, text/plain)
2011-03-07 18:54 UTC, pipapo
Details
Akonadi Server error while adding gcal resource (6.76 KB, application/octet-stream)
2011-03-11 09:08 UTC, Max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Nistor 2011-01-30 17:23:34 UTC
Created attachment 56669 [details]
akonadictl start logfile

Version:           1.5.0 (using KDE 4.6.0) 
OS:                Linux

I can add the akonadi_gcal_resource and akonadi_googledata_resource but can't browse their content in kontact or even akonadiconsole.


Reproducible: Always




using akonadi-googledata 1.2.0 and libgcal 0.9.6.
Comment 1 pipapo 2011-02-01 22:55:34 UTC
Hello,

same here on kubuntu maverick with kde 4.6 backport, akonadi 1.4.9 and libgcal 0.9.6
Comment 2 Petr Svoboda 2011-02-03 12:55:02 UTC
Same here on Kubuntu 10.10, KDE 4.6, Akonadi 1.4.90, libgcal 0.9.6
Comment 3 mu3en 2011-02-03 22:02:43 UTC
confirmed as above Kubuntu 10.10, KDE 4.6, Akonadi 1.4.95, 0.9.6.
no working sync since sometime back in 4.4 (debian or kubuntu).
Comment 4 Erasmo Caponio 2011-02-09 23:40:48 UTC
the same also here
under Kubuntu 10.10, KDE 4.6, Akonadi 1.4.95, libgcal 0.9.6.
Comment 5 Ricardo Graça 2011-02-16 22:37:07 UTC
Same problem on Archlinux with KDE 4.6, akonadi 1.5.0, akonadi-googledata 1.2.0, libgcal 0.9.6 and libgdata 0.6.5. It works fine in KDE 4.5.5.
Comment 6 Jari Laamanen 2011-02-17 02:15:15 UTC
Here also, adding akonadi_gcal_resource gives no error, but trying to get the contents (right click 'reload' on the added akonadi_gcal_resource) freezes korganizer (and kontact) for a while. The freeze occurs also when starting kontact. After the freeze, the file $HOME/.local/share/akonadi/akonadiserver.error contains an error message:

ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

The calendar is not updated and the events in the calendar are not shown in kontact/korganizer. Network is working fine. This happens also for a newly created user and a new google calendar.

KUbuntu 10.10
KDE Platform Version 4.6.00 (4.6.0) fom backports
ii  akonadi-kde-resource-googledata      1.2.0-0ubuntu1                                    
ii  akonadi-server                       1.4.90-0ubuntu1~maverick1~ppa1                    
ii  kontact                              4:4.4.9-0ubuntu1~maverick2~ppa1                   
ii  korganizer                           4:4.4.9-0ubuntu1~maverick2~ppa1                   
ii  libgcal0                             0.9.6-0ubuntu1
Comment 7 Ezio Vergine 2011-02-18 14:00:15 UTC
the same also here
under Kubuntu 10.10, KDE 4.6, Akonadi 1.4.95, libgcal 0.9.6.
Comment 8 Ricardo Graça 2011-02-22 22:58:49 UTC
Hey, people who have this problem please vote on this bug so that it gets confirmed by popular vote. We need this fixed ASAP.
Comment 9 mu3en 2011-02-22 23:08:24 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 J Bolos 2011-02-25 17:45:24 UTC
I've been trying to get this working since months ago, with several versions of several distros, and always give up due to this bug. Never got it to work. Right now I'm un Kubuntu 10.10 with the same versions than #6:

ii  akonadi-kde-resource-googledata      1.2.0-0ubuntu1                         
ii  akonadi-server                       1.4.90-0ubuntu1~maverick1~ppa1         
ii  kontact                              4:4.4.9-0ubuntu1~maverick2~ppa1        
ii  korganizer                           4:4.4.9-0ubuntu1~maverick2~ppa1        
ii  libgcal0                             0.9.6-0ubuntu1
Comment 11 J Bolos 2011-02-27 03:38:30 UTC
Created attachment 57544 [details]
C sample using the libgcal library that shows the contacts OK

I've tested this code (from the libgcal page) and, when executed, shows me a list of all my contacts in about 6 seconds. kaddressbook, e.g., hangs forever trying to load the contacts. So I'm pretty confident the problem is in akonadi-googledata or in akonadi itself.
Comment 12 nola mike 2011-03-03 23:28:30 UTC
Same thing using ubuntu 10.10, kde 4.6 via backports ppa.  Did a fresh install using 10.10, which worked--upgraded again, same problems.
Comment 13 nola mike 2011-03-06 18:03:39 UTC
Still present in KDE 4.6.1
Comment 14 pipapo 2011-03-07 18:54:07 UTC
Created attachment 57753 [details]
akonadi debugger output when adding a gcal-resource
Comment 15 Jari Laamanen 2011-03-09 16:02:24 UTC
So does anybody know if somebody has this working, or are people just not using google calendar with kde? Since this bug does not trigger much action, are we the only ones or are we just struck by some weird configuration issue?
Comment 16 nola mike 2011-03-09 20:06:41 UTC
FYI, google sync is working just fine with evolution.  I'm using that until this gets resolved (and another akonadi bug shows up ;)
Comment 17 mu3en 2011-03-10 01:19:18 UTC
still non-functional in kde 4.6.1 on kubuntu 10.10. given the leaps in functionality and optimization across kde and particualrly kdepim, this is probably a big pim gap for many users. bug is now voted and feedback is coming in, any other 'official' input?
Comment 18 Max 2011-03-11 08:58:25 UTC
Can only confirm the bug with Kubuntu 10.10 and KDE 4.6. Never tried it with 4.5, but in 4.6 i can't even add the google calendar resource straight away. Instead I create an empty resource first, then add the gcal plugin; results as described above.

Any developer feedback?

Thanks
Comment 19 Max 2011-03-11 09:08:12 UTC
Created attachment 57854 [details]
Akonadi Server error while adding gcal resource
Comment 20 Max 2011-03-11 09:09:03 UTC
Sorry about the split post. I have attached the akonadiserver.error file after all.

(In reply to comment #18)
> Can only confirm the bug with Kubuntu 10.10 and KDE 4.6. Never tried it with
> 4.5, but in 4.6 i can't even add the google calendar resource straight away.
> Instead I create an empty resource first, then add the gcal plugin; results as
> described above.
> 
> Any developer feedback?
> 
> Thanks
Comment 21 schmirrwurst 2011-03-11 21:16:08 UTC
For me akonadi-googledata is no more present/installable on 1O.10 with kde 4.6...
Comment 22 mu3en 2011-03-14 16:30:22 UTC
under kubuntu natty, kde 4.6.1, akonadi 1.50, libgcal 0.9.6:
1. akonadi resource adds fine & shows sync / ready
2. calendar resource shows in korganizer, can be configured, but when enabled takes a minute and then:

"Error while loading gcal.
Unknown error. (Unable to fetch item from backend)"

["gcal" here is the name of the calendar resource set vi korganizer]
Comment 23 mu3en 2011-03-21 00:17:34 UTC
http://dot.kde.org/2011/03/15/9th-annual-pim-meeting-renews-commitment-innovation

guess many KDEPIM / Akonadi integrations are close...
Comment 24 Jari Laamanen 2011-03-23 00:08:01 UTC
Recent backport akonadi-server update does not solve this. Now the error is additionally displayed in a pop-up: "Error while loading akonadi calendar. Unknown error. (Unable to fetch item from backend)"

akonadi-server (1.5.1-0ubuntu1~maverick1~ppa1)
Other packages as in my comment #6
 
> KUbuntu 10.10
> KDE Platform Version 4.6.00 (4.6.0) fom backports
> ii  akonadi-kde-resource-googledata      1.2.0-0ubuntu1                         
> ii  kontact                              4:4.4.9-0ubuntu1~maverick2~ppa1        
> ii  korganizer                           4:4.4.9-0ubuntu1~maverick2~ppa1        
> ii  libgcal0                             0.9.6-0ubuntu1
Comment 25 nola mike 2011-03-26 21:41:19 UTC
Devs have been pretty silent on this...but I compiled libgcal and akonadi-googledata from source as suggested here: http://ubuntuforums.org/showthread.php?p=10604316#post10604316, and it seems to be working.

Seems the package is broken.  While I don't have any coding experience, I would think this is a relatively easy fix; why hasn't it been addressed?
Comment 26 mu3en 2011-03-27 19:15:16 UTC
awesome. this works. here's how to do it (under natty in this case, please confirm for maverick if possible):

first remove your current akonadi gcal resource entry (if you still have one) in the akonadi system settings module. then open a konsole and:

~$ sudo apt-get install build-essential linux-headers-$(uname -r)
~$ mkdir builds
~$ cd builds
~/builds$ apt-get source libgcal
~/builds$ sudo apt-get build-dep libgcal
~/builds$ apt-get source akonadi-googledata
~/builds$ sudo apt-get build-dep akonadi-googledata
~/builds$ cd libgcal-0.9.6
~/builds/libgcal-0.9.6$ ./configure
~/builds/libgcal-0.9.6$ make
~/builds/libgcal-0.9.6$ sudo make install
~/builds/libgcal-0.9.6$ cd ..
~/builds$ cd akonadi-googledata-1.2.0
~/builds/akonadi-googledata-1.2.0$ mkdir builds
~/builds/akonadi-googledata-1.2.0$ cd builds
~/builds/akonadi-googledata-1.2.0/builds$ cmake ..
~/builds/akonadi-googledata-1.2.0/builds$ make
~/builds/akonadi-googledata-1.2.0/builds$ sudo make install

that should do it. reboot to clear any caching. add a new akonadi google calendar resource and launch korganizer to check that it works.

thanks mike. thanks devs.

(will the source be packaged for regular installation? creating .deb package of akonadi-googledata using checkinstall failed here...)
Comment 27 Jari Laamanen 2011-03-27 20:40:10 UTC
Works for maverik.

apt-get source libgcal akonadi-googledata
sudo apt-get build-dep libgcal akonadi-googledata
cd libgcal-0.9.6
dpkg-buildpackage
cd ../akonadi-googledata-1.2.0
dpkg-buildpackage
cd ..
sudo dpkg -i libgcal0_0.9.6-0ubuntu1_i386.deb akonadi-kde-resource-googledata_1.2.0-0ubuntu1_i386.deb

Since I did not change the version number, next update wants to overwrite them. Therefore I put the packages on hold in my machine:

sudo aptitude hold libgcal0 akonadi-kde-resource-googledata

Thanks mu3en, thanks mike, thanks all who have been examining this.
Comment 28 Max 2011-03-28 10:46:30 UTC
Thanks mu3en and yartsa. Works for me too. So it is fixed upstream.
Comment 29 Petr Svoboda 2011-03-28 12:31:04 UTC
yartsa's solution works for me ... thank you
Comment 30 Ivan D Vasin 2011-03-28 12:32:02 UTC
reported downstream at <https://bugs.launchpad.net/ubuntu/+source/akonadi-googledata/+bug/727487>.  i'm guessing this can be RESOLVED INVALID (or RESOLVED DOWNSTREAM, if that exists) since it's a downstream issue, right?
Comment 31 Ricardo Graça 2011-03-28 13:39:09 UTC
(In reply to comment #30)
> i'm guessing this can be RESOLVED INVALID (or RESOLVED DOWNSTREAM, if that
> exists) since it's a downstream issue, right?

How can it be a downstream issue if it's also present in Arch? AFAIK Arch uses vanilla KDE source code to build its packages, so this must be a KDE bug. I haven't tried in other distros since I've recently given up on kontact all together, but I can give it a shot in openSUSE 11.4 and report back.
Comment 32 Luigi Mantellini 2011-03-28 13:47:18 UTC
On KUbuntu Natty, I noticed that libgcal requires libcurl4-gnutls-dev, while akonadi-googledata requires libcurl4-openssl-dev instead. Can it be a library issue?

ciao

luigi
Comment 33 Luigi Mantellini 2011-03-28 15:00:50 UTC
This script works on Natty

#!/bin/sh

rm -rf builds_gcal
mkdir builds_gcal
cd builds_gcal

apt-get source libgcal
sudo apt-get build-dep libgcal
cd libgcal-0.9.6
dpkg-buildpackage

cd ..

apt-get source akonadi-googledata
sudo apt-get build-dep akonadi-googledata
cd akonadi-googledata-1.2.0
dpkg-buildpackage

cd ..
sudo dpkg -i libgcal0_*.deb akonadi-kde-resource-googledata_*.deb

cd ..
Comment 34 pipapo 2011-03-28 17:29:09 UTC
works also for me on kubuntu 10.10
Thanks to all who were looking for a solution! In sumertime my business-dates are shooting up. Now I'm able to make dates on the run, AGAIN!
Comment 35 Alejandro Nova 2011-03-30 04:48:05 UTC
(In reply to comment #31)
> (In reply to comment #30)
> > i'm guessing this can be RESOLVED INVALID (or RESOLVED DOWNSTREAM, if that
> > exists) since it's a downstream issue, right?
> 
> How can it be a downstream issue if it's also present in Arch? AFAIK Arch uses
> vanilla KDE source code to build its packages, so this must be a KDE bug. I
> haven't tried in other distros since I've recently given up on kontact all
> together, but I can give it a shot in openSUSE 11.4 and report back.

Check in ABS if Arch's PKGBUILDs are building libgcal and akonadi-googledata against different sets of SSL libraries, just like Ubuntu is doing. Maybe it's a downstream issue in Arch also. I suggested originally the fix and I've always installed Akonadi Googledata that way; I supposed that to be normal.
Comment 36 Jari Laamanen 2011-05-10 20:43:40 UTC
Maybe this bug could be closed, since the akonadi google calendar works in Kubuntu 11.04 and also in the backports upgrade to kde 4.6.3.
Comment 37 Benoit Grégoire 2011-05-11 00:54:20 UTC
Yes, it finally does work
Comment 38 Alejandro Nova 2011-05-11 05:50:23 UTC
Strictly speaking, this seems to be a bug generated by a version mismatch generated by compiling the Google Akonadi resources against a different release of Akonadi (1.4). If ABI compatibility for resources between 2 major releases of Akonadi was intended, then this bug should remain open and the cause of Google Akonadi resource's incompatibilities should be analyzed.

Otherwise, I suggest this bug to be closed as INVALID, since it's a downstream bug.
Comment 39 onigino 2011-05-20 01:53:51 UTC
recompiled both packages from source ok slackware64 w/4.6.3 with no luck, same error as everyone else..



plasma-desktop(25864)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application 
continuing 
request for item 8436 "http://www.google.com/calendar/feeds/default/private/full _###SOMEHASH###" failed: "Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a  eply, the message bus security policy blocked the reply, the reply timeout expir d, or the network connection was broken." 
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, t e message bus security policy blocked the reply, the reply timeout expired, or t e network connection was broken.
korganizer(4184)/libakonadi Akonadi::EntityTreeModelPrivate::fetchJobDone: Job e ror:  "Unknown error. (Unable to fetch item from backend)" 

plasma-desktop(25864)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application 
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Solid::Backends::UDisks::UDisksDevice(0x2988f90), parent's thread is  Thread(0x2469500), current thread
Comment 40 Thomas Monjalon 2011-06-08 00:23:59 UTC
A comment in ArchLinux explains how to make it working after an upgrade to KDE 4.6 :
uninstall akonadi-googledata
remove the akonadi google source in akonadi configuration
restart akonadi
install akonadi-googledata
restart akonadi
add the akonadi google source
restart akonadi

It works !
Comment 41 alj 2011-07-27 09:45:13 UTC
Built the new libgcal and akonadi-googledata as in Comment #26,removed and re-created the google calendar resource, but I still cannot get it to sync. I am using Kubuntu 11.04. 

Any other suggestions?
Comment 42 jajaX 2011-08-30 21:02:31 UTC
Hi (sorry for my bd english !)

it doesn't works since kmail 4.7 update.

=> akonadi_gcal_resource_1 : Impossible d'extraire des évènements.
(impossible to extract events)
Comment 43 Roberto 2011-08-30 21:42:14 UTC
The same here on debian sid. After three months I switched to thunderbird on half of my PCs. Now it's a seven months bug. Just to say.
Comment 44 Alejandro Nova 2011-08-30 22:04:34 UTC
Pay attention to akonadi-google, it may render this bug obsolete.

git clone git://anongit.kde.org/akonadi-google

;)
Comment 45 J Bolos 2011-08-30 22:20:25 UTC
I've also find this libkgoogle: http://progdan.cz/2011/08/akonadi-google-resource-complete-rewrite/ although the author itself says it's still a long way from being completely finished.
Comment 46 Christophe Marin 2012-01-06 16:22:44 UTC
*** Bug 268643 has been marked as a duplicate of this bug. ***
Comment 47 Christophe Marin 2012-01-06 16:25:22 UTC
*** Bug 273616 has been marked as a duplicate of this bug. ***
Comment 48 Elmar 2012-09-08 05:59:34 UTC
Any chance this is going to be resolved soon?

I switched from Thunderbird when I switched from Unity to KDE. What is odd, is that it seemed like I did see my Google calendar for a couple of days before it disappeared again. Maybe I was seeing things.

I like the configurability of Kontact, but my business calender is sitting in Google, so It is a pain if I can only see it on my phone.
Comment 49 Axel Braun 2013-02-18 08:39:09 UTC
Created new akonadi-resources in KDE to sync with google, no problems detected, except that I see two times 'my Contacts' in Kaddressbook (seehttps://bugs.kde.org/show_bug.cgi?id=305804) . Can anyone reconfirm?
KDE: 4.10.00 "release 546"
Comment 50 Shlomi Fish 2014-04-13 14:34:37 UTC
Hi all,

with korganizer-4.12.97-1.mga5 (KDE-4.13-RC) on Mageia Linux x86-64 Cauldron (what will become 5) I followed the instructions on this link - http://askubuntu.com/questions/267187/sync-korganizer-with-google-calendar#267191 in a new UNIX user account ("kdetest2") and could not get the calendar to sync. Here are my notes:

* Investigate the problem with KOrganizer and the Google Calendar.
    - It does not sync the events to the web-interface or the Ubuntu
    machine at work.
    - shlomif@gmail.com -> Right click -> Calendar properties - does not
    popup the properties.
    - shlomif@gmail.com -> Right click -> Update calendar - does not popup
    anything.

This seems like an ongoing problem for a while and it's very annoying.

Regards,

-- Shlomi Fish
Comment 51 Daniel Vrátil 2014-04-13 16:07:41 UTC
Hi,

I recommend using the Akonadi Google Contacts Resource and Akonadi Google Calendars and Tasks Resource (akonadi_google_contacts and akonadi_google_calendar). Unlike the GData (and GoogleData) resources, these are actively maintained and tested and are shipped as part of KDE SC (in kdepim-runtime).

I'll close this as unmaintained, as the Google Data resource are no longer maintained. If you have any problems with the new resources, please open a new bug report in Google Resources component.