I selfhost Nextcloud 13.0.2 on a linux box. I synchronise to a MacBook running 10.11.6 and attempt to synchronise to 2 Android devices (running 7.1 and 8.0 respectively)
As others have experienced, DAVdroid had always hit the 504 wall when trying to sync more than a few contacts (in my case, I have 197). This is in spite of having increased my timeouts and enabling apc. As a result, I had given up on trying to my contacts synchronised over all of my devices; I simply kept ālocalā copies on each device.
Tried to give it another shot today. Different results but still no joy.
A few hours ago I exported all of my individual vcf cards from the server to a safe directory on my laptop before deleting all contacts on the Nextcloud instance as well as on the 2 android devices and on the MacBook.
I had then imported batches of 10-15 vcards from the safe directory back into the Nextcloud server contact app. Immediately after each import, I ran DAVdroid on the first Android device. Each new batch of contacts synced successfully to the Droid. The same contacts also synced successfully to my Contacts app on the MacBook. At one point I hadnāt ran Davdroid after a particular batch import. I only remembered to do so after a subsequent import. Thatās the point at which the troubles began again. The sync to the Android device simply wouldnāt complete. I was only able to cumulatively load 107 contacts onto the Droid. On the other hand, all 197 contacts had synced to the MacBook without a problem. Furthermore, when I tried to sync the second Android device after loading all of the contacts onto the Contact app on the server, it timed-out at only 30 contacts.
This is what Iāve found in my log. My limited experience doesnāt enable me to see what the problem may be. Hopefully, somebody here might be so kind as to provide me with a clueā¦
Sabre\DAV\Exception\NotAuthenticated: No public access to this resource., No āAuthorization: Basicā header found. Either the client didnāt send one, or the server is misconfigured, No āAuthorization: Bearerā header found. Either the client didnāt send one, or the server is mis-configured, No āAuthorization: Basicā header found. Either the client didnāt send one, or the server is misconfigured
- [internal function] Sabre\DAV\Auth\Plugin->beforeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
- /var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
- /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 466: Sabre\Event\EventEmitter->emit(ābeforeMethodā, Array)
- /var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
- /var/www/html/nextcloud/apps/dav/lib/Server.php - line 283: Sabre\DAV\Server->exec()
- /var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
- /var/www/html/nextcloud/remote.php - line 164: require_once(ā/var/www/html/nā¦ā)
- {main}