Deleting File is not synced

Support intro

Dear all,

I am facing the problem below.

Nextcloud version: 21.0.1
Nextcloud Windows Client Version: 3.2.1
Operating system and version: Ubuntu 20.04.2 LTS
Kernel: 5.4.0-72-generic
Apache or nginx version: nginx/1.18.0 (Ubuntu)
PHP version: 7.4

Expected behaviour:

We use nc for more or less 4 years. The current installation works since 10/2020.

We have one account, eg “nc_user”. on the local system the windows-client is running, syncing folder “nc_user_folder” with the account “nc_user”.

  1. We scan locally, the scanned file (pdf) is moved (not copied) to the folder “nc_user_folder”.
  2. From there the pdf syncs to the nc-server.
  3. Another server (in fact the same machine) mounts the “nc_user_folder” via davfs.
  4. Via cron it moves the pdf from “nc_user_folder” to the destination.
  5. The webfrontend of nc-server shows the pdf as deleted (it is gone).
  6. The windows-client syncs and deletes the pdf locally.

That is the way I want it to work and it did work this way.

Last week I did an apt dist-upgrade and updated nc-server and updated nc-client.

Since the updates Step 6 does not work any more.

The client stucks either on “Wait…” or on “Änderungen Zusammenführen” which is probably “Reconciling changes”

The admin-log throws nothing.

Any idea is highly appreciated. Many thanks in advance!

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'default_phone_region' => 'DE',
  'overwriteprotocol' => 'https',
  'logtimezone' => 'Europe/Berlin',
  'instanceid' => '+++',
  'passwordsalt' => '+++',
  'secret' => '+++',
  'trusted_domains' =>
  array (
    0 => '+++.de',
  ),
  'datadirectory' => '/var/nextcloud_data',
  'dbtype' => 'mysql',
  'version' => '21.0.1.1',
  'overwrite.cli.url' => 'https://+++.de',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '+++',
  'dbpassword' => '+++',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.+++',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => '+++',
  'mail_domain' => '+++.de',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '+++@+++.de',
  'mail_smtppassword' => '+++',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your nginx log in /var/log/nginx/access:

++IP of Server via davfs++ - nc_user [11/May/2021:12:00:24 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of WindowClient++ - nc_user [11/May/2021:12:00:29 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 442 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of Server via davfs++ - nc_user [11/May/2021:12:00:34 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of WindowClient++ - nc_user [11/May/2021:12:00:35 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 270 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of WindowClient++ - nc_user [11/May/2021:12:00:41 +0200] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 385 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of WindowClient++ - nc_user [11/May/2021:12:00:42 +0200] "GET /remote.php/dav/avatars/nc_user/128.png HTTP/1.1" 200 751 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of Server via davfs++ - nc_user [11/May/2021:12:00:45 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:00:55 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:01:06 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of WindowClient++ - nc_user [11/May/2021:12:01:12 +0200] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 385 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of WindowClient++ - nc_user [11/May/2021:12:01:12 +0200] "GET /remote.php/dav/avatars/nc_user/128.png HTTP/1.1" 200 751 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of Server via davfs++ - nc_user [11/May/2021:12:01:16 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:01:27 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:01:37 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of WindowClient++ - nc_user [11/May/2021:12:01:38 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 270 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of WindowClient++ - nc_user [11/May/2021:12:01:42 +0200] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 384 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of WindowClient++ - nc_user [11/May/2021:12:01:42 +0200] "GET /remote.php/dav/avatars/nc_user/128.png HTTP/1.1" 200 751 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of Server via davfs++ - nc_user [11/May/2021:12:01:49 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:01:59 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:02:10 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of WindowClient++ - nc_user [11/May/2021:12:02:12 +0200] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 384 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of WindowClient++ - nc_user [11/May/2021:12:02:12 +0200] "GET /remote.php/dav/avatars/nc_user/128.png HTTP/1.1" 200 751 "-" "Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19041 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
++IP of Server via davfs++ - nc_user [11/May/2021:12:02:20 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"
++IP of Server via davfs++ - nc_user [11/May/2021:12:02:31 +0200] "PROPFIND /remote.php/dav/files/nc_user/ HTTP/1.1" 207 672 "-" "davfs2/1.5.5 neon/0.30.2"

The output of your nginx log in /var/log/nginx/error.log:

*empty*

Any idea is highly appreciated. Many thanks in advance!

Seems to be the same like my syncing problem.

I guess it will work again when you install windows client 3.1.3?

Thanks for your hint. I tried it out and you are totally right. The problem disappears with 3.1.3.

Does anyone know, whether it is already known by the developers?

I also face the same problem.

Switching back to 3.1.3 as @Micoud did based on @reyxd suggestion solved the problem temporarily but has to be addressed.

Having the same problem here. Apparently affects only one user out of five, all the others work fine. Switching to 3.1.3 seemingly solved the problem.

@J.Wimmler87 that’s weird.
Have you identified any differences between these users like their privileges (e.g. admin vs. regular) or creation date (after an update of the server) etc. . ?

From my side I have tried to delete the user affected and recreated but the behavior was always the same.

Of the three users that only have write/read-privileges on one designated folder (each user has one designated folder assigned) two seem to be unaffected (running the latest NC-app for Windows 10 as far as I know). The two admin-users are unaffected as well (both latest NC version on Win10). All the users were created years ago and have worked ever since.

One bit of information I got yesterday from the affected user: Apparently when NC was first installed on their machine (which was a few years back), there was also some kind of problem which was resolved by using an older NC version. But I assume that the NC app was updated eventually over the last couple of years and worked until last week.

Edit: Actually, another one of those three users had some kind of sync problem at the same time. Now that I think of it it might have been the same problem, but she wanted to get a new PC anyway and the problem was not present on the new machine. So it seems to be related to the users machine?!

Edit2: Just got confirmation that synchronization and deleting files works both ways with 3.1.3 today as well.

I have a similar problem.
It is repeatable.
Can work around.

New server, installed a few days ago.
Server - Debian Buster fully updated, PHP 8.0, Nextcloud version 21.0.3.1, Nextcloud Windows client version 3.2.4. No additional apps added.
Samba running on the same server.

Nginx error log has no new entries and Nextcloud log no new entries while creating the issue.

Have uploaded more than 200GB of files so far without issue.
Was doing and experiment to see how well the synchronisation works and boom!

Basic file sync structure, using the web client I created the following:
Asus/Desktop
Asus/Documents
Asus/Music
Asus/Pictures
Asus/Videos

Using the Windows client on the laptop I added a sync connection from the matching Windows folders to the appropriate folders on the server.
As there was a heap of data (200GB +) I left it be and it was all done in the morning.

I wanted to experiment so as the Video directory was empty I started there.
I created a folder (junktest).
No problem it synced.
I created a text document inside “junktest” folder, add a few words , no problem all synced (can see and read the text file using the web client on another pc).
Ok all good, now using Windows Explorer, delete folder “junktest” and its contents. Problem begins with the Windows Nextcloud client stuck on “Reconciling Changes”, later it is stuck on “Waiting”.
In the Nextcloud web client the directory has not been deleted.
Being a little impatient I only waited 5 minutes…

After trying various things I was able to get past the issue by:

  1. Close the Windows Nextcloud client
  2. Use the web client to remove the folder I deleted in Windows Explorer.
  3. Re-open the Windows Nextcloud client and all is well with the world, synced up correctly.

Now what if I think. So now I created two folders in the Video directory and create a text file in each directory. Synced no problem.
Deleted the second directory, synced no problem.
Delete the remaining directory and we get the “Reconciling Changes” problem again, which was worked around in the same way as described above.

Next test was to create then delete a folder in Pictures directory which already contained many files/directories. This worked fine.

Tried many variations. Created multiple folders, deleted them in a different order to creation, but it is always the last folder, i.e. leaving the Video directory empty, that causes the issue.

Repeated the test by creating empty text files, same issue, deleting the last file causes the problem.

Edit:
In the previous tests, I was pausing between creating folder/files for at least a minute or so while I checked each addition was synced.
I have now found that if I create two folders in quick succession, check they are synced, then delete one folder, I get the same problem as above, but it is not the last folder to be deleted.
Resolving the problem is the same process as above.