Happy happy joy joy: CalDAV works again

I am so happy right now I could actually bounce: with many thanks to the caldav-sync author Marten Gajda, I finally figured out what was wrong with my OwnCloud instance's CalDAV support.

I very briefly had a working CalDAV setup before - I could sync my desktop, laptop and phone and it all worked. It was great. Then I tried OC 5.0 and it kinda stopped working right. Then I dropped down to OC 4.x again and my PCs mostly still seemed to work, but I could no longer set up sync with an Android client. At all. Also, adding the OC account via GNOME's 'Online Accounts' didn't add its CalDAV stuff to Evolution, though I could do it manually.

After lots of back and forth with Marten we found out a newly created account on my server worked fine - it was just my account that didn't. Grr.

Finally, a wireshark capture of an attempt to register via caldav-sync as me bore fruit: somehow, the server was sending the wrong component type when telling caldav-sync what sort of stuff it supports. It should send something like "VEVENT,VTODO", but it was sending the string "Default calendar", which makes no sense at all.

After a bit of poking I found this is set as a property of each calendar in the OwnCloud database, in the table oc_calendar_calendars as the "components" column. A simple:

UPDATE oc_calendar_calendars SET components="VEVENT,VTODO,VJOURNAL";

was all it took to fix it, and suddenly my Android devices can get my calendars again, setting up the OC account via GNOME makes its calendars instantly pop up in Evolution, birds sing in the trees, and all is right with the world.

I also noticed that both my Android devices and Evolution can actually sync tasks with the OC server via CalDAV too, so I'm using that. I have my todo list in Evo on my PCs and as a neat widget on one of the home screens of my Android devices. I can categorize todo items and check 'em off from anywhere, and it's awesome. I was using mytinytodo before, but this is way better, as I don't have to fiddle with signing into a web interface on my phone. Ahh, glorious.

Now, if only it'll all hold together for longer this time...

Comments

Pieter wrote on 2013-08-22 01:46:
I'm looking for OC5 RPMs for EL6. Since there are no OC5 RPMs in koji and assuming you installed OC5 RPMs, which ones did you use? The ones from the OC repo?
adamw wrote on 2013-08-22 02:23:
I rebuilt the Rawhide ones for f19, when I wanted to try 5.
Samuel Sieb wrote on 2013-09-27 23:10:
Somewhat of a late response, but now that I'm starting to use OwnCloud I'm wondering what you are using on your phone to sync to it.