contacts icon indicating copy to clipboard operation
contacts copied to clipboard

Mac client syncs only contacts, assigned to latest address book

Open PaddyPat opened this issue 9 years ago • 35 comments

i've created an "archive" address book in Contacts (Web Gui), add a contact to this "archive" addressbook.

iOS: I see all Address Books in Contacts app (all contacts also) MacOS (latest) all contacts from default address book are not displayed, I see only the one contact from the latest created (archive) address book Windows: Syncs only contacts from "contacts" address book

tryed to sync directly the "contact" addressbook via direct link to /user/contacts/ (macos) but it doesn't accept (account is not available)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

PaddyPat avatar Oct 18 '17 09:10 PaddyPat

So basically you say, that MacOS and Windows have problems while syncing the contacts? What Software are you using on Windows? Or does it provide a native client for that? Same question for MacOS.

Is anyone able to reproduce this? Not sure with the current state of information if this is a problem in the client applications you are using, the CardDAV backend in nextcloud/server or our application.

irgendwie avatar Oct 18 '17 14:10 irgendwie

Only Mac client has issues Mac contacts app syncs all contacts from Nextcloud till I create a second "archive" address book and add one contact card to this new address book.

Windows syncs only Contacts from default "contact" and not from "archive" but this is ok

PaddyPat avatar Oct 18 '17 20:10 PaddyPat

hm could you pls check it?

PaddyPat avatar Oct 25 '17 06:10 PaddyPat

tryed to sync directly the "contact" addressbook via direct link to /user/contacts/ (macos) but it doesn't accept (account is not available)

could you elaborate on this error? The complete 'direct link' and also a screenshot of the error might help.

It is also unclear to me what you mean by 'second "archive"'. Our app doesn't allow addressbooks with the same name. Or was the addressbook created in another client?

Mac contacts app syncs all contacts from Nextcloud till I create a second "archive" address book and add one contact card to this new address book.

Overall the issue seems to lie somewhere else, as there is at least one client (iOS) which seems to be fine with the contacts created in Nextcloud.

Henni avatar Oct 25 '17 21:10 Henni

Here, I mean I create a second address book (archive) screenshot at okt 27 07-54-14

and add one contact to this group bildschirmfoto 2017-10-27 um 07 55 02

the issue is, that after this new change, all contacts (which are before in the macos Contacts App) were removed and only the one contact from "contacts_archive" is visible in macOS "Contact" App bildschirmfoto 2017-10-27 um 07 55 43

this issue is only with macOS Contacts app. The contacts are not deleted from nextcloud! I see them on my iPhone and Android phone and at the nextcloud contact Website - all contacts are visible

.(why the second address book? I'm not deleting old contacts - I move them to contacts_archive)

PaddyPat avatar Oct 27 '17 05:10 PaddyPat

Can someone with a Mac reproduce this issue given the instructions in this issue? I'm not sure, why this happens. @PaddyPat What happens if you try to reconfigure your Mac client (such that all address books are read in again)?

irgendwie avatar Oct 31 '17 19:10 irgendwie

@PaddyPat I found a thread in the ownCloud forums, which deals with syncing problems on Mac OS. Maybe you are able to find a workaround/configuration over there! (https://central.owncloud.org/t/owncloud-9-1-1-1-2-macos-sierra-carddav-not-working-solved/3481) It would be helpful if you can share the solution, if you find one. Otherwise there isn't much we can do on our side in the moment.

irgendwie avatar Nov 01 '17 10:11 irgendwie

Have the same issue with macOS Sierra and nextcloud 12.0.4 . Don´t know if the Problem existet in former Versions. Just createt 2 new Adressbooks yesterday.

Screenshot from NC ncshot

Screenshot from IOS 11.2.2 Contacts img_5574

Screenshot MacOS Sierra Contacts kontakteshot

Found no way to display all Adressbooks in MacOS. Only The "Kontakte" Adressbook and its contacts are shown.

snowbolzer avatar Jan 11 '18 05:01 snowbolzer

same Problem with my MacBook running OSX Lion

snowbolzer avatar Jan 11 '18 05:01 snowbolzer

‭i use this carddav link:

https://mydomain/remote.php/dav/principals/users/USER/

snowbolzer avatar Jan 11 '18 12:01 snowbolzer

I have seen the same problem with the contacts app (Version 10.0 (1756.20) on Sierra. I added some contacts to the default contacts address book and synced them to my Mac and my iPhone. Then i created a new address book called Archive in the webgui and moved some contacts to the new address book. After a while only those contacts where shown on the Mac, although all contacts where still visible on the iPhone and in the Web GUI. I deleted the address book in the Web GUI and after that, the normal address book was synced to the Mac. I saw no error messages in the nextcloud.log with debug turned on.

During testing with new address books i found that this behavior is not always triggered. For example if i name the address book shared or testbook, everything is fine. Only if i name it Archive, this problem occurs for me.

abuzze avatar Feb 17 '18 10:02 abuzze

@abuzze It appears that contacts on Sierra only syncs the first address book it finds based on alphabetical order (of the address book uri), which is why you only saw the issue when you changed the name of the new address book to "Archive"

one thing you can do is create a new address book prefixed with an underscore (e.g. '_Contacts') and use this as your new default calendar. This way it will appear alphabetically before any other address books.

You can always change the display name to something else without the underscore after it is created and the uri will remain as '_Contacts' and thus still be the first when synced on Sierra

bowmasters avatar May 03 '18 11:05 bowmasters

Unfortunately this is not a bug related to contacts. There are some other inputs on the forum here: https://help.nextcloud.com/t/high-sierra-address-book-does-not-sync/23007/17

I'll close this one.

skjnldsv avatar Oct 02 '18 13:10 skjnldsv

Unfortunately this is not a bug related to contacts. There are some other inputs on the forum here: https://help.nextcloud.com/t/high-sierra-address-book-does-not-sync/23007/17

Which does not solve the issue. Egroupware, the software I used before, had not those struggles in combination with macOS.

waja avatar Oct 04 '18 09:10 waja

@waja The contacts app is just a vcard editor linked to nextcloud. Any connectivity and/or synchronisation issues are not related to this app unfortunately. There is indeed a bug known for the built-in mac sync, but of course other independent software may (or not) work properly.

skjnldsv avatar Oct 04 '18 09:10 skjnldsv

This bug now hit me too, very frustrating: To use features like sharing contacts with different groups you have to use several address books. TB/Lightning and DAVdroid work fine but one cannot use OS native apps like MacOS contacts/calendar properly with NC.

I urge you to reopen this bug since there IS a hint how it IS solvable in NC: https://help.nextcloud.com/t/high-sierra-address-book-does-not-sync/23007/19

This probably is not the FAULT of NC, but with an increasing Apple device NC user base please consider implementing a workaround. I do not know how to properly debug the protocol but I volunteer to coordinate the bug report against Apple if that is of any help and if some dev provides me with the technical detail that proves MacOS's fail along with a proposed change (that won't break their systems).

For the time being there is another workaround: Create dummy users that get additional address books shared and add those users to macOS contacts as suggested by Bernie_O in https://help.nextcloud.com/t/discussion-adressbooks-sync-with-macos/25760/10

nursoda avatar Dec 15 '18 12:12 nursoda

@nursoda so if I get this right:

  1. you can fix this by commenting out the link from the error pages to the appropriates 403 & 404.php?
  2. Or you can fix this by having each addressbook shared to you by another user?

If so all addressbooks appear in macOS? Sorry, we'll have to be very precise here, because that mean we can fix things on nextcloud then! :) Thanks!

skjnldsv avatar Dec 15 '18 14:12 skjnldsv

I did not try to modify my error pages since that would mean that I need to alter my production environment (which is still on NC 13 anyway). So I was just citing what I found. That forum user did solve it in NGINX, I use Apache. But it sounds as if NC sends error pages in cases where macOS app requests something different. And since Egroupware solved it, it might be worth asking them or looking into their code (which is out of my abilities).

I DID however do the workaround with the dummy users for each address book that was unsynced and that seems to for fine for now.

nursoda avatar Dec 15 '18 16:12 nursoda

you can fix this by commenting out the link from the error pages to the appropriates 403 & 404.php?

in recent NC configs for nginx those error_page statements are not existing anymore. Those are also not in mine.

waja avatar Dec 15 '18 20:12 waja

Thanks both of you! So the sharing trick is sufficient for macOS. I will work on this and try to see what we can do!

skjnldsv avatar Dec 15 '18 23:12 skjnldsv