Caldav - can't read (but can write) calendar

asked 2017-10-01 16:41:06 +0200

Federico gravatar image

updated 2017-10-01 16:43:15 +0200

Greetings. I am trying Caldav synchronization for the first time on my Jolla C, and I see a weird behavior.

I set up the account; I can't see the entries of the remote calendar on my Jolla calendar app, but when I create an event on the phone it is correctly pushed to the server, so I presume the authentication and account is working correctly.

When I sync manually (with the menu entry either in the calendar app or in the accounts page), nothing visible happens. The relevant log entries are:

Oct 01 15:33:55 Sailfish kernel: [13:33:55.454761] [00000928DB9C709B] [VosWD]  wlan: [E :VOS] VosWDThread: Waiting for active entry points to exit
Oct 01 15:33:55 Sailfish kernel: [13:33:55.458585] [00000928DB9D8F2E] [wpa_s]  wlan: [E :HDD] wlan_hdd_get_frame_logs: Frame Logging not init!
Oct 01 15:33:56 Sailfish estart[26765]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/caldav-sync-4.xml"
Oct 01 15:33:56 Sailfish [1148]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/caldav-sync-4.xml"
Oct 01 15:33:56 Sailfish estart[26765]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/carddav.Contacts-4.xml"
Oct 01 15:33:56 Sailfish [1148]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/nemo/.cache/msyncd/sync/carddav.Contacts-4.xml"
Oct 01 15:33:56 Sailfish estart[26765]: [D] unknown:0 - account.cpp: 626 account_store_cb Saved accunt ID: 4
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/service/bt.xml"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "bt"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/client/syncml.xml"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "syncml"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/storage/hcontacts.xml"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "hcontacts"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/storage/hcalendar.xml"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "hcalendar"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/storage/hnotes.xml"
Oct 01 15:33:58 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "hnotes"
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileN
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - connection-manager.cpp 132 init Peer connection unavailable, activating service
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x17ac00)
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - authsessionimpl.cpp 94 initInterface
Oct 01 15:33:58 Sailfish dbus-daemon[1094]: Activating service name='com.google.code.AccountsSSO.SingleSignOn'
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - authsessionimpl.cpp 94 initInterface
Oct 01 15:33:58 Sailfish [27330]: signondaemon.cpp 388 init Failed to SUID root. Secure storage will not be available.
Oct 01 15:33:58 Sailfish dbus-daemon[1094]: Successfully activated service 'com.google.code.AccountsSSO.SingleSignOn'
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - connection-manager.cpp 150 init Connected to "libsignon-qt1"
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x17ac00)
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x17ac00)
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x17ac00)
Oct 01 15:33:58 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 4 "
Oct 01 15:33:58 Sailfish caldav-client[27689]: [W] unknown:0 - sqlitestorage.cpp: 193 - database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db" opened
Oct 01 15:33:59 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, ()))("AuthMethods", QVariant(QDBusA
Oct 01 15:33:59 Sailfish caldav-client[27689]: [D] unknown:0 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x17ac00)
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/service/bt.xml"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "bt"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/client/syncml.xml"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "syncml"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/storage/hcontacts.xml"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "hcontacts"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/storage/hcalendar.xml"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "hcalendar"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Profile file not found: "/home/nemo/.cache/msyncd/storage/hnotes.xml"
Oct 01 15:33:59 Sailfish [1148]: [W] unknown:0 - Failed to load profile: "hnotes"

Note that there is a /home/nemo/.cache/msyncd directory on my system, but it does not contain the directories mentioned in the log above and it is not readable by nemo:

[root@Sailfish msyncd]# ls -la /home/nemo/.cache/msyncd 
total 40
drwxrwx---  4 privileged privileged  4096 Aug  8  2016 .
drwx------ 17 nemo       nemo        4096 Sep 28 20:11 ..
drwxrwx---  3 privileged privileged  4096 Oct  1 15:21 sync
drwxr-xr-x  2 nemo       privileged  4096 Aug  8  2016 sync-app
-rw-r--r--  1 nemo       privileged 22528 Aug  8  2016 syncml.db
[root@Sailfish msyncd]# ls -la /home/nemo/.cache/msyncd/*
-rw-r--r-- 1 nemo       privileged 22528 Aug  8  2016 /home/nemo/.cache/msyncd/syncml.db

/home/nemo/.cache/msyncd/sync:
total 24
drwxrwx--- 3 privileged privileged 4096 Oct  1 15:21 .
drwxrwx--- 4 privileged privileged 4096 Aug  8  2016 ..
-rw-r--r-- 1 nemo       privileged 2747 Aug  8  2016 654164446.xml
-rw-r--r-- 1 nemo       privileged 1034 Oct  1 15:33 caldav-sync-4.xml
-rw-r--r-- 1 nemo       privileged 1047 Oct  1 15:33 carddav.Contacts-4.xml
drwxr-xr-x 2 nemo       privileged 4096 Oct  1 15:21 logs

/home/nemo/.cache/msyncd/sync-app:
total 252
drwxr-xr-x 2 nemo       privileged   4096 Aug  8  2016 .
drwxrwx--- 4 privileged privileged   4096 Aug  8  2016 ..
-rw-r--r-- 1 nemo       privileged    295 Aug  8  2016 devInfo.xml
-rw-r--r-- 1 nemo       privileged 186368 Aug  8  2016 hcontacts.db
-rw-r--r-- 1 nemo       privileged  57344 Aug  8  2016 syncmladapter.db

Any idea?

edit retag flag offensive close delete

Comments

Can you follow the method described in the wiki to run msyncd in debug mode and gather a full log ?

Thank you in advance.

PS: the file you're looking for in .cache is .cache/msync/sync/logs/caldav-sync-4.log.xml but it does not currently contain many information, just the code for failure reason, if any.

Damien Caliste ( 2017-10-01 18:48:53 +0200 )edit