sync of groupdav contacts fails with "unknown error code 0"

Bug #998179 reported by avlas
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KDE PIM
Fix Released
Medium
kdepim (Ubuntu)
Fix Released
High
Unassigned
Precise
Won't Fix
High
Unassigned

Bug Description

a notification from akonadi indicates an error each time a sync of owncloud is intended (which is pretty annoying): "unknown error code 0".

there is an upstream bug: https://bugs.kde.org/show_bug.cgi?id=299482

this is happening for the sync of contacts and there is a fix for it (it seems a kdepim patch is causing the issues and reversing it solves the problem, please see comments starting from #5), although in my opinion it didn't get enough attention and it's not fixed yet in current version of kdepim.

So the workaround turns out to be great for people that compiles kdepim but not for kubuntu users. I would be very grateful if kubuntu maintainers could push the fix upstream (apparently it would take few minutes to solve the issue). In the meantime, it would be great if a modified version of kdepim was in launchpad for the people that has this problem.

thanks

Tags: patch
Revision history for this message
In , Mathias Homann (lemmy04) wrote :

every 5 minutes or so I get a popup from akonadi telling me that syncing from my owncloud calendar failed with "unknown error code 0".

Guys... return code 0 means "it worked fine", not "something went wrong"...

I looked at the debugger output in akonadiconsole, and there are no errors showing.
prior to upgrading to kde 4.8.3 everything worked.

Reproducible: Always

Steps to Reproduce:
1. use akonadi with owncloud calendars

Revision history for this message
In , cattin (philippe-cattin) wrote :

I have exactly the same problem. Since upgrading to KDE 4.8.3 I get this error whenever akondi checks for updates.

Revision history for this message
In , Mathias Homann (lemmy04) wrote :

I updated another computer to KDE 4.8.3, and I get the same popups.
This is getting annoying.

Revision history for this message
In , Mathias Homann (lemmy04) wrote :
Revision history for this message
In , Mathias Homann (lemmy04) wrote :

(In reply to comment #3)
> I have build a kdepim runtime package with this changeset removed:
> https://projects.kde.org/projects/kde/kdepim-runtime/repository/revisions/
> 77d63ae37d53a811785978a450e6f722dbb9655e/diff/resources/dav/protocols/
> carddavprotocol.cpp
>
>
> the error seems to be fixed with that.

After some trying out I can confirm that removing this changeset also removes the weird "errors".

Revision history for this message
In , Mathias Homann (lemmy04) wrote :

I have two user accounts on the same computer.
User 1 is completely local, and akonadi operates on a per-user local mysql instance, and the bug happens.
The interesting part is user 2, which uses a central mysql server for akonadi because its home directory is on nfs... and the bug does **not** happen.

Revision history for this message
In , cattin (philippe-cattin) wrote :

I can confirm that removing this patch set also solved the problem for me, although I don't know what the original intent of the introduced change was. I forgot to mention that I'm also working with owncloud.

Revision history for this message
In , woawa (wolfgang-walkowiak) wrote :

I am experiencing a similar effect with ownCloud **contacts** (not with calendars) on Kubuntu 12.04 with kdepim-runtime 4:4.8.3-0ubuntu0.1~ppa1. The caldav sync works fine. However, whenever the carddav sync kicks in, I get this popup with the error message described above and no contacts are synced at all. For me downgrading to kdepim-runtime 4:4.8.2a-0ubuntu2 helps in bringing the carddav sync with my ownCloud instance back to working properly.

Revision history for this message
In , Cédric Bellegarde (gnumdk) wrote :

Same here, downgrading to kdepim-runtime 4.8.2 fix the issue...

Revision history for this message
In , Cédric Bellegarde (gnumdk) wrote :

Building kdepim-runtime-4.8.3 ArchLinux package reverting 77d63ae37d53a811785978a450e6f722dbb9655e commit also fix the issue.

Revision history for this message
In , Greg-xrvasas (greg-xrvasas) wrote :

*** Bug 300047 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Greg-xrvasas (greg-xrvasas) wrote :

I'll try to give a look into this this week. If any of you can attach to this bug, or send me privately, a network capture of what's going on between the resource and the server this would definitely help speed things up. The full error message (there's a number between brackets after "unknown error code 0"; this last number means nothing resource-wise).

Revision history for this message
avlas (avlas) wrote :

It seems that reverting to kdepim 4.8.2a fixes the issue, surely because the patch was applied for kdepim 4.8.3

Revision history for this message
In , avlas (avlas) wrote :

Same here I reverted kdepim-runtime to 4.8.2a in kubuntu 12.04 and it got fixed. I also filled a bug in launchpad about this bug: https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/998179

I know that this doesn't bring much information but I didn't find a good (and easy) way of following comments on this bug, other than commenting. It would be great if there were a button of "follow me" in bugs.kde.org

I wonder if I should fill a bug for that...

Revision history for this message
In , Greg-xrvasas (greg-xrvasas) wrote :

Git commit bec63a313160ec6dc1833029d5e99746779ed3f4 by Gregory Oestreicher.
Committed on 15/05/2012 at 21:19.
Pushed by goestreicher into branch 'KDE/4.8'.

Add a prop-filter in the CardDAV requests
FIXED-IN: 4.8.4

M +6 -0 resources/dav/protocols/carddavprotocol.cpp

http://commits.kde.org/kdepim-runtime/bec63a313160ec6dc1833029d5e99746779ed3f4

Revision history for this message
avlas (avlas) wrote :

it has been fixed upstream for next kdepim 4.8.4 (https://bugs.kde.org/show_bug.cgi?id=299482#c13)

Revision history for this message
In , Victor Noël (victornoel) wrote :

Hi,

Both reverting the previous patch or applying this one on kdepim-runtime 4.8.3 does not fix the bug for me.
It should be said that I reported the bug #300047 that was marked as duplicate and that I never experienced the "unknown error code 0" message box!

Thus, I am wondering if #300047 is really a duplicate :)

Revision history for this message
In , Cédric Bellegarde (gnumdk) wrote :

>I never experienced the "unknown error code 0" message box!

Same for me, message is in akonadiconsole debug tools...

Revision history for this message
In , Victor Noël (victornoel) wrote :

For information, I don't have this error message in the console debug tool either, I just get what I pasted below. I am going to answer the question on the other bug report as soon as I get the information from the admins.

akonadi_davgroupware_resource_8 (0x1d2afb0) 1313 LSUB 411 0 (RESOURCE akonadi_davgroupware_resource_8) (ANCESTORS INF)
akonadi_davgroupware_resource_8 (0x1d2afb0) * 411 409 (NAME "Perso" MIMETYPE (text/directory) REMOTEID "https://hostname/SOGo/dav/username/Contacts/personal/" REMOTEREVISION "" RESOURCE "akonadi_davgroupware_resource_8" CACHEPOLICY (INHERIT true INTERVAL 3 CACHETIMEOUT -1 SYNCONDEMAND false LOCALPARTS ()) ANCESTORS ((409 "akonadi_davgroupware_resource_8") (0 "")) ENTITYDISPLAY "(\"\" \"view-pim-contacts\" \"\" ())" AccessRights "a" davprotocol "1")
akonadi_davgroupware_resource_8 (0x1d2afb0) 1313 OK List completed
akonadi_davgroupware_resource_8 (0x1d2afb0) 1314 SELECT SILENT 411
akonadi_davgroupware_resource_8 (0x1d2afb0) 1314 OK Completed
akonadi_davgroupware_resource_8 (0x1d2afb0) 1315 FETCH 1:* FULLPAYLOAD ALLATTR CACHEONLY EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME)
akonadi_davgroupware_resource_8 (0x1d2afb0) 1315 OK FETCH completed

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kdepim (Ubuntu):
status: New → Confirmed
Revision history for this message
Nick B. (futurepilot) wrote :

This message popping up every 10 minutes is highly annoying. I have cherry picked this fix and applied it to 4.8.3. Waiting for it to build now.

Revision history for this message
Nick B. (futurepilot) wrote :

The fix looks like it's working. Here's a debdiff.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "kdepim-runtime_4.8.3-0ubuntu0.3~ppapp1.debdiff" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in kdepim:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
In , Dennis Schridde (devurandom) wrote :

I am getting a message "Yahoo!: Die Elemente können nicht empfangen werden: caldav.calendar.yahoo.com" (~"... the elements cannot be received ...") in KDE 4.8.3 (Ubuntu 12.04). Could this be the same issue, or shall I open a new bug?

Revision history for this message
In , Greg-xrvasas (greg-xrvasas) wrote :

Created attachment 71527
kde-akonadi-bug.png

(In reply to comment #17)
Send me a screeenshot of the error, but it's unlikely to be the same issue if it's happening with a calendar.

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

Am Samstag, 2. Juni 2012, 16:50:26 schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=299482
>
> --- Comment #18 from Grégory Oestreicher <email address hidden> ---
> (In reply to comment #17)
> Send me a screeenshot of the error, but it's unlikely to be the same issue
> if it's happening with a calendar.
The error message comes as a Plasma notification. Please find the screenshot
attached.

--Dennis

Revision history for this message
Philip Muškovac (yofel) wrote :

The 4.8.4 release is currently being prepared for precise, so this will be fixed once that's uploaded. Sorry for the inconvenience.

Changed in kdepim (Ubuntu Precise):
importance: Undecided → High
Changed in kdepim (Ubuntu):
importance: Undecided → High
Changed in kdepim (Ubuntu Precise):
status: New → In Progress
Revision history for this message
In , greg (gregtq) wrote :

If I add a new owncloud 4.5 CalDAV ressource on 4.10, I get a similar error on the test connection page:
An error occurred: There was a problem with the request. Unknown error code 0 Please send a full bug report at http://bugs.kde.org. (405).

 Needless to say: thunderbird with lightning plugin works perfectly. How can I help to debug this?

Revision history for this message
In , Greg-xrvasas (greg-xrvasas) wrote :

(In reply to comment #20)
> If I add a new owncloud 4.5 CalDAV ressource on 4.10, I get a similar error
> on the test connection page:
> An error occurred: There was a problem with the request. Unknown error code
> 0 Please send a full bug report at http://bugs.kde.org. (405).

It's unlikely to be the same issue, could you please open a separate bug? The HTTP 405 code means that the method is not allowed (I guess this was in a response to a propfind). Could you check that the URL is indeed correct?

Revision history for this message
Rohan Garg (rohangarg) wrote :

Please upgrade to KDE SC 4.12.x via Kubuntu Backports.

Changed in kdepim (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in kdepim (Ubuntu Precise):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.