I had an issue with my CardDAV account and tried debugging it. I found two documents that describe how to obtain logs:
CalDAV and CardDAV Community Contributions | Sailfish OS Documentation and
Collect Synchronization Logs | Sailfish OS Documentation
The first one states to run msyncd like this:
QTCONTACTS_SQLITE_TWCSA_TRACE=1 QTCONTACTS_SQLITE_TRACE=1 MSYNCD_LOGGING_LEVEL=8 devel-su -p msyncd
The second one wants me to do this:
devel-su MSYNCD_LOGGING_LEVEL=8 msyncd 2>&1 | cat > msyncd.log
The first command seems to work nicely while the second starts with a warning, supposedly because I’m root:
** (process:14664): WARNING **: 14:08:53.479: Incorrect ownership on accounts privilege directory
The sync fails because it is searching for the configuration file in the root file system:
Profile file not found: "/root/.local/share/system/privileged/msyncd/sync/carddav.Contacts-24.xml"
Is my sailfish OS borked or is the documentation wrong?