Summary: | Sync of webdav calendar stuck forever | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | MartinG <gronslet> |
Component: | DAV Resource | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ad1rie3, auxsvr, bugs.kde.org, csabi, kde.org, kfunk, rigo, torotil, ts+kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
MartinG
2019-04-26 09:57:28 UTC
I tested yesterday with demo.owncloud.com, I didn't get any issue. I also have no issue with my regular caldav/carddav server I can confirm the above issue. Trying to sync to my baikal server fails with a similar error. akonadictl restart output: parse error from icalcomponent_new_from_string. string= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\">\n <s:sabredav-version>3.1.3</s:sabredav-version>\n <s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>\n <s:message>Calendar object not found</s:message>\n</d:error>\n" org.kde.pim.davresource: DavGroupwareResource::onItemFetched: Failed to parse item data. "https://xxxxx/dav.php/calendars/c/2/1557222588.R271.ics" After hitting “Clear Akonadi Cache” in akonadiconsole the error disappeared. Hi, I have the same issue, it tries to load an event which doesn't exist on the server, and crashes. I don't have a "Clear akonadi cache" button in the akonadi console. Where is that? (In reply to csabi from comment #4) > Hi, I have the same issue, it tries to load an event which doesn't exist on > the server, and crashes. > > I don't have a "Clear akonadi cache" button in the akonadi console. Where is > that? Here is a screenshot that will help you find it: https://ibb.co/0DgmwzS Thank you. The clash clearing did unstuck the calendar, so it can be used again (but removed a few events which were not saved to the server). This bug is particularly problematic because the calendar doesn't show any sign that it stopped synchronizing. So on the computer everything looks fine, the problem is detected when the calendar is checked on another device. It would be good to get a notification when the calendar is stuck for some reason. Confirmation from here. I cleared the cache and now I have no items and no sync anymore. Because clearing the cache did not do the trick anymore. I also had a regression on this here: https://www.dvratil.cz/2017/01/kmail-multiple-merge-candidates-error-and-how-to-fix-it/ I identified that the error wasn't in caldav, but in personal contacts and this also stopped the caldav sync To unstuck mine, I had to remove and re-create the resource. Clearing was not enough anymore as it seems akonadi remembered to fetch this non-existent item despite clearing the cache and restarting the server. I found the culprit. It was an ICS from Air Lingus that wasn't parsable. I removed it from the calendar and now it works again. Looks like there is an algorithm missing in the davgroup that throws away stuff that it can't digest and notify the user. This should be coordinatable with the folks from nextcloud as most people using kontact typically also use owncloud or nextcloud (as google has certainly done the sanitization already) I can confirm this. In run often into this while copying contact data (eg vcf files) from one carddav ressource to another. Yes, my calendar is back in the no-sync status and entries are only within akonadi and not synced to disk or nextcloud. I think this is a serious bug as the algorithm as no plan B if it can't parse an entry. I checked mine today, and mine is also back in none-sync mode. The sad thing is, that I have put in a number of events in Korganizer, that are now not shown in my shared Nextcloud calendar. I guess I will have to reset the connection and lose all of those. I tend to import flight events into my calendar, and those are often not fully sanitized. I'd much rather be confronted with an error when this happens, with an option to ignore and move on, rather than to be left in "offline mode" without knowing it! Please let me know if any more info is needed. Completely agreed, we an error message and ignoring the problematic event is needed, not silently crash the calendar. I was able to recover using the akonadi console, copying the events which were not synced - no remote id - to a new calendar, then back to the original calendar. And couple restarts. They did get a new remote id after that. BEGIN:VCALENDAR PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN VERSION:2.0 X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0 BEGIN:VEVENT DTSTAMP:20191002T075812Z URL:https: //www.eventbrite.com/e/codecontrol-community-meetup-7-storytelling-drinks- tickets-74687007851 CREATED:20191002T075812Z LAST-MODIFIED:20191002T075812Z DESCRIPTION:For details\, click here: https: //www.eventbrite.com/e/codecontrol-community-meetup-7-storytelling-drinks- tickets-74687007851 SUMMARY:CodeControl Community Meetup #7 (Storytelling & Drinks) LOCATION:KollwitzstraÃe 91 - KollwitzstraÃe 91 - 10435 Berlin - Germany DTSTART;TZID=UTC:20191010T163000 DTEND;TZID=UTC:20191010T190000 TRANSP:OPAQUE END:VEVENT END:VCALENDAR Now I have all events working, saved in Nextcloud. So not sure it was a parsing problem. But: I have 2 events with empty UID's, and they don't show up in KOrganizer. But they show up in Nextcloud and on my phone. They were added through KOrganizer. *** This bug has been confirmed by popular vote. *** https://bugs.kde.org/show_bug.cgi?id=418910 oups i have created duplicate (In reply to csabi from comment #13) If you can see the event in other calendars (I can see them on nextcloud web and my Jolla Phone), but not in korganizer, I suspect, this has to do with another bug (I don't have the number anymore) If you have imported the event from an invitation letter and not "accepted" the invite in korganizer. The event is in the calendar, but will not be shown in korganizer. You need to accept it again in korganizer and it will show up. Possibly now fixed - see comment: https://bugs.kde.org/show_bug.cgi?id=418910#c1 Definitely not fixed. I’m still experiencing this regularly. My last attempts to make this work again lead to losing my entire calendar. :-/ Akonadi is unfit for synchronization. If you use nextcloud or any other remote calendar, you risk your data. This is known to me and wasn't fixed since 10 years now and that's why I unfortunately had to abandon KDE-PIM. Since then, no issue whatsoever with my remote calendar. Akonadi is just not usable for production. Too much play and candy, too little serious protocol work. |