Ask / Submit
4

caldav sync with nextcloud 15 and xa2 only works at account creation

asked 2019-02-14 12:37:26 +0200

_stefan_ gravatar image

updated 2019-02-14 12:57:45 +0200

pawel gravatar image

The calendar synchronization only works directly at account creation on jolla Sipoonkorpi - Xperia XA2 together with nextcloud 15.04. Afterwards the caldav sync log always state majorcode 1 minorcode 401 error. So it seems to me that there is some error at authorization? Any suggestion to fix this, if there is already an other question addressing this issue, please link forward to it, I didn't find one.

edit retag flag offensive close delete

Comments

Works for me.

With 401 I'd feel the issue lies somewhere else. You didn't have SSL issues inbetween, or revoked your token by accident, or changed your password if you used this…? If you enabled 2FA on Nextcloud, then you have to use an app token instead of the main password.

Blizzz ( 2019-02-14 13:09:52 +0200 )edit

Thank you for your response. I don't have two factor authentification activated. It works fine with cal dav on an android phone. I recreated the account on my jolla phone multiple times each time the same behaviour sync is working at creation time, but not later on. The carddav sync seems to work - at least I don't see any errors there in the log. It's only the caldav sync with problems.

_stefan_ ( 2019-02-14 14:38:39 +0200 )edit

I have nearly same problems on my XA2 with nextcloud. At least sync is working when I add, change or delete appointments on my Jolla. After sync, nextcloud shows the changes. But when I add, change or delete appointments on nextcloud, after sync, nothing changes on my Jolla. I also think, it is not because of nextcloud but instead because of Sailfish. Nextcloud-Sync with other phones (Android) works without any problems...

tomas3000 ( 2019-02-14 16:05:29 +0200 )edit

when you configured your accounts, did you specify just your domain, or some magic paths as well?

Blizzz ( 2019-02-14 16:25:19 +0200 )edit

No special paths at Calender or Contacts. Have you tested if it works when you change appointments on the phone (instead of change them on nextcloud)?

tomas3000 ( 2019-02-14 16:48:08 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-02-14 22:21:48 +0200

_stefan_ gravatar image

Mostly solved - Thank you for your support. I was able to pin the problem down to one of my calendars by checking the sync log as described here https://jolla.zendesk.com/hc/en-us/articles/115011963227-Collecting-synchronization-logs when I deactivate the synchronization for this calendar the synchronization of the other calendars works.

It seems for some reasons this calendar couldn't be accessed by Jolla. I have the error log attatched. Are there any known problems with _ charactes within the path, as this is the only thing which is different? Of course it would be still interesting what caused the bug with this certain calendar in the first place, to avoid it in the future, any ideas are welcome.

[W] unknown:0 - This device does not have a BT adapter
[W] unknown:0 - This device does not have a BT adapter
[D] unknown:0 - connection-manager.cpp 107 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
[D] unknown:0 - connection-manager.cpp 148 init Peer connection unavailable, activating service
[D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x556650)
[D] unknown:0 - authsessionimpl.cpp 94 initInterface
[D] unknown:0 - authsessionimpl.cpp 94 initInterface
[D] unknown:0 - connection-manager.cpp 165 init Connected to "libsignon-qt1"
[D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x556650)
[D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x556650)
[D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x556650)
[D] unknown:0 - identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 9 "
[W] unknown:0 - sqlitestorage.cpp: 193 - database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db" opened
[D] unknown:0 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, ()))("AuthMethods", QVariant(QDBusArgument, ))("Caption", QVariant(QString, "Jolla"))("Id", QVariant(uint, 9))("Owner", QVariant(QStringList, ()))("Realms", QVariant(QStringList, ()))("RefCount", QVariant(int, 0))("StoreSecret", QVariant(bool, true))("Type", QVariant(int, 0))("UserName", QVariant(QString, "actualusername"))("UserNameSecret", QVariant(bool, false))("Validated", QVariant(bool, true)))
[D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x556650)
[W] unknown:0 - The "PUT" operation failed with error: QNetworkReply::NetworkError(ContentNotFoundError) : 401
[W] unknown:0 - "PUT" request failed. 401 "Network request failed with QNetworkReply::NetworkError: 203"
[W] unknown:0 - Aborting sync, "PUT" failed "Network request failed with QNetworkReply::NetworkError: 203" for notebook "/remote.php/dav/calendars/username/otherusername/" of account: "7"
[W] unknown:0 - Aborting! Notebook synchronisation failed: 401 : "Network request failed with QNetworkReply::NetworkError: 203"
[W] unknown:0 - CalDAV sync failed: 401 "Network request failed with QNetworkReply::NetworkError: 203"
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2019-02-14 12:37:26 +0200

Seen: 201 times

Last updated: Feb 14