Bug 299482 - groupdav calendar sync fails with "unknown error code 0"
Summary: groupdav calendar sync fails with "unknown error code 0"
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-06 06:30 UTC by Mathias Homann
Modified: 2013-04-15 14:28 UTC (History)
11 users (show)

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


Attachments
kde-akonadi-bug.png (15.00 KB, image/png)
2012-06-03 01:55 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Homann 2012-05-06 06:30:07 UTC
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
Comment 1 philippe.cattin 2012-05-06 18:07:16 UTC
I have exactly the same problem. Since upgrading to KDE 4.8.3 I get this error whenever akondi checks for updates.
Comment 2 Mathias Homann 2012-05-07 08:19:53 UTC
I updated another computer to KDE 4.8.3, and I get the same popups.
This is getting annoying.
Comment 3 Mathias Homann 2012-05-07 10:40:13 UTC
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.
Comment 4 Mathias Homann 2012-05-07 11:06:04 UTC
(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".
Comment 5 Mathias Homann 2012-05-07 20:22:07 UTC
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.
Comment 6 philippe.cattin 2012-05-08 14:39:14 UTC
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.
Comment 7 Wolfgang Walkowiak 2012-05-13 21:23:39 UTC
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.
Comment 8 Cédric Bellegarde 2012-05-14 07:35:11 UTC
Same here, downgrading to kdepim-runtime 4.8.2 fix the issue...
Comment 9 Cédric Bellegarde 2012-05-15 11:15:33 UTC
Building kdepim-runtime-4.8.3 ArchLinux package reverting 77d63ae37d53a811785978a450e6f722dbb9655e commit also fix the issue.
Comment 10 Grégory Oestreicher 2012-05-15 11:31:45 UTC
*** Bug 300047 has been marked as a duplicate of this bug. ***
Comment 11 Grégory Oestreicher 2012-05-15 11:36:51 UTC
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).
Comment 12 avlas 2012-05-15 12:58:57 UTC
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...
Comment 13 Grégory Oestreicher 2012-05-15 19:25:50 UTC
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
Comment 14 kaouete 2012-05-16 09:10:37 UTC
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 :)
Comment 15 Cédric Bellegarde 2012-05-16 09:20:26 UTC
>I never experienced the "unknown error code 0" message box!

Same for me, message is in akonadiconsole debug tools...
Comment 16 kaouete 2012-05-16 11:23:42 UTC
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
Comment 17 Dennis Schridde 2012-06-02 16:29:01 UTC
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?
Comment 18 Grégory Oestreicher 2012-06-02 16:50:26 UTC
Created attachment 71527 [details]
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.
Comment 19 Dennis Schridde 2012-06-03 01:55:35 UTC
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 <greg@kamago.net> ---
> (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
Comment 20 Gregor Tätzner 2013-04-13 18:35:41 UTC
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?
Comment 21 Grégory Oestreicher 2013-04-15 14:28:03 UTC
(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?