Force client to synchronize

Is there any way to make the client retrieve the entire file list from the server and compare it with the local structure? And synchronize missing data from the server to the client?


Background:

I had a connection loss between the Nextcloud server and the NAS, the Nextcloud data directory is mounted from the NAS. Since that time, some files were missing from the Nextcloud database (but not all, only single folders were shown empty), although they are still present in the file system.

I have now done a file scan, and now see all the data back in the web GUI.

However, the clients do not sync them. The Nextcloud client (Windows) says everything is synced, which is not true. Locally, some folders are empty that actually have content. When I look in the client’s account settings, I see the folders all including correct sizes. However, in Windows Explorer they are still without content.

I have already tried:

  • paused and restarted synchronization
  • restarted the client

If I resynchronize everything, I would discard about 200 GB of data (Ă— 4 clients) that is already local. Afterwards these would have to be resynchronized, which would take an unnecessarily long time. Therefore I am looking for a more comfortable way.

1 Like

I have the same issue here. After an update the group folder feature was briefly disabled, which has caused all clients to go into a weird state that is only resolvable so far by completely resynchronizing. All the files are still on the server after restoring the group folder feature, but I cant seem to find a way to bring the nextcloud client into a good state without a full resync

After juggling around with about 6.000 files. Multi- renaming and -moving them the desktop app lost it all.

Luckily the work did get synchronized, and all the (old and new) folders were there, but they were all empty! You can imagine my scare!

U use: NextCloud 27.1.19 and Windows desktop client 3.13.0. Also I use “virtual files”.

How to force synchronisation

  • go to settings (right click on the NextCloud icon near the clock)
  • remove connection for synchronization (left click on the three dots on the right)
  • this may take some time!!
  • re-establish the connection
  • this may take some time!!

and it’s back again!

What also worked was to add a file, click “sync now” (left click on the NexCloud icon, near the clock) and remove that file again. That also added the other files again on my computer (but this wasn’t a good option for me… with about 40.000 folders to check… (yes a lot of empty ones))

Have you tried this command on server side?

sudo -u www-data php -f ./occ maintenance:data-fingerprint