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

New CardDav/CalDav support got to it working with owncloud?

asked 2014-10-24 20:19:56 +0300

FloR707 gravatar image

updated 2015-11-21 10:20:34 +0300

Hi does anyone got the new CalDav/CardDav support working with owncloud? I am not sure what URLs to enter. I also do not like that you do not see if the system is trying to sync. Is there a log file I could check?

I am using OC 8.0.2 on a hosted server with a self signed SSL certificate.

I also dislike that it is not possible to edit the server information after the account was set up. I always have to delete the account and start from scratch. =(

[edit]

I spend another two days looking at OC to get it working. Finally I gave up. The Jolla functions do not work for me and I do not know why. SyncEvolution gives me a 403 error.

I think it is a problem on several sides. 1. The Jolla client is not ready, 2. OC is not working if self-singed certificates are used. I will wait for updates on both sides and hope that it will work at some point in the future...

[edit 2014-12-12] The last days I spend some more time trying to get this working. I updated to OC 7.0.4 but with Syncevolution I still get an 403 access denied error and CalDav account still does nothing. Is it possible to see in an OC log if there was a sync attempt?

[edit 2014-12-13] I downgraded to OC 6.0.6 and switched to a MySQL DB and now the CalDav works for me as well with cdv's settings. At last =)

[edit 2015-01-04] Looks like the problem was not with the OC version but with the database. I did a new setup with OC 7.0.4 and MySQL (first try was SQLite) and it works for me with a self-signed certificate. What I did prior to setting up the account is to open the OC web interface with a browser to "install" the SSL certificates. Looks like the CalDav client is not capable of doing that.

[edit 2015-04-18] Calendar still works with OC 8.0.2 on a hosted server with self-signed SSL certificate. Looks like people got contacts so sync as well as long they do not use SSL and OC 8.x. I hope that the SSL issue with contacts will be solved in the next update.

[edit 2015-11-21] Since the update to 2.0 I think owncloud is working fine. Both caldav and carddav with a self-signed cert.

edit retag flag offensive close delete

Comments

8

Agreed -some kind of sync notification or progress would certainly be helpful.

Malakim ( 2014-10-24 21:03:40 +0300 )edit
3

I got CalDav to work with path: /owncloud/remote.php/caldav/calendars/-username- Still no luck with CardDav though.

Maldela ( 2014-10-24 21:17:30 +0300 )edit

I got the error message from dbus-monitor.

gehowa ( 2014-10-25 00:12:08 +0300 )edit

The contact addressbook set path is determined using DAV discovery (ie, automatically during sync). If that is not working, can you get the log of the sync (see raven24's answer below) which may help you determine what is going wrong for CardDAV sync?

chris.adams ( 2014-10-28 03:46:34 +0300 )edit

I am still getting nowhere here. I followed raven's instructions but I cannot set up the service. I always get an error after accepting the login and server details. The log says the following:

caldav-client[16157]: [D] main:70 - attempting to register dbus service: "com.buteo.msyncd.plugin.caldav-sync-100" 
caldav-client[16157]: [D] main:77 - Plugin  "caldav"  with profile  "caldav-sync-100"  registered at dbus  "com.buteo.msyncd.plugin.caldav-sync-100"  and path  /
caldav-client[16157]: [D] Buteo::ProfileManagerPrivate::loadLog:167 - No sync log found for profile: "caldav-sync-100"

OC gives me a warning after each try:

Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (error code: 35) (Sabre\DAV\Exception)

I guess that is due to the fact that I am using a self signed SSL certificate. I also found a solution for that warning but that did not work. The warning is still there and I cannot connect.

I used to be able to sync using SyncEvolution but only until I upgraded to 7.0.0

FloR707 ( 2014-10-28 19:06:37 +0300 )edit

12 Answers

Sort by » oldest newest most voted
1

answered 2014-12-11 20:14:59 +0300

Micha_Btz gravatar image

updated 2015-04-22 14:41:06 +0300

Yo gravatar image

i there a fix for carddav sync with owncloud?

Buteo::ProfileManagerPrivate::ProfileManagerPrivate:126 - Primary profile path set to "/home/nemo/.cache/msyncd" 
Buteo::ProfileManagerPrivate::ProfileManagerPrivate:127 - Secondary profile path set to "/etc/buteo/profiles" 
Buteo::LogTimer::LogTimer:72 - "Buteo::ProfileManager::ProfileManager(const QString&, const QString&)" :Entry 
Buteo::LogTimer::~LogTimer:83 - "Buteo::ProfileManager::ProfileManager(const QString&, const QString&)" :Exit, execution time: 0 ms 
Buteo::ProfileManagerPrivate::loadLog:167 - No sync log found for profile: "carddav.Contacts-21" 
Buteo::LogTimer::LogTimer:72 - "CardDavClient::CardDavClient(const QString&, const Buteo::SyncProfile&, Buteo::PluginCbInterface*)" :Entry 
Buteo::LogTimer::~LogTimer:83 - "CardDavClient::CardDavClient(const QString&, const Buteo::SyncProfile&, Buteo::PluginCbInterface*)" :Exit, execution time: 0 ms 
Buteo::LogTimer::LogTimer:72 - "virtual Buteo::ProfileManager::~ProfileManager()" :Entry 
Buteo::LogTimer::~LogTimer:83 - "virtual Buteo::ProfileManager::~ProfileManager()" :Exit, execution time: 0 ms 
Buteo::LogTimer::LogTimer:72 - "virtual bool CardDavClient::init()" :Entry 
Buteo::LogTimer::~LogTimer:83 - "virtual bool CardDavClient::init()" :Exit, execution time: 0 ms 
ContactsEngine::ContactsEngine:803 - The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Buteo::LogTimer::LogTimer:72 - "bool PluginServiceObj::startSync()" :Entry 
Buteo::LogTimer::~LogTimer:83 - "bool PluginServiceObj::startSync()" :Exit, execution time: 0 ms 
Buteo::LogTimer::LogTimer:72 - "virtual bool CardDavClient::startSync()" :Entry 
Buteo::LogTimer::~LogTimer:83 - "virtual bool CardDavClient::startSync()" :Exit, execution time: 0 ms 
Syncer::startSync:83 - void Syncer::startSync(int) starting carddav sync with account 21 
SignOn::IdentityImpl::updateState:103 - identityimpl.cpp 103 updateState Updating state:  PendingRegistration 
SignOn::AuthSessionImpl::initInterface:174 - authsessionimpl.cpp 174 initInterface 
SignOn::AuthSessionImpl::process:270 - authsessionimpl.cpp 270 process sending to queue 
SignOn::IdentityImpl::updateState:103 - identityimpl.cpp 103 updateState Updating state:  Ready 
SignOn::DBusOperationQueueHandler::execQueuedOperations:137 - dbusoperationqueuehandler.cpp 137 execQueuedOperations Executing cached oparation: SIGNATURE: "process(SessionData,QString)" 
SignOn::DBusOperationQueueHandler::execQueuedOperations:149 - dbusoperationqueuehandler.cpp 149 execQueuedOperations 
SignOn::AuthSessionImpl::process:265 - authsessionimpl.cpp 265 process sending to daemon 
CardDav::fetchUserInformation:290 - void CardDav::fetchUserInformation() requesting principal urls for user 
RequestGenerator::generateRequest:88 - generateRequest(): "" "https://myowncloud.server.de" "" "0" "PROPFIND" "<d:propfind xmlns:d="DAV:"><d:prop><d:current-user-principal /></d:prop></d:propfind>" 
CardDav::userInformationResponse:306 - void CardDav::userInformationResponse() error: 3 ( 0 ) 
Buteo::LogTimer::LogTimer:72 - "void CardDavClient::syncFinished(int, const QString&)" :Entry 
Buteo::LogTimer::~LogTimer:83 - "void CardDavClient::syncFinished(int, const QString&)" :Exit, execution time: 1 ms 
CardDavClient::syncFinished:137 - CardDAV sync failed: 401 ""
edit flag offensive delete publish link more

Comments

2

i have created an issue, maybe we get a workaround https://github.com/nemomobile/buteo-sync-plugin-carddav/issues

Micha_Btz ( 2014-12-11 21:02:41 +0300 )edit
1

the answer is, that the version in jolla quite old is. can anyone build a package for jolla from the new version?

Micha_Btz ( 2014-12-13 22:17:35 +0300 )edit

Version in u10: buteo-sync-plugin-carddav-0.0.6-1.2.2.armv7hl

Seems to be the most recent on github, released in September. I tried switching Carddav on in the account settings, but it didn't work. Might try recreating the account.

Andy Branson ( 2014-12-19 11:51:19 +0300 )edit
0

answered 2015-11-26 00:30:17 +0300

antoniovr gravatar image

I have tested every combination (server name / path) for a caldav owncloud account without success. Something is going wrong at some point, as it detects the names of the calendars, but it is not able to sync. Carddav has been synced without problems.

Errors in sync are always the following

nov 25 23:26:29 Jolla estart[6144]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/caldav-sync-44.xml" 
nov 25 23:26:29 Jolla [2195]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/caldav-sync-44.xml" 
nov 25 23:26:29 Jolla [2195]: [W] Buteo::ProfileManagerPrivate::writeProfileFile:1153 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/caldav-sync-44.xml" 
nov 25 23:26:31 Jolla caldav-client[20923]: [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 existe el fichero o el directorio") 1 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::ConnectionManager::init:132 - connection-manager.cpp 132 init Peer connection unavailable, activating service 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x1055300) 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::ConnectionManager::init:150 - connection-manager.cpp 150 init Connected to "libsignon-qt1" 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1055300) 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x1055300) 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x1055300) 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::infoUpdated:442 - identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 50 " 
nov 25 23:26:31 Jolla caldav-client[20923]: [W] mKCal::SqliteStorage::open:193 - sqlitestorage.cpp: 193 - database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db" opened 
nov 25 23:26:31 Jolla caldav-client[20923]: [W] CalDavClient::cleanSyncRequired:185 - Deleting caldav notebooks associated with this account: 44 due to clean sync 
nov 25 23:26:31 Jolla caldav-client[20923]: [W] CalDavClient::cleanSyncRequired:188 - Deleting caldav notebooks associated with nonexistent accounts due to clean sync 
nov 25 23:26:31 Jolla caldav-client[20923]: [W] CalDavClient::cleanSyncRequired:223 - Finished pre-sync cleanup with caldav account 44 
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::getInfoReply:381 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, () ) ) ( "AuthMethods" ,  QVariant(QDBusArgument, ) ) ( "Caption" ,  QVariant(QString, "Jolla") ) ( "Id" ,  QVariant(uint, 50) ) ( "Owner" ,  QVariant(QStringList, () ) ) ( "Realms" ,  QVariant(QStringList, () ) ) ( "RefCount" ,  QVariant(int, 0) ) ( "StoreSecret" ,  QVariant(bool, true) ) ( "Type" ,  QVariant(int, 0) ) ( "UserName" ,  QVariant(QString, "antviro") ) ( "UserNameSecret" ,  QVariant(bool, false) ) ( "Validated" ,  QVariant(bool, true) ) )  
nov 25 23:26:31 Jolla caldav-client[20923]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x1055300) 
nov 25 23:26:32 Jolla caldav-client[20923]: [C] Request::finishedWithError:100 - "REPORT" request failed. 401 "Network request failed with QNetworkReply::NetworkError: 299" 
nov 25 23:26:32 Jolla caldav-client[20923]: [C] CalDavClient::syncFinished:370 - CalDAV sync failed: 401 "Network request failed with QNetworkReply::NetworkError: 299"

Last lines show the error, and always that I get set up the account same error appears when synchronizing. Are you having any problems at that?

edit flag offensive delete publish link more

Comments

From the documentation: QNetworkReply::UnknownContentError 299 an unknown error related to the remote content was detected So I don't think it is a jolla bug. Its more likely that there is something wrong with your owncloud setup. Do you have other clients using the sync functionality from your server and do they work?

Salzi ( 2015-11-26 09:06:00 +0300 )edit
Login/Signup to Answer

Question tools

Follow
62 followers

Stats

Asked: 2014-10-24 20:19:56 +0300

Seen: 17,686 times

Last updated: Nov 26 '15