A few weeks after setting up a Google calendar resource, I will start to get errors stating that akonadi_googlecalendar_resource_x: Invalid request, service is not registered. This will keep happening until I delete the resource and install it again and it isn't restricted to just one computer - all devices linked to that account get the same error. Reproducible: Always Steps to Reproduce: 1.Set up a Google calendar resource 2.Wait a few weeks 3.See that the error box starts to appear Actual Results: Error box appears for each calendar in my account
What version of LibKGAPI do you have?
Sorry for not replying earlier, but KMail decided to filter the reply to my search box! libkgapi0:amd64 0.4.4-0ubuntu1
Sorry for taking so long with this. Although I know where the error comes from, I can't see any code path leading to it. Could you enable akonadi_googlecalendar_* in kdebugdialog, restart Akonadi from console (akonadictl restart) and observe, whether any relevant output appears? Most interesting would be to have URL of the request that is sent before this error appears. The good news is that this is fixed in KDE 4.11, where LibKGAPI and the resources were almost completely rewritten.
One more thing: can you reproduce this problem with the Google Contacts resource, or is it Calendar-specific issue?
I get this error message too. My Google Calendar resource has been configured a long time ago, but only recently this error message started appearing, so I would say the problem was introduced in KDE 4.10 or one of its point releases. This particular error message affects only Google Calendar, though a few days ago I tried to edit a Google contact and there was an error message displayed too, albeit a different one. kdebugdialog doesn't list any akonadi_google* item. The closest ones are akonadiresource(ical) and akonadiserializer(calendar). Here are the messages I have in ~/.xsession-errors: akonadi_googlecalendar_resource_2(4307) KGAPI::AccessManagerPrivate::nam_replyReceived: Unknown error 0 , Google replied ' "" ' akonadi_googlecalendar_resource_2(4307) KGAPI::AccessManagerPrivate::nam_replyReceived: Unknown error 0 , Google replied ' "" ' akonadi_googlecalendar_resource_2(4307) KGAPI::AccessManagerPrivate::nam_sendRequest: Failed to resolve service "" akonadi_googlecalendar_resource_2(4307) KGAPI::AccessManagerPrivate::nam_sendRequest: Failed to resolve service "" akonadi_googlecalendar_resource_2(4307) KGAPI::AccessManagerPrivate::nam_sendRequest: Failed to resolve service "" akonadi_googlecalendar_resource_2(4307) KGAPI::AccessManagerPrivate::nam_sendRequest: Failed to resolve service "" The first two may not be related to this bug, but the following ones may be.
Could you please additionally enable "kio (AccessManager)" and "kio_http" in kdebugdialog, restart your KDE session, reproduce the issue and check .xsession-errors again? Try to use grep -A5 -B5 to include 5 lines above and below the matching result, in case the "akonadi_google" is not mentioned in the debug output. Remember to disable the debug areas after that, so that your .xsession-errors does not grow too much :-)
I did that and I have a log file with lots of debug output but I don't know what I should be looking for. What should be the search term in the grep -A5 -B5 command, if it is not akonadi_google? It's hard to check the kio_http output since requests from rekonq, chokoq, desktop widgets etc are all mixed together. I couldn't discern any from akonadi_googlecalendar though. What would a kio_http entry from akonadi_googlecalendar look like? Here are the lines I found interesting: akonadi_googlecalendar_resource_2(8999)/kio (AccessManager) KDEPrivate::AccessManagerReply::jobError: KIO::ERR_COULD_NOT_CONNECT -> QNetworkReply::ConnectionRefusedError akonadi_googlecalendar_resource_2(8999) KGAPI::AccessManagerPrivate::nam_replyReceived: Unknown error 0 , Google replied ' "" ' Enchant dict for "en_US" 0xb023eb0 akonadi_googlecontacts_resource_0(9000)/kio (AccessManager) KDEPrivate::AccessManagerReply::jobError: KIO::ERR_COULD_NOT_CONNECT -> QNetworkReply::ConnectionRefusedError akonadi_googlecontacts_resource_0(9000) KGAPI::AccessManagerPrivate::nam_replyReceived: Unknown error 0 , Google replied ' "" ' akonadi_googlecalendar_resource_2(8999) KGAPI::AccessManagerPrivate::nam_sendRequest: Failed to resolve service "" ItemRetrieverException : Unable to retrieve item from resource: <html>Invalid item retrieved</html> kontact(10008)/libakonadi Akonadi::EntityTreeModelPrivate::fetchJobDone: Job error: "Unable to fetch item from backend (collection 419) : Unable to retrieve item from resource: <html>Invalid item retrieved</html>" for collection: 419
I've got the same problem. When looking at .xsession-errors I found this: "Cannot connect to agent instance with identifier 'akonadi_googlecalendar_resource_1', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_googlecalendar_resource_1': no such name'" ItemRetrieverException : Unable to contact resource korgac(4275)/libakonadi Akonadi::EntityTreeModelPrivate::fetchJobDone: Job error: "Unable to fetch item from backend (collection 119) : Unable to contact resource" for collection: 119 Could this bug be related to dbus?
Stephan, this is indeed a message from D-Bus. It usually happens when the resource crashes. Anyway, it's unrelated to this particular bug. If you can get more information (ideally a backtrace), please open a new bug request.
akonadi_googlecalendar_resource_5(3698)/kdepimlibs (kcalcore): parse error ; string is empty? true akonadi_googlecalendar_resource_5(3698)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id = 109572 Storage collection id 594 parentCollectionId = -246 akonadi_googlecalendar_resource_5(3698)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" akonadi_googlecalendar_resource_5(3698)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822" akonadi_googlecalendar_resource_5(3698)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was: "" akonadi_googlecontacts_resource_2(3699)/libakonadi Akonadi::ResourceBase::itemRetrieved: Item does not provide part "RFC822" kontact(3066)/akonadiserializer (addressee) Akonadi::SerializerPluginAddressee::deserialize: Empty addressee object!
Created attachment 79494 [details] akonadi_googlecalendar xsesson_error output from when akonadi_googlecalendar_resource fails.
I have the same problem. It seems that it started, when I tried to create a new appointment from kontact.
Come to think of it, I believe I started to have this problem when I tried to edit an existing appointment from kontact. So it seems this bug is about not being able to sync local changes to the google server.
*** Bug 318705 has been marked as a duplicate of this bug. ***
I also started to get to this issue these days all of a sudden. The message is the same: "akonadi_googlecalendar_resource_2: Invalid request, service is not registered." So in akonadi I have the same problems as listed above and it is not yet clear to me whether the problem is with the D-Bus or elsewhere. Akonadi restart does not help -- I still have this repeatedly in several lines: "Cannot connect to agent instance with identifier 'akonadi_googlecalendar_resource_2', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_googlecalendar_resource_2': no such name'" ItemRetrieverException : Unable to contact resource "Cannot connect to agent instance with identifier 'akonadi_googlecalendar_resource_2', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_googlecalendar_resource_2': no such name'" ItemRetrieverException : Unable to contact resource Meanwhile I noticed that if I enter a new event from another machine (or through web), and then restart akonadi, I see only this event. Any other past or future ones are not there. Strange. Running kubuntu with kde 4.10.4
Got the same problem. Happens shortly after setting up a new google-resource, will say the same or next day. Don't know exactly what happens before. Defenitely could add and change entries from kontact, the google-website and my phone without problems. Last time I encountered the problem, I added and shortly after deleted google-contacts in kontact, which also provoked problems in mail-view. Deleting the resource and setting it up again brings all entries back. Only drawback, aconadi is busy for hours indexing.
*** This bug has been confirmed by popular vote. ***
Just deleted the corrupted google-calender-resource and added a new one. Can access and change all entries in my google calendar again. Even adding new events works fine. And the best, it took only a couple of minutes, not hours as the last time, to get it synchronised for the first time. The bad news, after adding this new google-calender-resource the mail-view of kontact was corrupted again, as it was after adding the google-contact-resource before. Maybe that's the reason for all the problems, adding of any new google-resource somehow corruptes other google-resources and views.
KMail folder-view corruption when adding/removing unrelated resources is a known issue and has been fixed in 4.11 (or maybe even 4.10.5, I don't remember whether the patch was backported). The problem is in the KMail folder-view itself, not in Akonadi (luckily)
Okay, once again the newly added google-calendar-resouse was corrupted. It happened after a restart of the computer and kontact. Before noticing it I got an error message, that the certificate for the secure connection to the google-server was invalid. Couldn't see any reason for this and thus accepted it.
BTW, deleting the corrupted resource and adding a new one made my google-calendar work again. Seems to be a - bit annoying - workaround.
And it was working only for a limited time, right? :)