[Help] cardDAV-sync nextcloud login fail: UNAUTHORIZED


I am trying to sync contacts in Android using cardDAV-sync and login fails. If I check on Apache logs, it gives 401 error (UNAUTHORIZED):

[27/Jun/2017:12:17:36 -0300] “PROPFIND /remote.php/dav/addressbooks/users/MyUser/contacts/ HTTP/1.1” 401 557 “-” “CardDAV-Sync free/0.4.21 (Xiaomi; kate; Android 6.0.1; es_ES; org.dmfs.carddav.sync/143)”

Testing this with curl command, works just fine. Also tested the recomended DAVdroid, but even when there is no login error, I don’t see calendras either contacts synced.

Currently we are using Nextcloud 12.0.0 in our server (Ubuntu 16.04) and we are migrating out from Google apps entirely, which Calendars and Contacts syncs are very important.

Any ideas?

Thanks in advance!


I’ve fixed this by using the URL like https://mycloud.com/remote.php/carddav/addressbooks/MyUser/contacts/. Still no contacts synced in my Android Phone. Seems there is no way I can make sync work for Contacts, either for Calendar with non app. It does not work even with DAVdroid.

Currently I am using Nexcloud 12.0.0 (server OS: Ubuntu 16.04).

Any Idea? Thanks…

Sync is not related to the contact app :slight_smile:
Please open an issue on github.com/nextcloud/server. :slight_smile:

1 Like