Good question. One thing I would be careful is that if the client reconnects and thinks all files have been deleted and it starts to delete everything on the client as well. So do backups on the client before.
In theory you can setup a new data folder, create the .ocdata-file and the filestructure for the users. I don’t really know how this stuff behaves. I’d run a test before (small setup, just two users, sync something, then clean out the data-folder).
@nickvergessen@jospoortvliet can you tell us how Nextcloud behaves? Or is it better to save the database and start a new setup and resync everything again manually?
I’ve removed all users using the occ command for each user, re-added them.
I’ve created the .ocdata file manually (touch .ocdata)
I’ve cleared the DB oc_cache_files (forgot the exact table name)
I’m now resync-ing… seems to work until now.
Next, I will have to figure out how to mark one of the users as admin, as all the users manually created are simple users, not admins.
Nextcloud 18.0.1. I had this problem after data directory migration.
It’s strange, but It helps me. I klicked Basic Settings clicked Webcron, and after that back to Ajax. This message gone.