-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contacts not showing up in contacts app #478
Comments
@jankkm |
@sushidave I have used owncloud for quite some time now and the address did not change after the move to nextcloud. The devices are properly synced with nextcloud. |
@jankkm Yes. What version of Nextcloud is it and is there anything in the error log file of your server (not the one on Nextcloud's Admin page) that could give us a hint? |
It is the most recent stable of nextcloud, so 9.0.53 I think this problem might be related to #430 but there is no solution that helps me. |
@jankkm What happens when you add a single contact via the GUI? Please backup your contacts on the Apple device first. |
I tried that and it the new contact does not show up on the synced devices. So nothing actually changed after adding that contact. |
@jankkm Thanks for testing. Does the new contact appear in the web UI contacts app? Do the other contacts then appear there too? After updating any contact on the synced device does the new contact appear on the synced device? |
The new contact appears in the web UI while creating it but after a reload of the page the contact list is empty again. |
@jankkm Does the new contact appear in the database, tables "oc_cards" and "oc_properties"? |
I can't tell if it appears in oc_cards because I don't know the card id or etag. In oc_cards_properties (or did you really mean oc_properties? Because that doesn't exist in my database) there is no entry with the string as a value that I used as a name in the contact I created in the UI. |
@jankkm Yes and sorry, I meant oc_cards_properties. If the new contact entered via web UI isn't stored in the database it looks to me as if your contacts app is broken... Could you try to backup the contacts folder in the apps directory (apps/contacts) and replace it by the source files? Do the contacts then appear in the contacts app? |
I just tried that but it doesn't change anything. I used the latest release v0.0.0.146 |
Oh wait! Now new contacts actually do appear on the synced devices. But the UI still doesn't show any contacts after a reload. |
@jankkm That's better now :) So, the contacts are stored in the database and can be processed for CardDAV. I suspect that the contacts app has an issue with data of one or several contacts in the database. Looking at other recent issues here on Github it might be something specific to Apple. Please try this:
|
A faulty contact was my first guess on this problem but I ruled that out. As described in the first post I can just remove about 20 contacts and then it works fine. I tested around a little more and it is definitely not about one specific contact but contacts with photos which are large in size are kind of problematic. But I am very sure that it is about the total size of all contacts. If it exceeds some certain size it stops working. If I am under that size (so when the UI is working) and I just replace one contact with a photo with another one it is not a problem so it can not be about one specific contact that is a problem for the UI. |
I just tested with a file of 800 kB containing around 1'200 contacts and no photos. After importing on OS X Address Book the contacts appear in the web UI as expected. If imported via web UI the browser after a while comes up with user prompt about Javascript not responding (=> timeout). In both cases, all groups/categories are missing on OS X Address Book as reported in #475. Of what size is your contacts file where it does/does not work? |
My address book contains about 460 contacts and when exported to one single file are just under 10mb. |
Halleluja, that's another dimension ;) Alright, let's see what the experts here can do about it. |
Hm, this seems to be a size problem. |
Hi, |
I think the issue here is pretty clear now. If the size of an address book is over a certain limit which is at about 10mb the contacts app stops working. It is very easy to reproduce by adding and removing contacts when the address book is at around that size |
This discussion thread has definitely helped me out: I was going crazy with this contact app which was working yesterday (on my ownCloud 10.0.2, contact app 1.5.2)! I got lost in all the solutions that you can find on this site dealing with address books containing corrupted entries. The easiest way to confirm this simple diagnosis is:
To the developers of this such a useful app: I understand that this issue is about loading the full contacts database, and that you are working on it. However, is there any tip/tweak/trick that we could manually apply to reduce this database size drastically? Thanks a lot! |
Ran into this today after adding a large photo to a card. looking at the db I see that all rows in oc_cards with a PHOTO have stored the image as base64 encoded binary ... well that easily makes the result set become >10mb ... now ... where does that trigger a limit ... I don't know. It certainly looks like the response is just truncated ... 207 Multi-Status, Transfer-Encoding is chunked, so there is no premature truncation of the response .... hmmm
no errors in the logs ... wtf |
ok so using thunderbird and CardBook I could remove an image ... can now at least edit cards ... will need to dig into this later ... weird ... ok so cardbook uses an <?xml version="1.0" encoding="utf-8"?>
<C:addressbook-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav">
<D:prop>
<D:getetag/>
<C:address-data content-type='text/vcard'/>
</D:prop>
<D:href>/remote.php/dav/addressbooks/users/test/default/a-b-c-d.vcf</D:href>
... and includes a list of 40 vcards that were discovered with a <?xml version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:getcontenttype/>
<D:getetag/>
</D:prop>
</D:propfind> The contacts app uses an <card:addressbook-query xmlns:card="urn:ietf:params:xml:ns:carddav"
xmlns:d="DAV:">
<d:prop>
<d:getetag />,<card:address-data />
</d:prop>
<!-- According to http://stackoverflow.com/questions/23742568/google-carddav-api-addressbook-multiget-returns-400-bad-request,
Google's CardDAV server requires a filter element. I don't think all addressbook-query calls need a filter in the spec though? -->
</card:addressbook-query> including a comment ... oh well ... |
Since upgrading to nextcloud from owncloud 8.x I have problem with the contacts app. It is running on a shared hosting.
I have 462 contacts in my address book synced between multiple Apple devices which still works fine but the contacts web app just shows "No contacts in here". If I remove about 20 contacts it works and it does not matter which contacts I remove so this is not about a faulty contact. This was not the case on owncloud 8.x
Any idea what the issue could be? Or how to get any more information? There is nothing interesting in the log file.
The text was updated successfully, but these errors were encountered: