Problem setting up Carddav(and Caldav) on JollaC with Fastmail. [not relevant]
asked 2016-08-21 18:30:00 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
I've tried to make Carddav and Caldav to work on my JollaC but I don't seem to do it right. Maybe I can fix it with some help of you guys if I share my findings here.
I'm not sure what I'm doing wrong because on the Jolla1 I had it working with Carddav.
I'm using the Fastmail config setting as stated on their site.
With those settings it isn't working, I've deleted the account rebooted the phone and tried again(a dozen of times). I've already excluded Caldav because, when setting up the account, it gives a direct error if Caldav is included.
When i setup the account I use the following settings:
Username: prefix+Default@mydomain.nl (The Default is for a personal adressbook, also tried it without)
Password: My password for fastmail.com
Server: https://carddav.fastmail.com/ (tried it with / and without)
Under the Cardav button I also tried several servers for clients that doesn't support auto-discovery such as:
https://carddav.fastmail.com/dav/addressbooks/user/username@domain.tld/Default
Account creation goes well, but my addressbook isn't synchronized.
I've searched TJC and found some help in another thread howto find logs, so I've tried the following in terminal:
devel-su journalctl -af | grep carddav
The logs gives me a error:
[W] Buteo::ProfileManagerPrivate::load:151 - Failed to load profile: "carddav.Contacts-72"
I'm not so familiar with the english language and debugging stuff so there i'm stuck.
Can anyone point me in the right direction? If it includes cli work, please give me step by step instructions ;)
EDIT 22-08-2016:
I've tried deleting the calendars as written in this TJC post hoping that it will help my case.
But it didn't, now when I run the journalctl when trying to create a new account I get the following output:
Aug 22 21:16:15 Sailfish estart[10097]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/carddav.Contacts-76.xml"
Aug 22 21:16:15 Sailfish [984]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/carddav.Contacts-76.xml"
Aug 22 21:16:16 Sailfish carddav-client[12260]: [W] ContactsEngine::ContactsEngine:845 - The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::ConnectionManager::setupSocketConnection:106 - connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/100000/signond/socket: No such file or directory") 1
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::ConnectionManager::init:132 - connection-manager.cpp 132 init Peer connection unavailable, activating service
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "PendingRegistration" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::ConnectionManager::init:150 - connection-manager.cpp 150 init Connected to "libsignon-qt1"
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "Ready" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "NeedsUpdate" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "PendingUpdate" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::infoUpdated:442 - identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 91 "
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::getInfoReply:381 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, () ) ) ( "AuthMethods" , QVariant(QDBusArgument, ) ) ( "Caption" , QVariant(QString, "Jolla") ) ( "Id" , QVariant(uint, 91) ) ( "Owner" , QVariant(QStringList, () ) ) ( "Realms" , QVariant(QStringList, () ) ) ( "RefCount" , QVariant(int, 0) ) ( "StoreSecret" , QVariant(bool, true) ) ( "Type" , QVariant(int, 0) ) ( "UserName" , QVariant(QString, "myname+Default@mydomain.nl") ) ( "UserNameSecret" , QVariant(bool, false) ) ( "Validated" , QVariant(bool, true) ) )
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "Ready" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:17 Sailfish carddav-client[12260]: [W] CardDav::addressbooksInformationResponse:598 - void CardDav::addressbooksInformationResponse() error: 203 ( 404 )
Aug 22 21:16:17 Sailfish carddav-client[12260]: [W] Syncer::cardDavError:290 - CardDAV sync finished with error: 404 purging state data for account: 76
Aug 22 21:16:17 Sailfish carddav-client[12260]: [C] CardDavClient::syncFinished:142 - CardDAV sync failed: 401 ""
Aug 22 21:16:15 Sailfish estart[10097]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/carddav.Contacts-76.xml"
Aug 22 21:16:15 Sailfish [984]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/carddav.Contacts-76.xml"
Aug 22 21:16:16 Sailfish carddav-client[12260]: [W] ContactsEngine::ContactsEngine:845 - The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::ConnectionManager::setupSocketConnection:106 - connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/100000/signond/socket: No such file or directory") 1
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::ConnectionManager::init:132 - connection-manager.cpp 132 init Peer connection unavailable, activating service
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "PendingRegistration" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::ConnectionManager::init:150 - connection-manager.cpp 150 init Connected to "libsignon-qt1"
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "Ready" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "NeedsUpdate" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "PendingUpdate" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::infoUpdated:442 - identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 91 "
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::getInfoReply:381 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, () ) ) ( "AuthMethods" , QVariant(QDBusArgument, ) ) ( "Caption" , QVariant(QString, "Jolla") ) ( "Id" , QVariant(uint, 91) ) ( "Owner" , QVariant(QStringList, () ) ) ( "Realms" , QVariant(QStringList, () ) ) ( "RefCount" , QVariant(int, 0) ) ( "StoreSecret" , QVariant(bool, true) ) ( "Type" , QVariant(int, 0) ) ( "UserName" , QVariant(QString, "joost+Default@bonga.nl") ) ( "UserNameSecret" , QVariant(bool, false) ) ( "Validated" , QVariant(bool, true) ) )
Aug 22 21:16:16 Sailfish carddav-client[12260]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state: "Ready" SignOn::IdentityImpl(0xf5a800)
Aug 22 21:16:17 Sailfish carddav-client[12260]: [W] CardDav::addressbooksInformationResponse:598 - void CardDav::addressbooksInformationResponse() error: 203 ( 404 )
Aug 22 21:16:17 Sailfish carddav-client[12260]: [W] Syncer::cardDavError:290 - CardDAV sync finished with error: 404 purging state data for account: 76
Aug 22 21:16:17 Sailfish carddav-client[12260]: [C] CardDavClient::syncFinished:142 - CardDAV sync failed: 401 ""
So i re-created the account with the server a bit different and got this output with this line coming back:
Aug 22 21:24:37 Sailfish carddav-client[12828]: [W] Syncer::cardDavError:290 - CardDAV sync finished with error: 404 purging state data for account: 77
EDIT 2:
According to some 2013 IOS forum error: 404
means wrong path.
So I recreated the account again multiple times with different settings but all without result.
I'm done.
The logs you've provided are either truncated or at a low level of debug output.
Please ensure that you've modified /etc/systemd/journald.conf and set RateLimitBurst=5000 and RateLimitInterval=5s and then reboot your device.
Then, do the following:
1) ssh into device, and restart the sync controller with extra debugging enabled:
2) leave that one running, and open a new terminal to the device, and collect logs:
3) trigger a sync with the account.
You can send the logs (after you redact any personal information) to chris dot adams at jolla dot com and I will investigate. Thanks!
chris.adams ( 2016-08-23 10:11:33 +0200 )editRemoved the how-to tag. A how-to is a document that step-by-step explains how to achieve something specific in Sailfish OS. ...and not a question. I hope the retagging is OK.
vattuvarg ( 2016-08-23 13:47:42 +0200 )editNo problem.
BonoNL ( 2016-08-24 12:34:23 +0200 )editThe logs that I send to Chris where these:
I made a new account 4 times with a different setup because I wasn't so sure of the settings. That's why this is such a big list.
BonoNL ( 2016-08-29 21:43:35 +0200 )edit