spinning wheel when selecting 'all contacts' after upgrade to 1.5.1
Steps to reproduce
- Upgrade to 1.5.1
- Open the contacts ;-)
- Click on 'all Contacts'
Expected behaviour
All contacts are shown
Actual behaviour
No contacts are shown, the spinning wheel does not stop. When selecting a group, the contacts for the group are shown. When using a differen account, contacts are shown as well.
Server configuration
Operating system: Debian Jessie
Web server: Apache 2.4.10-10+deb8u5
Database: Postgres 9.4+165+deb8u1
PHP version: PHP 5.6.27-0+deb8u1
Nextcloud version: (see Nextcloud admin page) 10.1
Contacts version: (see Nextcloud apps page) 1.5.1
Updated from an older Nextcloud or fresh install: Contacts upgraded
Signing status:
No errors have been found.
List of activated apps:
Enabled:
- activity: 2.3.2
- bookmarks: 0.9.0
- calendar: 1.4.1
- comments: 1.0.0
- contacts: 1.5.1
- conversations: 0.2.3
- dashboard: 1.9.1 beta
- dav: 1.0.1
- documents: 0.13.1
- federatedfilesharing: 1.0.1
- federation: 1.0.1
- files: 1.5.2
- files_pdfviewer: 0.8.1
- files_sharing: 1.0.0
- files_texteditor: 2.1
- files_trashbin: 1.0.0
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 15.0.0
- music: 0.3.12
- notifications: 0.3.0
- ocsms: 1.10.1
- ownbackup: 16.11.0
- ownnote: true
- password_policy: 1.0.0
- provisioning_api: 1.0.0
- qownnotesapi: 16.09.0
- rainloop: 4.16
- serverinfo: 1.1.1
- survey_client: 0.1.5
- systemtags: 1.0.2
- tasks: 0.9.3
- templateeditor: 0.1
- theming: 1.0.1
- updatenotification: 1.0.1
- user_ldap: 1.0.1
- workflowengine: 1.0.1
Disabled:
- admin_audit
- encryption
- external
- files_accesscontrol
- files_automatedtagging
- files_external
- files_retention
- roundcube
- user_external
- user_saml
The content of config/config.php:
{
"system": {
"dbtype": "pgsql",
"dbname": "owncloud",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"defaultapp": "dashboard",
"instanceid": "ocxlo1ff38g5",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"info.modserver.de",
"www.modserver.de",
"owncloud.dehnhardt.org",
"nextcloud.dehnhardt.org"
],
"datadirectory": "\/data\/cloud",
"version": "9.1.1.5",
"logtimezone": "UTC",
"installed": true,
"maintenance": false,
"theme": "",
"loglevel": 2,
"ldapIgnoreNamingRules": false,
"trashbin_retention_obligation": "auto, auto",
"updatechecker": true,
"updater.server.url": "https:\/\/updates.nextcloud.org\/updater_server\/",
"appcodechecker": false,
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "localhost",
"port": 6379
},
"mail_from_address": "holger",
"mail_smtpmode": "php",
"mail_domain": "dehnhardt.org",
"updater.release.channel": "stable",
"appstore.experimental.enabled": true
}
}
Are you using external storage, if yes which one: local/smb/sftp/... No
Are you using encryption: yes/no No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
+-------------------------------+--------------------------------------------+
| Configuration | |
+-------------------------------+--------------------------------------------+
| hasMemberOfFilterSupport | |
| hasPagedResultSupport | |
| homeFolderNamingRule | uid |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | cn=***,dc=***,dc=org |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | dc=***,dc=org |
| ldapBaseGroups | ou=***,dc=***,dc=org |
| ldapBaseUsers | ou=***,dc=***,dc=org |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | uid |
| ldapExpertUsernameAttr | uid |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (&(|(objectclass=posixGroup))) |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | posixGroup |
| ldapGroupMemberAssocAttr | memberUid |
| ldapHost | *** |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(|(objectclass=posixAccount))(uid=%uid)) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | 0 |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | cn |
| ldapUserDisplayName2 | |
| ldapUserFilter | (|(objectclass=posixAccount)) |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | posixAccount |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+--------------------------------------------+
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser: Chrome 54.0.2840.98 (64-bit)
Operating system: Mac
CardDAV-clients:
Logs
Web server error log
empty error log
Nextcloud log (data/nextcloud.log)
no owncloud errors
Browser log
no errors here
Same configuration and same problem Thanks Fabrice
Same here, the contacts wouldn't load anything for any user. now it's partially working on 10.0.2 but only for one user. If i try and export the contacts with any other user i get an error:
https://[nextcloud]/remote.php/dav/addressbooks/users/[user]/contacts/?export
File not found
Which nextcloud version are you using?
I'm on nextcloud 10.0.2 i repaired my installation rolling back to 1.4.0 contacts then upgraded with the nextcloud updater.
Debian Jessie apache 2.4.10-10+deb8u7 mariadb 10.0.28-0+deb8u1
The same here! - Debian 8 + nextcloud 10.0.2 = contacts - all contacts - spinning wheel ...
Same here: Spinning wheel when accessing all contacts in the Web-GUI. Not all users are affected, but many of them, imidiatly after updating from nextcloud 10.0.1 to 10.0.2 along with contacts-app from 1.4.0 to 1.5.1.
I tried both to update nextcloud manually or with the updater-app: same result, everthing works fine, except the contacts-app.
System: Debian 8.6, PHP 5.6.27-0+deb8u1, mysql 5.5.53-0+deb8u1 2.4.10-10+deb8u7
Any error in the browser console?
no errors in the browser console. nothing but "JQMIGRATE: Migrate is installed, version 1.4.0"
Is a request failing in the network tab?
Not at my side
I wish I could reproduce! Can one of you try with a fresh install?
Yep, yesterday fresh installed. Same issue observed.
Config: ARMBIAN Debian GNU/Linux 8 (jessie) 3.14.79-odroidc2 Nextcloud 10.0.2 (stable) Contacts 1.5.1
Never ending spinning. The only way to get it show contacts, is to create a contact directly in the contacts app. This will show up the contact and also sync to the clients.
Creating (Importing) contacts in a client creates the DB entries, but they are never shown. Also the sync to other clients, to which the contact book is shared, does not work and they never get the contacts.
Hope this helps you to find the root cause.
As I can reproduce it, can you give me some hints where to look? The contacts app has nearly no backend logic and I'm not familar with the core.
Some js debugging: In file addressBook_service.js at line 8 addressBooks.length is always 0. If I select a group, the same value is always 1 - no matter how many entries are returned. Which is nit what I was expecting...
The fact that all of you are on debian 8 makes me wonder... :/
What I could use is the results from the dav requests.
Click on each one of the "report" and "propfind" types and post the result please (you can copy/past the text from the "response" tab. Please watch out for sensitive info :)
Thanks all of you for your help.
Ok, here we go:
PROPFIND addressbooks:
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/addressbooks/</d:href>
<d:propstat>
<d:prop>
<d:current-user-principal>
<d:href>/remote.php/dav/principals/users/holger/</d:href>
</d:current-user-principal>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
holger (me;-):
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/principals/users/holger/</d:href>
<d:propstat>
<d:prop>
<card:addressbook-home-set>
<d:href>/remote.php/dav/addressbooks/users/holger/</d:href>
</card:addressbook-home-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
holger:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/</d:href>
<d:propstat>
<d:prop>
<d:owner>
<d:href>/remote.php/dav/principals/users/holger/</d:href>
</d:owner>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<d:displayname/>
<cs:getctag/>
<d:sync-token/>
<oc:invite/>
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/contacts/</d:href>
<d:propstat>
<d:prop>
<d:displayname>Privat</d:displayname>
<d:owner>
<d:href>/remote.php/dav/principals/users/holger/</d:href>
</d:owner>
<cs:getctag>354</cs:getctag>
<d:resourcetype>
<d:collection/>
<card:addressbook/>
</d:resourcetype>
<d:sync-token>http://sabre.io/ns/sync/354</d:sync-token>
<oc:invite/>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
contacts:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/contacts/</d:href>
<d:propstat>
<d:prop>
<d:supported-report-set>
<d:supported-report>
<d:report>
<d:sync-collection/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:expand-property/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-property-search/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-search-property-set/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<card:addressbook-multiget/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<card:addressbook-query/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<oc:filter-comments/>
</d:report>
</d:supported-report>
</d:supported-report-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/contacts/[email protected]</d:href>
<d:propstat>
<d:prop>
<d:supported-report-set>
<d:supported-report>
<d:report>
<d:expand-property/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-property-search/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<d:principal-search-property-set/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<card:addressbook-multiget/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<card:addressbook-query/>
</d:report>
</d:supported-report>
<d:supported-report>
<d:report>
<oc:filter-comments/>
</d:report>
</d:supported-report>
</d:supported-report-set>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
.... some thousand additional lines... all empty except the href and status tags
again Holger:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/</d:href>
<d:propstat>
<d:prop>
<cs:getctag/>
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
</d:multistatus>
REPORT contacts:
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/contacts/[email protected]</d:href>
<d:propstat>
<d:prop>
<d:getetag>"365ecaa4c5333122c6540dbb013f07d0"</d:getetag>
<card:address-data>BEGIN:VCARD
VERSION:3.0
N:;[Replaced];;;
FN:[Replaced]
TEL;TYPE=WORK:030-364-16820
UID:[email protected]
REV:2015-06-17T19:27:52+00:00
PRODID:-//ownCloud//NONSGML Contacts 0.3.0.18//EN
END:VCARD
</card:address-data>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
...
several additional response tags until
...
<d:response>
<d:href>/remote.php/dav/addressbooks/users/holger/contacts/f26242ea-c057-43be-a525-0ae201f9271b.vcf</d:href>
<d:propstat>
<d:prop>
<d:getetag>"d25cd791526c95063c82fa25f838f749"</d:getetag>
<card:address-data>BEGIN:VCARD
VERSION:3.0
PRODID:-//RainLoop//1.10.0.107//EN
FN:[replaced]
EMAIL:[replaced]
UID:f26242ea-c057-43be-a525-0ae201f9271b
N:;;;;
REV:20161212T193531Z
END:VCARD
</card:address-data>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
Same problem after migration from 10.0.1 to 10.0.2 and then I tried a fresh install and import/export. One user was affected by this. Found out that I cannot import the entire contact list. 30 of 62 users were imported. Then I found one contact in the list thats looks very ugly:

After deleting it a new import was fine. I looked in the card file and found, that the comma in die contact was not escaped!
FN:Name, Lastname
not FN: Name\, Lastname
There is no need for the comma at all, but the user placed it for some reason. After escaping or removing it, the list is loading, no spinning wheel.
@dehnhardt Thanks a lot! That is strange since it is clearly retrieving all of your contacts successfully :/ The spinning wheel is present on the contacts list only right? Not on the addressbook list (in settings)?
Did you have contact with groups? If so does the group appear on the left?
@LeChuck77 Please open a new issue, yours isn't related to this one!
Hey,
In my case, when I open contacts spinning wheel appears, and then on the right shows message : No contacts in here. After this, on the left my contact group comes up, and now I can click on it and see the contacts. I hope this can help you with fixing this issue.
Thank you.
@skjnldsv
I do have groups. The groups are shown and as I wrote in the initial message, the contacts for the groups are shown.

Great, that's progress. So this is coming from the contactList model.
If you're using chromium, could some of you install https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?utm_source=chrome-app-launcher-info-dialog And when selecting the div in the following screenshot, capture it and post the result here?
