Nextcloud won't sync with Davx5

Nextcloud version 23.0.0
Operating system and version Ubuntu 20.04.03 LTS
Apache Apache/2.4.41
PHP version 7.4
The issue you are facing:
Can’t sync Davx5 with Nextcloud Contacts/Calendar

Is this the first time you’ve seen this error? Y

Steps to replicate it:

  1. Install Nextcloud latest version
  2. Try to sync Davx5 with procedure stated in website
  3. Can’t sync

Nextcloud Log

[core] Warning: Login failed: 'USER_NAME' (Remote IP: '192.168.1.95')

PROPFIND /remote.php/dav/
from 192.168.1.95 at 2022-02-15T09:50:57+00:00

Config.php

<?php
$CONFIG = array (
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' => 
  array (
    0 => '192.168.1.23',
  ),
  'datadirectory' => '/mnt/media/nextcloud_data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'http://192.168.1.23',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
   array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 3,
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

192.168.1.95 - - [15/Feb/2022:10:50:49 +0100] "PROPFIND /remote.php/dav/addressbooks/users/XXXX/contacts/ HTTP/1.1" 401 1803 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - pi [15/Feb/2022:10:50:49 +0100] "PROPFIND /remote.php/dav/addressbooks/users/XXXX/contacts/ HTTP/1.1" 401 1150 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - - [15/Feb/2022:10:50:51 +0100] "PROPFIND /.well-known/carddav HTTP/1.1" 301 806 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - - [15/Feb/2022:10:50:51 +0100] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1207 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - pi [15/Feb/2022:10:50:51 +0100] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1150 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - - [15/Feb/2022:10:50:53 +0100] "PROPFIND /remote.php/dav/addressbooks/users/pi/contacts/ HTTP/1.1" 401 1207 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - pi [15/Feb/2022:10:50:53 +0100] "PROPFIND /remote.php/dav/addressbooks/users/pi/contacts/ HTTP/1.1" 401 1150 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - - [15/Feb/2022:10:50:55 +0100] "PROPFIND /.well-known/caldav HTTP/1.1" 301 806 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - - [15/Feb/2022:10:50:55 +0100] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1207 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - pi [15/Feb/2022:10:50:55 +0100] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1150 "-" "DAVx5/4.1.1-ose (2022/02/03; dav4jvm; okhttp/4.9.1) Android/11"
192.168.1.95 - - [15/Feb/2022:11:02:20 +0100] "GET /nextcloud/index.php/204 HTTP/1.1" 204 1337 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
192.168.1.95 - - [15/Feb/2022:11:05:12 +0100] "GET /nextcloud/index.php/204 HTTP/1.1" 204 1343 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
192.168.1.95 - - [15/Feb/2022:11:05:12 +0100] "GET /nextcloud/index.php/204 HTTP/1.1" 204 1341 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"

Hi,

I’m having trouble trying to sync Nextcloud with Davx5.
In logs states that login failed, but i don’t know why.

I run two instances of Nextcloud v23 in two different machine in my local network.
One of them is able to sync, the other don’t.
I’m applying the same procedure stated in Nextcloud site.

Can someone help me on troubleshooting this or have some info to point me to?

Thanks

Hi
It seems i’ve got the same problem … (see No contact sync ... only on my account!) but on macos … and now ios too
Strange : for me, it’s only for one account …

For you, only on one nextcloud …

?? hope someone could

Hi,
I was finally able to sync contacts and calendar following suggestions from this post

always the Allowed memory size of 536870912 bytes exhausted (tried to allocate 8388616 bytes) error …
even with increase of memory_limit in php.ini

Am I really the only one with that problem ?

well , I solved my problem.
after trying to change memory etc etc , I finaly came to see what’s on my oc database. I had 2 records in oc_addressbook for my account (while only one in my nextcloud)
When I created a new one (so 2 in nextcloud) , I had 3 in the table …
I deleted the extra line in the table in oder to remain only the last one

I finaly kept all my addresses in local and remove the sync with nextcloud
then came to nextcloud and delete my contacts

then sync again and import my addresses … and that’s fine !

So that “memory” message what just a bad way to search

Don’t know how and why I had the extra oc_addressbook line … :slight_smile: only my account on my nextcloud …
I of course deleted all the oc_addressbookchanges related to the oc_addressbook I deleted

If that can help someone …

and to say the truth, I didn’t apply this post solution as suggested …
I didn’t find this kind of solution usefull … … :upside_down_face:
anw

Hi,

It’s still a problem without google.

I write a new post here : DAVx5: Couldn't find CalDAV or CardDAV service - #4 by Guillaume88

Thanks