I upgraded from Nextcloud 18 to 19 and 19 to 20, so far everything is working great, but im having an issue with one of the users in the server, for some reason, that user can create, move, delete, etc, anything from her account, but there are 4 specific folders that wont let her sync with the server, it says its restricted for some reason.
If i remove those folders everything is ok, but if i try to add them again to her account they stay with the yellow mark and wont ever sync with the server
If i change the name of those folders, they sync perfectly, but if i give them their original names problem comes back.
Another test i did was to remove those folders from her account and then create new empty folders from the nextcloud web interface with the exact same name, again i get an error in nextcloud saying i cant create that folder, if i create a new folder or file, it works, if i try to rename that newly created folder to one of those names with the problem, nextcloud wont let me, it gives me an error.
This is wierd and i have no clue how to procede here with this issue, so please if anyone have any ideas ill be monitoring this post to try them out.
I would guess this is an issue with the DB.
Maybe you can try the following:
store those folders outside of your nextcloud data structure.
rescan your data with occ, this will take a long time as you surely know.
add the folders again.
In theory, the rescan might delete corrupted or missing directories and folders while keeping those ones she still has.
Another try would be to move the database away (or dump it) and let your nextcloud rescan the whole datastructure with occ. But this is at your own risk and i guess you will at least loose history of files etc.
I tried to do a scan of the specific user, at first it started but then power went down and server went off, when it came back on i tried to run it again but now i get that the user files are locked, what can i do now? heres the log: