Unable to fetch contacts from a Nextcloud account

REPRODUCIBILITY: 100% (at least on my side)
OS VERSION: 4.5.0.24
HARDWARE: X10 II
UI LANGUAGE: English
REGRESSION: ?

DESCRIPTION:

I set up a Nextcloud account, choose the option Sync schedule Twice a day and checked the service Contacts.

Once I created the account, Setting up account... was pending a really long time and I unfortunately closed the app Settings. Once I went back, the account was marked as created.

Something went wrong once the account was created, that’s sure.

PRECONDITIONS:

  • Have a fresh new installed SailfishOS
  • Have an address book with more than 22k contacts…

STEPS TO REPRODUCE:

  1. Create a nextcloud account
  2. Hope it gets pending
  3. Close unfortunately the Setting app
  4. Open again and see the account as created
  5. Sync
  6. Open app Contact
  7. See no contacts

EXPECTED RESULT:

A notification or a message error saying the creation had issues and ask the user to connect again.

ACTUAL RESULT:

Everything looks ok, outside you have no contacts

MODIFICATIONS:

Chum is installed.

ADDITIONAL INFORMATION:

Some logs :

kernel: i2c_geni 4a88000.i2c: i2c error :-107
kernel: pmi632_charger: somc_aicl_irq_handler: IRQ: aicl-done
kernel: ALG: cap_learning_update: [SOMC CL][OFF] charge_status:1 bsoc_cp:4374
kernel: i2c_geni 4a8c000.i2c: i2c error :-107
kernel: afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 45104
kernel: afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 45104
kernel: send_afe_cal_type cal_block not found!!
estart[13236]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/carddav.Contacts-5.xml"
[5508]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/carddav.Contacts-5.xml"
estart[13236]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/caldav-sync-5.xml"
[5508]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/caldav-sync-5.xml"
estart[13236]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Images-5.xml"
[5508]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Images-5.xml"
estart[13236]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Posts-5.xml"
[5508]: [W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Posts-5.xml"
dbus-daemon[5478]: dbus-daemon[5478]: [session uid=100000 pid=5478] Activating service name='com.google.code.AccountsSSO.SingleSignOn' requested by ':1.281' (uid=100000 pid=23106 comm="/usr/libexec/buteo-oopp-runner nextcloud-posts nex" label="u:r:kernel:s0")
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
dbus-daemon[5478]: dbus-daemon[5478]: [session uid=100000 pid=5478] Successfully activated service 'com.google.code.AccountsSSO.SingleSignOn'
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
buteo-oopp-runner[23123]: [W] unknown:0 - The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
invoker[5517]: SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
buteo-oopp-runner[23106]: [D] unknown:0 - Sending request: "GET" to: "https://murena.io/ocs/v2.php/cloud/capabilities" data: ""
buteo-oopp-runner[23109]: [D] unknown:0 - Sending request: "GET" to: "https://murena.io/ocs/v2.php/cloud/user" data: ""
kernel: pmi632_charger: somc_aicl_irq_handler: IRQ: aicl-done
kernel: ALG: cap_learning_update: [SOMC CL][OFF] charge_status:1 bsoc_cp:4374
buteo-oopp-runner[23109]: [D] unknown:0 - "{\"ocs\":{\"meta\":{\"status\":\"ok\",\"statuscode\":200,\"message\":\"OK\"},\"data\":{\"id\":\"pherjung@e.email\",\"lastLogin\":1708952893000,\"backend\":\"LDAP\",\"subadmin\":[],\"quota\":{\"free\":1656270343,\"used\":3712438777,\"total\":5368709120,\"relative\":69.15,\"quota\":5368709120},\"avatarScope\":\"v2-federated\",\"email\":\"pherjung@e.email\",\"emailScope\":\"v2-federated\",\"additional_mail\":[],\"additional_mailScope\":[],\"displaynameScope\":\"v2-federated\",\"phone\":\"\",\"phoneScope\":\"v2-local\",\"address\":\"\",\"addressScope\":\"v2-local\",\"website\":\"\",\"websiteScope\":\"v2-local\",\"twitter\":\"\",\"twitterScope\":\"v2-local\",\"fediverse\":\"\",\"fediverseScope\":\"v2-local\",\"organisation\":\"\",\"organisationScope\":\"v2-local\",\"role\":\"\",\"roleScope\":\"v2-local\",\"headline\":\"\",\"headlineScope\":\"v2-local\",\"biography\":\"\",\"biographyScope\":\"v2-local\",\"profile_enabled\":\"1\",\"profile_enabledScope\":\"v2-local\",\"groups\":[],\"language\":\"fr\",\"locale\":\"fr_CH\",\"notify_email\":null,\"backendCapabilities\":{\"setDisplayName\":true,\"setPassword\":true},\"display-name\":\"Patrick Hervieux\"}}}"
buteo-oopp-runner[23109]: [D] unknown:0 - Sending request: "PROPFIND" to: "https://murena.io/remote.php/dav/files/pherjung@e.email/Photos" data: "<d:propfind xmlns:d=\"DAV:\"><d:prop xmlns:oc=\"http://owncloud.org/ns\"><d:getlastmodified /><d:getcontenttype /><d:resourcetype /><d:getetag /><oc:fileid /><oc:owner-id /><oc:size /></d:prop></d:propfind>"
buteo-oopp-runner[23106]: [D] unknown:0 - "{\"ocs\":{\"meta\":{\"status\":\"ok\",\"statuscode\":200,\"message\":\"OK\"},\"data\":{\"version\":{\"major\":26,\"minor\":0,\"micro\":8,\"string\":\"26.0.8\",\"edition\":\"\",\"extendedSupport\":false},\"capabilities\":{\"core\":{\"pollinterval\":60,\"webdav-root\":\"remote.php\\/webdav\",\"reference-api\":true,\"reference-regex\":\"(\\\\s|\\\\n|^)(https?:\\\\\\/\\\\\\/)((?:[-A-Z0-9+_]+\\\\.)+[-A-Z]+(?:\\\\\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\\\s|\\\\n|$)\"},\"bruteforce\":{\"delay\":0},\"metadataAvailable\":{\"size\":[\"\\/image\\\\\\/.*\\/\"],\"gps\":[\"\\/image\\\\\\/.*\\/\"]},\"files\":{\"bigfilechunking\":true,\"blacklisted_files\":[\".htaccess\"],\"directEditing\":{\"url\":\"https:\\/\\/murena.io\\/ocs\\/v2.php\\/apps\\/files\\/api\\/v1\\/directEditing\",\"etag\":\"7bd793163b495a10d81f3e80d750ecc1\",\"supportsFileId\":true},\"comments\":true,\"undelete\":true},\"activity\":{\"apiv2\":[\"filters\",\"filters-api\",\"previews\",\"rich-strings\"]},\"ocm\":{\"enabled\":true,\"apiVersion\":\"1.0-proposal1\",\"endPoint\":\"https:\\/\\/murena.io\\/ocm\",\"resourceTypes\":[{\"name\":\"file\",\"shareTypes\":[\"user\",\"group\"],\"protocols\":{\"webdav\":\"\\/public.php\\/webdav\\/\"}}]},\"dav\":{\"chunking\":\"1.0\",\"bulkupload\":\"1.0\"},\"deck\":{\"version\":\"1.9.5\",\"canCreateBoards\":true,\"apiVersions\":[\"1.0\",\"1.1\"]},\"drop-account\":{\"enabled\":true,\"delay\":{\"enabled\":false,\"hours\":24},\"details\":null,\"api-version\":\"v1\"},\"external\":{\"v1\":[\"sites\",\"device\",\"groups\",\"redirect\"]},\"files_sharing\":{\"api_enabled\":true,\"public\":{\"enabled\":true,\"password\":{\"enforced\":false,\"askForOptionalPassword\":false},\"expire_date\":{\"enabled\":false},\"multiple_links\":true,\"expire_date_internal\":{\"enabled\":false},\"expire_date_remote\":{\"enabled\":false},\"send_mail\":false,\"upload\":true,\"upload_files_drop\":true},\"resharing\":true,\"user\":{\"send_mail\":false,\"expire_date\":{\"enabled\":true}},\"group_sharing\":false,\"group\":{\"enabled\":false,\"expire_date\":{\"enabled\":true}},\"default_permissions\":31,\"federation\":{\"outgoing\":true,\"incoming\":true,\"expire_date\":{\"enabled\":true},\"expire_date_supported\":{\"enabled\":true}},\"sharee\":{\"query_lookup_default\":false,\"always_show_unique\":true},\"sharebymail\":{\"enabled\":true,\"send_password_by_mail\":true,\"upload_files_drop\":{\"enabled\":true},\"password\":{\"enabled\":true,\"enforced\":false},\"expire_date\":{\"enabled\":true,\"enforced\":false}}},\"forms\":{\"version\":\"3.4.5\",\"apiVersions\":[\"v2\",\"v2.1\"]},\"notes\":{\"api_version\":[\"0.2\",\"1.3\"],\"version\":\"4.9.2\"},\"notifications\":{\"ocs-endpoints\":[\"list\",\"get\",\"delete\",\"delete-all\",\"icons\",\"rich-strings\",\"action-web\",\"user-status\",\"exists\"],\"push\":[\"devices\",\"object-data\",\"delete\"],\"admin-notifications\":[\"ocs\",\"cli\"]},\"password_policy\":{\"minLength\":8,\"enforceNonCommonPassword\":true,\"enforceNumericCharacters\":false,\"enforceSpecialCharacters\":false,\"enforceUpperLowerCase\":false,\"api\":{\"generate\":\"https:\\/\\/murena.io\\/ocs\\/v2.php\\/apps\\/password_policy\\/api\\/v1\\/generate\",\"validate\":\"https:\\/\\/murena.io\\/ocs\\/v2.php\\/apps\\/password_policy\\/api\\/v1\\/validate\"}},\"provisioning_api\":{\"version\":\"1.16.0\",\"AccountPropertyScopesVersion\":2,\"AccountPropertyScopesFederatedEnabled\":false,\"AccountPropertyScopesPublishedEnabled\":false},\"theming\":{\"name\":\"Murena\",\"url\":\"https:\\/\\/murena.io\",\"slogan\":\"Choose freedom\",\"color\":\"#ffffff\",\"color-text\":\"#000000\",\"color-element\":\"#aaaaaa\",\"color-element-bright\":\"#aaaaaa\",\"color-element-dark\":\"#ffffff\",\"logo\":\"https:\\/\\/murena.io\\/apps\\/theming\\/image\\/logo?useSvg=1&v=79\",\"background\":\"#ffffff\",\"background-plain\":true,\"background-default\":true,\"logoheader\":\"https:\\/\\/murena.io\\/apps\\/theming\\/image\\/logo?useSvg=1&v=79\",\"favicon\":\"https:\\/\\/murena.io\\/apps\\/theming\\/image\\/logo?useSvg=1&v=79\"}}}}}"
buteo-oopp-runner[23106]: [D] unknown:0 - Sending request: "GET" to: "https://murena.io/ocs/v2.php/apps/notifications/api/v2/notifications" data: ""
kernel: pmi632_charger: usb_source_change_irq_handler: APSD_STATUS = 0x11
kernel: pmi632_charger: smblib_handle_apsd_done: IRQ: apsd-done rising; SDP detected
kernel: pmi632_charger: smblib_handle_hvdcp_detect_done: IRQ: hvdcp-detect-done falling
kernel: pmi632_charger: smblib_handle_hvdcp_check_timeout: IRQ: smblib_handle_hvdcp_check_timeout falling
kernel: pmi632_charger: smblib_handle_sdp_enumeration_done: IRQ: sdp-enumeration-done rising
kernel: pmi632_charger: smblib_handle_slow_plugin_timeout: IRQ: slow-plugin-timeout falling
kernel: pmi632_charger: usb_source_change_irq_handler: APSD_STATUS = 0x11
kernel: pmi632_charger: smblib_get_irq_status: Couldn't read MISC_PBS_RT_STS_REG rc=-19
kernel: pmi632_charger: smblib_get_irq_status: Couldn't read MISC_PBS_RT_STS_REG rc=-19
kernel: ALG: cap_learning_update: [SOMC CL][OFF] charge_status:1 bsoc_cp:4374
wpa_supplicant[5053]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=US
buteo-oopp-runner[23109]: [D] unknown:0 - "<?xml version=\"1.0\"?>"
buteo-oopp-runner[23109]: [D] unknown:0 - "<d:multistatus xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\"><d:response><d:href>/remote.php/dav/files/pherjung@e.email/Photos/</d:href><d:propstat><d:prop><d:getlastmodified>Mon, 29 Jan 2024 23:56:10 GMT</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype><d:getetag>&quot;65b83b1a1bf23&quot;</d:getetag><oc:fileid>1355414</oc:fileid><oc:owner-id>pherjung@e.email</oc:owner-id><oc:size>2666364609</oc:size></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/pherjung@e.email/Photos/Camera/</d:href><d:propstat><d:prop><d:getlastmodified>Mon, 16 Mar 2020 20:55:23 GMT</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype><d:getetag>&quot;5e6fe7bbb52ba&quot;</d:getetag><oc:fileid>1396535</oc:fileid><oc:owner-id>pherjung@e.email</oc:owner-id><oc:size>495683533</oc:size></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/pherjung@e.email/Photos/DCIM/</d:href><d:propstat><d:prop><d:getlastmodified>Mon, 29 Jan 2024 23:56:10 GMT</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype><d:getetag>&quot;65b83b1a1bf23&quot;</d:getetag><oc:fileid>20535369</oc:fileid><oc:owner-id>pherjung@e.email</oc:owner-id><oc:size>2170681076</oc:size></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>"
buteo-oopp-runner[23106]: [D] unknown:0 - "{\"ocs\":{\"meta\":{\"status\":\"ok\",\"statuscode\":200,\"message\":\"OK\"},\"data\":[]}}"
buteo-oopp-runner[23106]: [W] unknown:0 - No 'data' entry found in notifications JSON response!
wpa_supplicant[5053]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=US
kernel: i2c_geni 4a88000.i2c: i2c error :-107
buteo-oopp-runner[23120]: [W] unknown:0 - Returning empty uri for: "EA0045B9-9238-4E0A-A81B-28E824F3A8FA" ""
buteo-oopp-runner[23120]: [W] unknown:0 - Returning empty uri for: "EA0045B9-9238-4E0A-A81B-28E824F3A8FA" ""
buteo-oopp-runner[23120]: [W] unknown:0 - Returning empty uri for: "EA0045B9-9238-4E0A-A81B-28E824F3A8FA" ""
dbus-daemon[5478]: dbus-daemon[5478]: [session uid=100000 pid=5478] Activating service name='org.nemomobile.calendardataservice' requested by ':1.20' (uid=100000 pid=5617 comm="/usr/bin/lipstick -plugin evdevtouch -plugin evdev" label="u:r:kernel:s0")
dbus-daemon[5478]: dbus-daemon[5478]: [session uid=100000 pid=5478] Successfully activated service 'org.nemomobile.calendardataservice'
calendardataservice[23192]: [D] unknown:0 - Messaging :  opening database
calendardataservice[23192]: [D] unknown:0 - Default plugin: account "5" do not have a valid email address
calendardataservice[23192]: [W] unknown:0 - Default account was not found!
calendardataservice[23192]: [W] unknown:0 - No transactionId, discarding results
wpa_supplicant[5053]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=US
1 Like

As I really needed my contacts, I had to delete and create my account again, but the creation is getting a long time again…

Edit : It’s still pending and displaying Setting up account...

The calendar is correctly created and working as expected.

I tried on another device (XA2 running 4.4.0.64) and it failed too. I think something is wrong with the contacts stored on Nextcloud.

Just tried to import them on Thunderbird and it worked. There are 22k contacts (which is definitely not normal). Perhaps the reason why it’s keep pending.

The other question now is: how the hell could I create 22k contacts…

Finally, I cleaned up all the doubloons in Thunderbird, exported them and created a new address book on Nextcloud. This allowed me to delete the corrupted one and then import all the contacts into the new address book.

After a while Sailfish was able to fetch all the contacts :smiley:

2 Likes