We have moved to a new Sailfish OS Forum. Please start new discussions there.
15

[Solved] CardDav contacts sync setup mykolab/posteo

asked 2014-10-23 13:26:51 +0200

2Ti gravatar image

updated 2014-10-24 10:38:00 +0200

Has anyone got the CardDav contacts sync working since 1.1.0.38 (Uitukka). I've tried setting up the sync with parameter similar to those I am using in Thunderbird but the test contact I've added on the server side does not appear in the People app.

I am using mykolab as the service provider with my own domain (settings here)

The carddav server address is

https://carddav.mykolab.com/addressbooks/name%40host.com/

Thunderbird adds Contacts to the end of that. The account is created succesfully but nothing syncs down to Jolla. I can't define the contacts db address and the calendar db address separately so I've been dumping the whole contacts db address to the server address field in the account creation screen on Jolla. I haven't tried the calendar (caldav) sync at all, I've just been trying to get the contacts db to sync to my phone.

Any ideas or does anyone has experince on how to get this to work?


UPDATE

Thanks to @Bimberle here are the settings that work

MyKolab

With these settings leave CardDav only activated. As of yet Jolla does not support separate addresses for the calendar and contacts DBs so you have to create two separate accounts if you want both to work.

I don't know if the Contacts is strictly necessary, it refers to the contacs db on the server. From the webmail interface on mykolab you can create more then one addressbook and name them what you want, so I would think that it is. With those settings and my own domain two way sync works. I haven't been able to push a contact image up to the server yet, but will keep trying that.


Posteo.de (courtesy of Bimberle)

  • username: (username without @posteo.de)
  • password: (password)
  • server address: https://posteo.de:8843 (this is the standard port for carddav, should be the same everywhere)
  • calendar path: (should not be needed as per the answer from @Chris.adams)

Then leave CardDAV activated, deactivate CalDAV. This is it! And best of all, the changes take effect instantaneously (if you sync manually) - and two-way! (This makes it worlds better than the still troubled google account on Jolla)

edit retag flag offensive close delete

Comments

I don't even understand how to configure Carddav at the moment ;).

Sailor ( 2014-10-23 14:07:55 +0200 )edit

I use mykolab with my own domain too. Please inform here if you get it to work - I'm still on update 8, if CardDav is working, i will install update 9

MacManus ( 2014-10-23 15:29:06 +0200 )edit

@MacManus got it working with the answer from Bimberle. See settings on the updated question. Syncing profile images isn't currently working.

2Ti ( 2014-10-23 16:32:01 +0200 )edit

@2Ti wow great. so i will update my jolla in the evening :) thanks

MacManus ( 2014-10-23 16:36:20 +0200 )edit

Since the 1.1.4.29 update, I need to fill in https://posteo.de:8843/addressbooks as server address. See this issue for details.

mattis ( 2015-05-15 12:31:02 +0200 )edit

4 Answers

Sort by » oldest newest most voted
10

answered 2014-10-23 15:04:05 +0200

Bimberle gravatar image

updated 2014-10-23 15:06:03 +0200

For the first time ever, I finally got CardDAV to work on my Jolla! I use German email provider posteo.de, a young, smallish company with an affinity to open standards. Since update 9, Jolla supports CalDAV/CardDAV in a single setup, however since posteo.de uses different paths for these two I had to setup two accounts, one for Caldav, one for Carddav.


CardDAV works as follows:

username: (username without @posteo.de)

password: (password)

server address: https://posteo.de:8843 (this is the standard port for carddav, should be the same everywhere)

calendar path: /addressbooks/username/default

Then leave CardDAV activated, deactivate CalDAV. This is it! And best of all, the changes take effect instantaneously (if you sync manually) - and two-way! (This makes it worlds better than the still troubled google account on Jolla)

edit flag offensive delete publish link more

Comments

Does someone tried it with owncloud?

cy8aer ( 2014-10-23 15:24:06 +0200 )edit

I have tried it with owncloud but no success.

Sailor ( 2014-10-23 15:31:12 +0200 )edit

Just to state it with owncloud: server: https://myserver.de, calendar path: /owncloud/remote.php/carddav/addressbooks/myuser/mycalendarname

What will happen if it works? The addresses are included into the addressbook? It is not the same way like with the calendar where you have the opportunity to switch on/off a single calendar, is it?

cy8aer ( 2014-10-23 15:51:41 +0200 )edit

This is brilliant. I got it working now. I'll update the post and add the details for the correct settings.

2Ti ( 2014-10-23 16:13:33 +0200 )edit
1

need a owncloud solution, too!!

cvp ( 2014-10-23 17:19:19 +0200 )edit
4

answered 2014-10-24 07:32:32 +0200

chris.adams gravatar image

updated 2014-10-28 03:50:48 +0200

Hi,

Thanks for trying out the (preliminary) CardDAV and CalDAV support with the opt-in update. A couple of quick notes:

1) the calendar path is only used by the CalDAV sync adaptor, not the CardDAV one, so you don't need to fill it out with the addressbook path at all if you're only using CardDAV. If you're using CalDAV with the account, you should fill the calendar path out with the appropriate calendar path, not the addressbook path.

2) If you experience troubles / problems, and you're feeling adventurous, you can enable debug logging by (requires developer mode / ssh access, so don't do it if you don't want to enable developer mode!) sshing in, and then:

systemctl --user stop msyncd
devel-su killall msyncd
MSYNCD_LOGGING_LEVEL=9 devel-su -p msyncd

and in a different terminal, do:

devel-su journalctl -af | grep carddav # or | grep caldav to debug caldav issues

If you then trigger a sync (by editing a contact, etc), you should get all sorts of debug log output in the second terminal. This log MAY CONTAIN SENSITIVE INFORMATION including username and password, and contact details as they are synchronised - so be careful to redact any such information before posting logs either on TJC or in bug reports, etc. But it may be useful to help you determine what is going wrong, if any problems occur.

Any information which users can provide about issues will help in speeding the development of fixes which can be included in later releases!

Cheers,

Chris.

edit flag offensive delete publish link more

Comments

Yep, this seems to be the case. Thanks for clarifying.

2Ti ( 2014-10-24 10:36:04 +0200 )edit

For owncloud: I now

Then I can see the following connections on my owncloud web server:

/owncloud/remote.php/carddav/addressbooks/myuser/contacts 207 454

/owncloud/remote.php/carddav/addressbooks/myuser/contacts//owncloud/remote.php/carddav/principals/myuser 404 256

Hey - the second one should look like

/owncloud/remote.php/carddav/principals/myuser

so it is creating a double entry.

cy8aer ( 2014-10-24 12:10:01 +0200 )edit

The server path should be just https://myserver.de I think (or maybe https://myserver.de/owncloud/remote.php -- whichever url will respond to DAV discovery requests as per the RFC) as the sync adapter will automatically determine the user principal and addressbook set paths via DAV discovery from the base URL.

chris.adams ( 2014-10-28 03:52:42 +0200 )edit
1

https://myserver/owncloud/remote.php/carddav is the corresponding URL for owncloud. But Jolla does not handle the url right if I insert it this way :-/. It always appends https://myserver/owncloud/remote.php/carddav///owncloud/remote.php/carddav/principals/<user> which is wrong.</user>

Sailor ( 2014-10-28 09:53:32 +0200 )edit
0

answered 2014-10-23 16:10:00 +0200

Sailor gravatar image

updated 2014-10-23 16:24:40 +0200

2Ti gravatar image

Can anyone of a working carddav setup list the account settings with ag-tool?

ag-tool list-accounts (to get the carddav account id)
ag-tool list-settings <id>
edit flag offensive delete publish link more

Comments

3
  • default_credentials_username = name@host.com
  • Jolla/segregated_credentials/Jolla = 40
  • CredentialsId = 40
  • enabled = true
  • name = name@host.com

onlinesync-caldav

  • auth/method = password
  • server_address = https://carddav.mykolab.com
  • auth/mechanism = password
  • CredentialsId = 40
  • enabled = false
  • sync_profile_templates = []

onlinesync-carddav

  • auth/method = password
  • server_address = https://carddav.mykolab.com
  • auth/mechanism = password
  • sync_profile_templates = ["carddav.Contacts"]
  • CredentialsId = 40
  • carddav.Contacts/profile_id = carddav.Contacts-40
  • enabled = true
2Ti ( 2014-10-23 16:26:50 +0200 )edit

yes, I'd like to do that. At least CalDAV is working for me (Card DAV is not working).

Unfortunatelky I do not get any account ID (none assigned according to the message. I have no idea if that is related to Saimaa 2.0.0.10 or I am not sufficiently skilled).

So if you give me a way how to report the ag-tool results w/o account id I'm pleased to contribute what I have.

/d

dietmar ( 2016-01-02 21:44:59 +0200 )edit
0

answered 2014-10-23 22:26:09 +0200

Robbi gravatar image

Hello, I did as described, but which app are you using. I tried the native calender app, it didn´t work. Isn´t carddav and caldav just the app to make the connection to posteo? Please help. Thank you Robbi

edit flag offensive delete publish link more

Comments

I don't know about CalDav the instructions above are only for carddav, that is contacts sync, not calendar sync.

2Ti ( 2014-10-24 10:05:35 +0200 )edit

As mentioned in my post, this is for CardDAV only! You have to create a second account for the calendar where you deactivate CardDAV and activate CalDAV. As of yet, we unfortunately have to do so (at least with posteo) despite the jolla account-setup indicating otherwise by giving the option of switching both on. For the calendar, set up an account, type in username and password, use https://posteo.de:8443 for the server and /calendars/*username*/default for the server path. This works for me! And don't forget to deactivate CardDAV in this scenario.

Bimberle ( 2014-10-24 19:40:54 +0200 )edit

Btw, cheers @2Ti for the mention :-)

Bimberle ( 2014-10-24 19:42:40 +0200 )edit
Login/Signup to Answer

Question tools

Follow
10 followers

Stats

Asked: 2014-10-23 13:26:51 +0200

Seen: 3,419 times

Last updated: Oct 28 '14