Difficulties to setup CalDav and CardDav with Stalwart

Hello, I am new to Sailfish, and I just bought a Xperia 10 IV to test it.

So far it works great.

Now I am trying to setup sync with caldav and carddav.

My server is a self-hosted Stalwart, everything works fine with Thunderbird on linux (imap, smtp, caldav and carddav) as well as iOS (everything too).

I am unable to create an account with both caldav and carddav enabled.

I need to create an account for each one.

For caldav, my settings are :

Server : my server hostname as https without anything after the hostname

Calendar path : /dav/cal/myid

Contacts path and WebDav path : empty

In the calendar, I can see my calendarS (I have more than one) and everything works in both ways.

When I try to replicate that for a carddav account, I set it up the same way, but:

Calendar path and webdav path are empty

Contacts path : /dav/card/myid

The registering is done, but I have no contact in the contact app.

Have someone already used stalwart ?

PS : creating a single account with everything at once is not successful

PS : I am on 5.0.0.72

1 Like

Does the settings => accounts => caldav/carddav dialog look OK for both contacts and calendars? It could be that syncing contacts takes a long time or possibly even requires a reboot to show up (first time only).

Your paths look somewhat non-standard (but I don’t have too much experience either), did you go into advanced settings to specify them, or check if they’re retrieved correctly?

FWIW, I use Radicale self-hosted and it all (several calendars, one address book) works under one account.

Thank you for your reply, yes both accounts look good, and if I enter wrong path, the setting app don’t even want to accept it. So I guess I entered correctly the paths.

There is no universal path, each server can do what he wants. The only universal way to find the paths is to use the .well-know procedure with auto discovery.

As there seems to not completly works in SFOS, I entered the paths from the stalwart documentation.

The calendar did sync nearly instantly, and 1 day after, the contacts are still empty.

I tried to do some debug, using ssh on my device, but I didn’t saw any kind of errors or warning.

If you feel confident with sshing to the phone, you can follow these explanations on how to get logging from the synchronisation daemon :
Collect Synchronization Logs | Sailfish OS Documentation

You may get some insight on the error with CardDAV.

1 Like

Really, I don’t understand, as I was sure I tried that, but using the path /dav/card/id/default/ works as expected.

I will try to make it works as a one account, and post here the settings.

Edit : I have deleted both ‘solo’ accounts, and created a new one, the registering went ok, the calendar is synced, the contacts are not, and I have used the same path. Weird.

Edit2: I confirm that I can’t make it works again. I will have to enable debugging, but I can’t right now.

Strange, I discovered that the contacts were synced, I don’t know when. So maybe it just take some times.